|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.TimePeriodModel
public class TimePeriodModel
The TimePeriodModel class provides length and display attributes for the time period
in the CompoundTimeAxisModel
.
CompoundTimeAxisModel
,
TimeLength
,
ModelBase
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
TimePeriodModel()
Default constructor |
Method Summary | |
---|---|
void |
apply(TimePeriodModel 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 TimePeriodModel . |
java.lang.String |
getFormat()
Returns the user-specified SAS format applied to the values in the data column. |
TextStyle |
getTextStyle()
Return the text attributes for the value in each time period. |
TimeLength |
getTimeLength()
Returns the time length used for each time period. |
int |
hashCode()
Computes the hash code for this TimePeriodModel . |
boolean |
isVisible()
Query if the time period is visible or not. |
void |
setFormat(java.lang.String aFormat)
Sets the user-specified SAS format. |
void |
setTextStyle(TextStyle valueTextStyle)
Set the text attributes of the value displayed in each period. |
void |
setTimeLength(TimeLength newLength)
Sets the time length used as period. |
void |
setVisible(boolean visible)
Set whether the time period is visible or not. |
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
Constructor Detail |
---|
public TimePeriodModel()
Method Detail |
---|
public void apply(TimePeriodModel 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 setTimeLength(TimeLength newLength)
Default value is null.
newLength
- length time to be used.getTimeLength()
public TimeLength getTimeLength()
setTimeLength(com.sas.graphics.components.TimeLength)
public void setTextStyle(TextStyle valueTextStyle) throws java.lang.IllegalArgumentException
valueTextStyle
- the new repository for the period's text style
java.lang.IllegalArgumentException
- if valueTextStyle is null.getTextStyle()
public TextStyle getTextStyle()
setTextStyle(com.sas.graphics.components.TextStyle)
public void setVisible(boolean visible)
visible
- set tick visibilityisVisible()
public boolean isVisible()
setVisible(boolean)
public void setFormat(java.lang.String aFormat)
aFormat
- String with a valid SAS formatgetFormat()
public java.lang.String getFormat()
setFormat(java.lang.String)
public boolean equals(java.lang.Object obj)
TimePeriodModel
.
The result is true
if and only if the argument is not
null
and is a TimePeriodModel
object that has the same
property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this
TimePeriodModel
true
if the objects are the same;
false
otherwise.public int hashCode()
TimePeriodModel
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |