com.sas.graphics.components
Class GraphMatrixAxisModel

com.sas.graphics.components.GraphMatrixAxisModel

public class GraphMatrixAxisModel

The GraphMatrixAxisModel class stores general appearance settings for row and column axes for the graph matrix. For information on the appearance settings of a graph axis, such as a category or response axis in a BarChart see the AxisModel class. GraphMatrixAxisModel

Usage

You should first get the GraphMatrixAxisModel from the chart, then modify appropriate properties. If you create an instance of GraphMatrixAxisModel instead, it will have all the default values which may vary from the current Graph Style.
 GraphMatrixAxisModel myColumnAxisModel = myBarChartModel.getColumnAxisModel();
 myColumnAxisModel.setOutlineEnabled(true);
 myColumnAxisModel.setOutlineColor(Color.blue);
 myColumnAxisModel.setDisplyMode(GraphMatrixAxisModel.DISPLAY_MODE_TUPLE);

 

Behavior

GraphMatrixModel allows you to control following properties:

Note

The label property inherited from ContentsModel is not very useful for this class. When used the

Extending

Not intended to be extended.

Dependencies

com.sas.graphics.components.FillStyle com.sas.graphics.components.TextStyle

Since:
SAS 9.1
See Also:
ModelBase, FillStyle, TextStyle, GraphModel

Constructor Summary
GraphMatrixAxisModel()
          Default constructor.
 
Method Summary
 void apply(GraphMatrixAxisModel theOtherObject)
          Utility method to convey properties contained in "theOtherObject" to this object.
 boolean equals(java.lang.Object obj)
          Determines whether another object is equal to this GraphMatrixAxisModel.
 java.awt.Color getBackgroundFillColor()
          Deprecated. use getValueCellStyle().getBackgroundColors()[0];
 int getBackgroundVisibilityPolicy()
          Deprecated. use getValueCellStyle().getBackgroundVisibilityPolicy();
 LineStyle getFrameLineStyle()
          Deprecated. use getValueCellStyle().getFrameLineStyle();
 ClassificationCellStyle getValueCellStyle()
          Returns the ClassificationCellStyle that contains the set of display properties used to define the appearance of the axis cells including its background color, frame line and shadingPolicy.
 int hashCode()
          Computes the hash code for this GraphMatrixAxisModel.
 void setBackgroundFillColor(java.awt.Color newColor)
          Deprecated. use getValueCellStyle().setBackgroundColors(new Color[] {newColor});
 void setBackgroundVisibilityPolicy(int newVisibilityPolicy)
          Deprecated. use getValueCellStyle().setBackgroundVisibilityPolicy(newVisibilityPolicy);
 void setFrameLineStyle(LineStyle newFrameLineStyle)
          Deprecated. use getValueCellStyle().setFrameLineStyle(LineStyle);
 void setValueCellStyle(ClassificationCellStyle newCellStyle)
          Sets the ClassificationCellStyle that contains the set of display properties used to define the appearance of the axis cells including its background color, frame line and shadingPolicy.
 
Methods inherited from class com.sas.graphics.components.ContentsModel
apply, getLabel, getLabelTextStyle, getValueTextStyle, isVisible, setLabel, setLabelTextStyle, setValueTextStyle, setVisible
 
Methods inherited from class com.sas.graphics.components.ModelBase
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel
 

Constructor Detail

GraphMatrixAxisModel

public GraphMatrixAxisModel()
Default constructor.

Method Detail

apply

public void apply(GraphMatrixAxisModel theOtherObject)
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

setValueCellStyle

public void setValueCellStyle(ClassificationCellStyle newCellStyle)
Sets the ClassificationCellStyle that contains the set of display properties used to define the appearance of the axis cells including its background color, frame line and shadingPolicy.

Throws:
java.lang.IllegalArgumentException - if newCellStyle is null.
See Also:
getValueCellStyle()

getValueCellStyle

public ClassificationCellStyle getValueCellStyle()
Returns the ClassificationCellStyle that contains the set of display properties used to define the appearance of the axis cells including its background color, frame line and shadingPolicy.

Returns:
the CellStyle associated with the axis' value cells
See Also:
setValueCellStyle(com.sas.graphics.components.ClassificationCellStyle)

setFrameLineStyle

public void setFrameLineStyle(LineStyle newFrameLineStyle)
                       throws java.lang.IllegalArgumentException
Deprecated. use getValueCellStyle().setFrameLineStyle(LineStyle);

Throws:
java.lang.IllegalArgumentException

getFrameLineStyle

public LineStyle getFrameLineStyle()
Deprecated. use getValueCellStyle().getFrameLineStyle();


setBackgroundFillColor

public void setBackgroundFillColor(java.awt.Color newColor)
Deprecated. use getValueCellStyle().setBackgroundColors(new Color[] {newColor});


getBackgroundFillColor

public java.awt.Color getBackgroundFillColor()
Deprecated. use getValueCellStyle().getBackgroundColors()[0];


setBackgroundVisibilityPolicy

public void setBackgroundVisibilityPolicy(int newVisibilityPolicy)
                                   throws java.lang.IllegalArgumentException
Deprecated. use getValueCellStyle().setBackgroundVisibilityPolicy(newVisibilityPolicy);

Throws:
java.lang.IllegalArgumentException

getBackgroundVisibilityPolicy

public int getBackgroundVisibilityPolicy()
Deprecated. use getValueCellStyle().getBackgroundVisibilityPolicy();


equals

public boolean equals(java.lang.Object obj)
Determines whether another object is equal to this GraphMatrixAxisModel.

The result is true if and only if the argument is not null and is a GraphMatrixAxisModel object that has the same property values as this object.

Overrides:
equals in class ContentsModel
Parameters:
obj - the object to test for equality with this GraphMatrixAxisModel
Returns:
true if the objects are the same; false otherwise.

hashCode

public int hashCode()
Computes the hash code for this GraphMatrixAxisModel.

Overrides:
hashCode in class ContentsModel
Returns:
a hash code value for this object.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.