|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.DataTipModel
public class DataTipModel
A DataTipModel encapsulates the set of display properties applicable to the Graph's data tip. The data tip is an interactive window that appears as the mouse cursor moves over the graph's data elements and displays in textual form the data represented by the data element. The information presented in the data tip depends upon the type of graph and what data is being represented by the graph. Additional variables and control over what is visible in the data tip can be controlled by specifying setDataTipVariable() variables in the graph's TableDataModel object.
Method Summary | |
---|---|
void |
apply(DataTipModel 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 DataTipModel . |
java.awt.Color |
getBackgroundColor()
Returns the interior color of the DatatTip's window. |
int |
getContent()
Returns the content of the data tip panel with respect to the Variables set in chart specific setDataTipVariables. |
int |
getHorizontalJustification()
Returns the horizontal justification of the data tip window with respect to the mouse cursor. |
com.sas.measures.BaseDistance |
getHorizontalOffset()
Returns the horizontal offset of the DataTip window from the mouse cursor. |
TextStyle |
getTextStyle()
Returns the visual attributes used to render the text. |
com.sas.measures.BaseDistance |
getVerticalOffset()
Returns the vertical offset of the DataTip window from the mouse cursor. |
int |
hashCode()
Computes the hash code for this DataTipModel . |
boolean |
isVisible()
Get whether or not the text is displayed. |
void |
setBackgroundColor(java.awt.Color newColor)
Sets the interior color of the DatatTip's window. |
void |
setContent(int newMode)
Specifies the content of the data tip with respect to the Variables specified in the chart specific setDataTipVariable method. |
void |
setHorizontalJustification(int newJustification)
Set the horizontal justification of the data tip window with respect to the mouse cursor. |
void |
setHorizontalOffset(com.sas.measures.BaseDistance newOffset)
Set the horizontal offset of the DataTip window from the mouse cursor. |
void |
setTextStyle(TextStyle newTextStyle)
Sets the visual attributes used to render the text. |
void |
setVerticalOffset(com.sas.measures.BaseDistance newOffset)
Set the vertical offset of the DataTip window from the mouse cursor. |
void |
setVisible(boolean newVisible)
Set whether or not the text is displayed. |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Method Detail |
---|
public void apply(DataTipModel 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 setVisible(boolean newVisible)
newVisible
- true means text is displayedisVisible()
public boolean isVisible()
setVisible(boolean)
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 void setBackgroundColor(java.awt.Color newColor) throws java.lang.IllegalArgumentException
newColor
- the color of the DatatTip's window interior
java.lang.IllegalArgumentException
- is thrown for null parameter.getBackgroundColor()
public java.awt.Color getBackgroundColor()
setBackgroundColor(java.awt.Color)
public void setHorizontalJustification(int newJustification) throws java.lang.IllegalArgumentException
Valid values are javax.swing.SwingConstants.LEFT, javax.swing.SwingConstants.CENTER, javax.swing.SwingConstants.RIGHT
newJustification
- new Justification setting to be applied
java.lang.IllegalArgumentException
- if an invalid value is passed in.getHorizontalJustification()
public int getHorizontalJustification()
setHorizontalJustification(int)
public void setHorizontalOffset(com.sas.measures.BaseDistance newOffset) throws java.lang.IllegalArgumentException
newOffset
- the horizontal offset from the mouse cursor.
java.lang.IllegalArgumentException
- if newOffset is null.getHorizontalOffset()
public com.sas.measures.BaseDistance getHorizontalOffset()
setHorizontalOffset(com.sas.measures.BaseDistance)
public void setVerticalOffset(com.sas.measures.BaseDistance newOffset) throws java.lang.IllegalArgumentException
newOffset
- the vertical offset from the mouse cursor.
java.lang.IllegalArgumentException
- if newOffset is null.getVerticalOffset()
public com.sas.measures.BaseDistance getVerticalOffset()
setVerticalOffset(com.sas.measures.BaseDistance)
public boolean equals(java.lang.Object obj)
DataTipModel
.
The result is true
if and only if the argument is not
null
and is a DataTipModel
object that has the same
property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this
DataTipModel
true
if the objects are the same;
false
otherwise.public void setContent(int newMode)
newMode
- content mode for data tip
java.lang.IllegalArgumentException
- if an invalid parameter is passed in.getContent()
public int getContent()
public int hashCode()
DataTipModel
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |