|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.ReferenceBandModel
public class ReferenceBandModel
Constructor Summary | |
---|---|
ReferenceBandModel()
Default constructor. |
|
ReferenceBandModel(FillStyle newFillStyle)
Constructor with a defined FillStyle. |
|
ReferenceBandModel(FillStyle newFillStyle,
ReferenceLineModel newBegin,
ReferenceLineModel newEnd)
Constructor with a defined FillStyle and begin/end ReferenceLineModels. |
|
ReferenceBandModel(java.lang.String label,
java.awt.Color color,
double newBegin,
double newEnd)
Constructor |
|
ReferenceBandModel(java.lang.String label,
java.awt.Color color,
java.lang.Object newBegin,
java.lang.Object newEnd)
Constructor |
Method Summary | |
---|---|
void |
apply(ReferenceBandModel 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 ReferenceBandModel . |
ReferenceLineModel |
getBeginReferenceLineModel()
Returns the begin ReferenceLineModel for this band. |
ReferenceLineModel |
getEndReferenceLineModel()
Returns the End ReferenceLineModel for this band. |
FillStyle |
getFillStyle()
Returns the fill style attributes. |
java.lang.String |
getLabel()
Get the text style for the label. |
TextStyle |
getTextStyle()
Get the text style for the label. |
int |
hashCode()
Computes the hash code for this ReferenceBandModel . |
boolean |
isVisible()
Query if the reference line is visible or not. |
void |
setBeginReferenceLineModel(ReferenceLineModel newBegin)
Sets the begin ReferenceLineModel for this band. |
void |
setEndReferenceLineModel(ReferenceLineModel newEnd)
chart's ReferenceLineModel axis. |
void |
setFillStyle(FillStyle newFillStyle)
Sets the fill style attributes. |
void |
setLabel(java.lang.String newLabel)
Sets the text for the label. |
void |
setTextStyle(TextStyle newTextStyle)
Sets the text style for the label. |
void |
setVisible(boolean visible)
Set whether the reference line is visible or not. |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public ReferenceBandModel()
public ReferenceBandModel(FillStyle newFillStyle)
java.lang.IllegalArgumentException
- if newFillStyle is null.public ReferenceBandModel(FillStyle newFillStyle, ReferenceLineModel newBegin, ReferenceLineModel newEnd)
java.lang.IllegalArgumentException
- if newFillStyle is null.public ReferenceBandModel(java.lang.String label, java.awt.Color color, java.lang.Object newBegin, java.lang.Object newEnd)
java.lang.IllegalArgumentException
- if newBegin is null.
java.lang.IllegalArgumentException
- if newEnd is null.public ReferenceBandModel(java.lang.String label, java.awt.Color color, double newBegin, double newEnd)
java.lang.IllegalArgumentException
- if newBegin is an infinite or a NaN.
java.lang.IllegalArgumentException
- if newEnd is an infinite or a NaN.Method Detail |
---|
public void apply(ReferenceBandModel 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
- a model whose properties to be conveyedpublic void setTextStyle(TextStyle newTextStyle)
Note: Any modification done to the ReferenceLineModel after attaching it to the AxisModel will be lost. AxisModel does not keep the pointer to the ReferenceLineModel but creates it own copy from the model.
Note: If null is passed as newTextStyle then the label uses the the valueTextStyle from the axis model.
newTextStyle
- the new repository for the label's text display attributesgetTextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getTextStyle()
Note: The default value for the textStyle is null and in that case the label uses the the valueTextStyle from the axis model.
TextStyle.apply(com.sas.graphics.components.TextStyle)
,
setTextStyle(com.sas.graphics.components.TextStyle)
public void setLabel(java.lang.String newLabel)
Note: Any modification done to the ReferenceLineModel after attaching it to the AxisModel will be lost. AxisModel does not keep the pointer to the ReferenceLineModel but creates it own copy from the model.
Note: null is a valid value for the newLabel parameter and in this case value of the position property is displayed. Default value for the label is also null.
newLabel
- the new text for the labelgetLabel()
public java.lang.String getLabel()
Note: The label may be null (default) and in that case the label uses the position value as label.
setLabel(java.lang.String)
public boolean isVisible()
setVisible(boolean)
public void setVisible(boolean visible)
visible
- set axis visibilityisVisible()
public void setFillStyle(FillStyle newFillStyle)
newFillStyle
- the new repository for the fill display attributes
java.lang.IllegalArgumentException
- if newFillStyle is null.getFillStyle()
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public FillStyle getFillStyle()
setFillStyle(com.sas.graphics.components.FillStyle)
public void setBeginReferenceLineModel(ReferenceLineModel newBegin)
newBegin
- ReferenceLineModel for this band.getBeginReferenceLineModel()
public ReferenceLineModel getBeginReferenceLineModel()
setBeginReferenceLineModel(com.sas.graphics.components.ReferenceLineModel)
public void setEndReferenceLineModel(ReferenceLineModel newEnd)
newEnd
- ReferenceLineModel for this band.getEndReferenceLineModel()
public ReferenceLineModel getEndReferenceLineModel()
setEndReferenceLineModel(com.sas.graphics.components.ReferenceLineModel)
public boolean equals(java.lang.Object obj)
ReferenceBandModel
.
The result is true
if and only if the argument is not
null
and is a ReferenceBandModel
object that has the same
property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this
ReferenceBandModel
true
if the objects are the same;
false
otherwise.public int hashCode()
ReferenceBandModel
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |