| java.lang.Object de.progra.charting.render.RowColorModel
RowColorModel | public class RowColorModel (Code) | | This class implements the correspondence between the DataSets and the
colors used for rendering the charts and the legend.
author: mueller version: 1.0 |
predefinedColors | final protected static Color[] predefinedColors(Code) | | |
predefinedColorsIdx | protected int predefinedColorsIdx(Code) | | |
RowColorModel | public RowColorModel(ChartDataModel model)(Code) | | Creates new RowColorModel.
Parameters: model - the ChartDataModel which contains the information about all the DataSets |
getColor | public Color getColor(int row)(Code) | | Computes the Color for a DataSet. For the first DataSets the stored Colors like Color.red etc are used. If there are more DataSets than stored colors, random colors are used.
Parameters: row - the row for which the Color should be returned the Color stored for the given row. |
getInstance | public static RowColorModel getInstance(ChartDataModel model)(Code) | | Use this method to get an instance of the chart's RowColorModel.
Parameters: model - the ChartDataModel whose data sets will be mapped tocolors. a new instance of RowColorModel if there's no instance of if the model has changed (esp. useful if you create multiple chartsafter one another). |
getRow | public String getRow(int i)(Code) | | Returns the row title of a specific DataSet.
Parameters: i - the DataSet index the String title |
getRowCount | public int getRowCount()(Code) | | Computes the amount of all Legend entries, ie. DataSets.
the amount of all rows, ie. DataSets. |
getShape | public RectangularShape getShape(int row)(Code) | | Returns the Shape for a DataSet. By default, the Shapes from
the predefinedShapes array are cycled through unless you define
your own shape to data binding using
setShape(int row, RectangularShape shape) .
Parameters: row - the row for which the Shape should be returned the Shape stored for the given row. |
setColor | public void setColor(int row, Color color)(Code) | | Force a certain color for a row
Parameters: row - the row for which the Color should be set Parameters: color - the color that is associated with the row |
setShape | public void setShape(int row, RectangularShape shape)(Code) | | Force a certain Shape for a row
Parameters: row - the row for which the Shape should be set Parameters: shape - the RectangularShape that is associated with the row |
|
|