public class Marker
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable
Marker
class is used to set the mark for the chart panel.Constructor and Description |
---|
Marker()
Create a new
Marker object. |
Marker(double value,
java.awt.Color color)
Creates a new
Marker object initialized with a value and a color. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compares this marker's value with the specified object for order.
|
java.awt.Color |
getColor()
Gets the color of the marker.
|
int |
getShape()
Gets the shape style of the marker.
|
java.lang.String |
getStroke()
Gets the stroke text of the marker.
|
java.lang.String |
getText()
Gets the text of the marker.
|
java.awt.Color |
getTextColor()
Gets the color of the marker text.
|
java.awt.Font |
getTextFont()
Gets the font of marker text.
|
double |
getValue()
Gets the value of the marker.
|
int |
getXOffset()
Gets the offset of the text along x-axis.
|
int |
getYOffset()
Gets the offset of the text along y-axis.
|
void |
setColor(java.awt.Color color)
Sets a new color for the marker.
|
void |
setShape(int shape)
Sets the shape style for the marker.
|
void |
setStroke(java.lang.String stroke)
Sets a new stroke text for the marker.
|
void |
setText(java.lang.String text)
Sets a new text for the marker.
|
void |
setTextColor(java.awt.Color textColor)
Sets a new color for the text of the marker.
|
void |
setTextFont(java.awt.Font textFont)
Sets a new font for the text of the marker.
|
void |
setValue(double value)
Sets a new value for the marker.
|
void |
setXOffset(int offset)
Sets a new offset for the text along x-axis.
|
void |
setYOffset(int offset)
Sets a new offset for the text along y-axis.
|
public Marker()
Marker
object.public Marker(double value, java.awt.Color color)
Marker
object initialized with a value and a color.value
- a double
value objectcolor
- a Color
objectpublic int getXOffset()
public void setXOffset(int offset)
offset
- a new offset for the text along x-axispublic int getYOffset()
public void setYOffset(int offset)
offset
- a new offset for the text along y-axispublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- a new Color
object for the markerpublic java.lang.String getText()
public void setText(java.lang.String text)
text
- a new String
objectpublic java.awt.Color getTextColor()
public void setTextColor(java.awt.Color textColor)
textColor
- a new Color
object for the text of the markerpublic java.awt.Font getTextFont()
public void setTextFont(java.awt.Font textFont)
textFont
- a new Font
object for the text of the markerpublic double getValue()
public void setValue(double value)
value
- a new value for the markerpublic java.lang.String getStroke()
public void setStroke(java.lang.String stroke)
stroke
- a new stroke text for the markerpublic int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public int getShape()
#setShapeStyle(int)
public void setShape(int shape)
TWaverConst.MARKER_SHAPE_NONE
TWaverConst.MARKER_SHAPE_LINE
TWaverConst.MARKER_SHAPE_TRIANGLE
shapeStyle
- the shape style for the marker.#getShapeStyle()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.