|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.graphics.components.NoteModel
public class NoteModel
The NoteModel class encapsulates the set of user specified properties that pertain to chart titles and footnotes.
The chart models will contain NoteModels for titles and footnotes which you may access to specify a desired appearance.
BarChart barChart =or you could take the fast approach:; BarChartModel barChartModel = barChart.getBarChartModel(); NoteModel title1 = barChartModel.getTitle1(); title1.setText("Total sales this year!");
barChart.getBarChartModel().getTitle1().setText("Total sales this year!");
GraphStyle,
ModelBase,
AdvancedTextStyle,
TextStyle| Constructor Summary | |
|---|---|
NoteModel()
Default constructor. |
|
NoteModel(java.lang.String newText)
Constructor with specified text. |
|
NoteModel(java.lang.String newText,
TextStyle newTextStyle)
Constructor with specified text and associated font. |
|
| Method Summary | |
|---|---|
void |
apply(NoteModel 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 NoteModel. |
java.lang.String |
getText()
Returns the user specified text string that is to be displayed. |
TextStyle |
getTextStyle()
Returns the visual attributes used to render the text. |
int |
hashCode()
Computes the hash code for this NoteModel. |
void |
setText(java.lang.String newText)
Sets the text string that is to be displayed. |
void |
setTextStyle(TextStyle newTextStyle)
Sets the visual attributes used to render the text. |
| Methods inherited from class com.sas.graphics.components.ModelBase |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
| Constructor Detail |
|---|
public NoteModel()
public NoteModel(java.lang.String newText)
newText - the text string value for this note.
public NoteModel(java.lang.String newText,
TextStyle newTextStyle)
newText - the text valuenewTextStyle - the text style attributes| Method Detail |
|---|
public void apply(NoteModel 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 setText(java.lang.String newText)
null is acceptable and
will have the affect of causing the note to
not be displayed.
newText - String to be displayedgetText()public java.lang.String getText()
null will be returned if the text has not been designated.
setText(java.lang.String)
public void setTextStyle(TextStyle newTextStyle)
throws java.lang.IllegalArgumentException
newTextStyle - the text attributes
java.lang.IllegalArgumentException - is thrown for null parameter.setTextStyle(com.sas.graphics.components.TextStyle)public TextStyle getTextStyle()
setTextStyle(com.sas.graphics.components.TextStyle)public boolean equals(java.lang.Object obj)
NoteModel.
The result is true if and only if the argument is not
null and is a NoteModel object that has the same
property values as this object.
equals in class ModelBaseobj - the object to test for equality with this
NoteModel
true if the objects are the same;
false otherwise.public int hashCode()
NoteModel.
hashCode in class ModelBase
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||