|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.LineStyle
public class LineStyle
Attributes that affect the appearance of solid lines. The LineStyle class encapsulates the set of user specifiable properties pertaining to solid-only lines like frames, tick marks and most outlines. Attributes included are: color, visibility, thickness.
BarChart barChart = new BarChart(new BarChartTableDataModel(someTableModel)); LineStyle lineStyle = barChart.getGraphModel().getCategoryAxisModel().getAxisLineStyle() lineStyle.setColor(Color.blue.darker());
GraphStyle
,
ModelBase
Constructor Summary | |
---|---|
LineStyle()
|
|
LineStyle(java.awt.Color newColor)
|
|
LineStyle(java.awt.Color newColor,
com.sas.measures.BaseLength newThickness,
int newVisibilityPolicy)
|
Method Summary | |
---|---|
void |
apply(LineStyle 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 LineStyle . |
java.awt.Color |
getColor()
Gets the line Color. |
com.sas.measures.BaseLength |
getThickness()
Get line thickness. |
int |
getVisibilityPolicy()
Returns the line's visibility policy which if automatic will vary by its use in the graph. |
int |
hashCode()
Computes the hash code for this LineStyle . |
void |
setColor(java.awt.Color newColor)
Set the line color. |
void |
setThickness(com.sas.measures.BaseLength newThickness)
Set line thickness. |
void |
setVisibilityPolicy(int newVisibilityPolicy)
Set the visibility policy which may be visible (GraphConstants.TRUE), not visible (GraphConstants.FALSE)or determined by the graph based upon state information (GraphConstants.AUTOMATIC). |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public LineStyle()
public LineStyle(java.awt.Color newColor)
public LineStyle(java.awt.Color newColor, com.sas.measures.BaseLength newThickness, int newVisibilityPolicy)
Method Detail |
---|
public void apply(LineStyle theOtherObject)
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.
theOtherObject
- properties applied to this instancepublic java.awt.Color getColor()
setColor(java.awt.Color)
public void setColor(java.awt.Color newColor) throws java.lang.IllegalArgumentException
newColor
- the color to set on this line.
java.lang.IllegalArgumentException
- if newColor is null.getColor()
public void setThickness(com.sas.measures.BaseLength newThickness) throws java.lang.IllegalArgumentException
newThickness
- BaseLength containing line thickness.
java.lang.IllegalArgumentException
- if newThickness is null.getThickness()
public com.sas.measures.BaseLength getThickness()
setThickness(com.sas.measures.BaseLength)
public void setVisibilityPolicy(int newVisibilityPolicy) throws java.lang.IllegalArgumentException
newVisibilityPolicy
values are:
newVisibilityPolicy
- visibility of this line
java.lang.IllegalArgumentException
- is thrown if an invalid newVisibilityPolicy parameter is specified.getVisibilityPolicy()
public int getVisibilityPolicy()
setVisibilityPolicy(int)
public boolean equals(java.lang.Object obj)
LineStyle
.
The result is true
if and only if the argument is not
null
and is a LineStyle
object that has the same
property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this
LineStyle
true
if the objects are the same;
false
otherwise.public int hashCode()
LineStyle
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |