|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.BrushModel
public class BrushModel
A BrushModel encapsulates the set of display properties presented when selection is performed. Selection (when applicable) is performed by clicking on a select-able element or by clicking and dragging to create create a brush. When a brush is created it can be moved by clicking inside the brush area and dragging to the desired location. Pressing the ctrl button while clicking or dragging on a non-selected element will add the new element to the set of selected elements.
Constructor Summary | |
---|---|
BrushModel()
|
Method Summary | |
---|---|
void |
apply(BrushModel 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 BrushModel . |
java.awt.Color |
getSelectionAccentColor()
Returns the secondary color used to indicate selection. |
java.awt.Color |
getSelectionColor()
Returns the primary color used to indicate selection. |
int |
hashCode()
Computes the hash code for this BrushModel . |
boolean |
isSelectionAllowed()
Returns whether or not selection can be performed via this graph. |
boolean |
isSelectOnGrow()
Returns whether or not selection should happen as the brush area is being sized. |
boolean |
isSelectOnMove()
Returns whether or not selection should happen as the brush area is being moved. |
void |
setSelectionAccentColor(java.awt.Color newSelectionAccentColor)
Sets the secondary color used to indicate selection. |
void |
setSelectionAllowed(boolean newSelectionAllowed)
Set whether or not selection can be performed via this graph. |
void |
setSelectionColor(java.awt.Color newSelectionColor)
Sets the primary color used to indicate selection. |
void |
setSelectOnGrow(boolean newSelectOnGrow)
Set whether or not selection should happen as the brush area is being sized. |
void |
setSelectOnMove(boolean newSelectOnMove)
Set whether or not selection should happen as the brush area is being moved. |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public BrushModel()
Method Detail |
---|
public void apply(BrushModel 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 setSelectOnGrow(boolean newSelectOnGrow)
newSelectOnGrow
- true means to perform selections as the brush is sized.isSelectOnGrow()
public boolean isSelectOnGrow()
setSelectOnGrow(boolean)
public void setSelectOnMove(boolean newSelectOnMove)
newSelectOnMove
- true means to perform selections as the brush is moved.isSelectOnMove()
public boolean isSelectOnMove()
setSelectOnMove(boolean)
public void setSelectionAllowed(boolean newSelectionAllowed)
newSelectionAllowed
- true means selection is allowed via this view other wise it is not.isSelectionAllowed()
public boolean isSelectionAllowed()
setSelectionAllowed(boolean)
public void setSelectionColor(java.awt.Color newSelectionColor) throws java.lang.IllegalArgumentException
In the case of selected text the selectionColor appears as the text's background color.
The default value is java.awt.SystemColor.textHighlight.
newSelectionColor
- the primary color used to indicate selection.
java.lang.IllegalArgumentException
- is thrown for null parameter.getSelectionColor()
public java.awt.Color getSelectionColor()
setSelectionColor(java.awt.Color)
public void setSelectionAccentColor(java.awt.Color newSelectionAccentColor) throws java.lang.IllegalArgumentException
In the case of selected text the selectionAccentColor appears as the text's foreground color.
The default value is java.awt.SystemColor.textHighlightText.
newSelectionAccentColor
- the secondary color used to indicate selection.
java.lang.IllegalArgumentException
- is thrown for null parameter.getSelectionAccentColor()
public java.awt.Color getSelectionAccentColor()
setSelectionAccentColor(java.awt.Color)
public boolean equals(java.lang.Object obj)
BrushModel
.
The result is true
if and only if the argument is not
null
and is a BrushModel
object that has the same
property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this
BrushModel
true
if the objects are the same;
false
otherwise.public int hashCode()
BrushModel
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |