org.jCharts.properties
Class PointChartProperties
java.lang.Object
|
+--org.jCharts.properties.ChartTypeProperties
|
+--org.jCharts.properties.AxisChartTypeProperties
|
+--org.jCharts.properties.PointChartProperties
- All Implemented Interfaces:
- HTMLTestable
- public final class PointChartProperties
- extends AxisChartTypeProperties
Constructor Summary |
PointChartProperties(java.awt.Shape[] shapes,
boolean[] fillPointFlags,
java.awt.Paint[] outlinePaints)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_POINT_BORDER_STROKE
public static final java.awt.Stroke DEFAULT_POINT_BORDER_STROKE
SHAPE_SQUARE
public static final java.awt.Shape SHAPE_SQUARE
SHAPE_TRIANGLE
public static final java.awt.Shape SHAPE_TRIANGLE
SHAPE_CIRCLE
public static final java.awt.Shape SHAPE_CIRCLE
SHAPE_DIAMOND
public static final java.awt.Shape SHAPE_DIAMOND
shapes
private java.awt.Shape[] shapes
fillPointFlags
private boolean[] fillPointFlags
outlinePaints
private java.awt.Paint[] outlinePaints
PointChartProperties
public PointChartProperties(java.awt.Shape[] shapes,
boolean[] fillPointFlags,
java.awt.Paint[] outlinePaints)
- Constructor
- Parameters:
shapes
- the Shapes to use for each DataSet drawn in this chart. There must
be an one to one mapping of Shape objects and DataSets in the chart.fillPointFlags
- flags indicating whether to fill the point Shapes or to only outline them
using the Paint specified on the DataSet object. If this is set to TRUE, the 'outlinePaint'
attribute can be used to outline the Shape.outlinePaints
- Sets the outline Paint to use for each Shape in the chart. This Paint is
only used if the 'setFillPointsFlag' is set to TRUE for the Shape.
getFillPointsFlag
public boolean getFillPointsFlag(int index)
getPointOutlinePaints
public java.awt.Paint getPointOutlinePaints(int index)
- Parameters:
index
-
- Returns:
- Paint
getShape
public java.awt.Shape getShape(int index)
- Parameters:
index
-
- Returns:
- Shape
toHTML
public void toHTML(HTMLGenerator htmlGenerator)
- Enables the testing routines to display the contents of this Object.
- Parameters:
htmlGenerator
-
validate
public void validate(IAxisPlotDataSet iAxisPlotDataSet)
throws PropertyException
- Validates the properties.
- Specified by:
validate
in class AxisChartTypeProperties
- Parameters:
iAxisPlotDataSet
-
- Throws:
PropertyException