|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.TickStyle
public class TickStyle
TickStyle stores appearance properties associated with the tick marks.
TickStyle myTickStyle = myAxisTickModel.getMajorTickStyle(); myTickStyle.setPlacement(TickStyle.PLACEMENT_ACROSS); myTickStyle.getLineStyle().setColor(Color.lightGray);
AxisModel
,
LineStyle
,
ModelBase
Field Summary | |
---|---|
static ConstantCollection |
PLACEMENT
PLACEMENT provides a set of static actions associated with the public PLACEMENT_ constants. |
static int |
PLACEMENT_ACROSS
Ticks are placed partially inside and partially outside the graph. |
static int |
PLACEMENT_INSIDE
Ticks are placed inside the graph. |
static int |
PLACEMENT_OUTSIDE
Ticks are placed outside the graph. |
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
TickStyle()
Default constructor |
|
TickStyle(java.awt.Color newColor)
Constructor with a color |
Method Summary | |
---|---|
void |
apply(TickStyle 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 TickStyle . |
com.sas.measures.BaseLength |
getBaseLength()
Get the length of the tick marks. |
LineStyle |
getLineStyle()
Get the line attributes of the tick marks. |
int |
getPlacement()
Get the tick mark placement. |
int |
hashCode()
Computes the hash code for this TickStyle . |
void |
setBaseLength(com.sas.measures.BaseLength newBaseLength)
Set the length of the tick marks. |
void |
setLineStyle(LineStyle newLineStyle)
Set the line attributes of the tick marks. |
void |
setPlacement(int newPlacement)
Set the placement of the tick marks. |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final int PLACEMENT_INSIDE
public static final int PLACEMENT_ACROSS
public static final int PLACEMENT_OUTSIDE
public static final ConstantCollection PLACEMENT
Constructor Detail |
---|
public TickStyle()
public TickStyle(java.awt.Color newColor)
Method Detail |
---|
public void apply(TickStyle 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 void setPlacement(int newPlacement) throws java.lang.IllegalArgumentException
Valid placement types
newPlacement
- new placement type
java.lang.IllegalArgumentException
- if newPlacement is not a valid valuegetPlacement()
public int getPlacement()
Valid placement types
setPlacement(int)
public void setBaseLength(com.sas.measures.BaseLength newBaseLength)
newBaseLength
- containing the length of tick marksgetBaseLength()
public com.sas.measures.BaseLength getBaseLength()
setBaseLength(com.sas.measures.BaseLength)
public void setLineStyle(LineStyle newLineStyle) throws java.lang.IllegalArgumentException
newLineStyle
- the tick's line display attributes
java.lang.IllegalArgumentException
- if newLineStyle is null.getLineStyle()
,
LineStyle.apply(com.sas.graphics.components.LineStyle)
public LineStyle getLineStyle()
setLineStyle(com.sas.graphics.components.LineStyle)
public boolean equals(java.lang.Object obj)
TickStyle
.
The result is true
if and only if the argument is not
null
and is a TickStyle
object that has the same
property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this
TickStyle
true
if the objects are the same;
false
otherwise.public int hashCode()
TickStyle
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |