A CellStyle encapsulates the set of display properties applicable the table-like cells
such as what you find in a Row or Column graph matrix axis. GraphMatrixAxes
display a tree based axis comprised of separate text cells. These cells (similar
in appearance to the type of cells found in a TableView) have a background color and
frame whose appearance is defined within this class.
Usage
Ex. Set a bar chart's row axis value cells background color to dark blue.
Ex. Set a bar chart's column axis value cells background color to dark green.
BarChart barChart = new BarChart();
barChart.getBarChartModel().getRowAxisModel().getValueCellStyle().setBackgroundColors( new Color[] {Color.blue.darker()} );
barChart.getBarChartModel().getColumnAxisModel().getValueCellStyle().setBackgroundColors( new Color[] {Color.green.darker()} );
Usage
Ex. Set a bar chart's column axis value cells background color to cycle between white and yellow.
BarChart barChart = new BarChart();
barChart.getBarChartModel().getRowAxisModel().getValueCellStyle().setBackgroundColors( new Color[] {Color.white,Color.yellow} );
Behavior
This apply() method is a convenience to convey the properties from one CellStyle to another.
setBackgroundVisibilityPolicy(int newVisibilityPolicy)
Set the visibility policy of the cell's background which may be
visible (GraphConstants.TRUE), not visible (GraphConstants.FALSE), or
determined by the graph based upon state information (GraphConstants.AUTOMATIC).
Utility method to convey properties contained in "theOtherObject" to this object.
Note: Contained "models" (i.e. properties that are subclasses of ModelBase) will in turn be called on to convey their properties to the like contained models in the other
object. In that respect this can be considered a "tree" type copy.
Also Note: This is a deep copy. Thus after the copy, mutable properties will not be shared by the two instances.
Parameters:
theOtherObject - properties applied to this instance
Sets the color(s) applied to cell backgounds. When multiple colors are specified then
colors are cycled across levels within the associated display where applicable. For instance if
an array contains a white and a yellow color is specified on the Column axis
(a GraphMatrixAxis) then the highest level will be white, its children will be yellow,
its grand children will be white, its great grand children will be yellow etc.
Note: the array is copied when either a get or set is called. To affect a change in the graph this
set method must be called.
Set the visibility policy of the cell's background which may be
visible (GraphConstants.TRUE), not visible (GraphConstants.FALSE), or
determined by the graph based upon state information (GraphConstants.AUTOMATIC).
valid newVisibilityPolicy values are: