Package org.eclnt.util.chart
Class ChartLine
java.lang.Object
org.eclnt.util.chart.ChartLine
- Direct Known Subclasses:
CategoryChartLine
,PieChartLine
,TimeBasedChartLine
,XYChartLine
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getName()
int
int
boolean
boolean
void
Color of the line, format "#RRGGBB".void
setExtLegendTexts
(List<String> extLegendTexts) If set to true then an extended legend is drawn at the left and right side of the chart.void
setLineCategory
(String lineCategory) Each line represents a certain category - i.e. the logical id that is represented by the line.void
The name of the line.void
setShapeType
(int shapeType) Sets the shape type that is used for indicating points witihn line charts.void
setStroke
(int stroke) Sets the size of the line for line charts.void
setWithLines
(boolean withLines) In case of line charts: this flage defines if lines are drawn between the point ot not.void
setWithShapes
(boolean withShapes) In case of line charts: defines, if shapes are rendered around each point.
-
Field Details
-
SHAPETYPE_RECT1
public static final int SHAPETYPE_RECT1- See Also:
-
SHAPETYPE_RECT2
public static final int SHAPETYPE_RECT2- See Also:
-
SHAPETYPE_RECT3
public static final int SHAPETYPE_RECT3- See Also:
-
SHAPETYPE_CIRCLE1
public static final int SHAPETYPE_CIRCLE1- See Also:
-
SHAPETYPE_CIRCLE2
public static final int SHAPETYPE_CIRCLE2- See Also:
-
SHAPETYPE_CIRCLE3
public static final int SHAPETYPE_CIRCLE3- See Also:
-
SHAPETYPE_TRIANGLE1
public static final int SHAPETYPE_TRIANGLE1- See Also:
-
SHAPETYPE_TRIANGLE2
public static final int SHAPETYPE_TRIANGLE2- See Also:
-
SHAPETYPE_TRIANGLE3
public static final int SHAPETYPE_TRIANGLE3- See Also:
-
-
Constructor Details
-
ChartLine
public ChartLine()
-
-
Method Details
-
setExtLegendTexts
If set to true then an extended legend is drawn at the left and right side of the chart. The extended legend is built out of the text that is passed viasetExtLegendTexts(List)
. -
getExtLegendTexts
-
setShapeType
public void setShapeType(int shapeType) Sets the shape type that is used for indicating points witihn line charts. Use on of the constants SHAPETYPE*. -
getShapeType
public int getShapeType() -
setStroke
public void setStroke(int stroke) Sets the size of the line for line charts. -
getStroke
public int getStroke() -
setName
The name of the line. -
getName
-
setColor
Color of the line, format "#RRGGBB". -
getColor
-
setWithShapes
public void setWithShapes(boolean withShapes) In case of line charts: defines, if shapes are rendered around each point. -
getWithShapes
public boolean getWithShapes() -
setLineCategory
Each line represents a certain category - i.e. the logical id that is represented by the line. -
getLineCategory
-
setWithLines
public void setWithLines(boolean withLines) In case of line charts: this flage defines if lines are drawn between the point ot not. -
getWithLines
public boolean getWithLines()
-