|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.ModelBase
public abstract class ModelBase
ModelBase handles operations common to all graph models.
Constructor Summary | |
---|---|
ModelBase()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this ModelBase . |
protected void |
firePropertyChange(java.lang.String propertyName,
boolean oldProperty,
boolean newProperty)
Reports a bound property change for a String property. |
protected void |
firePropertyChange(java.lang.String propertyName,
double oldProperty,
double newProperty)
Reports a bound property change for a double property. |
protected void |
firePropertyChange(java.lang.String propertyName,
int oldProperty,
int newProperty)
Reports a bound property change for an int property. |
protected void |
firePropertyChange(java.lang.String propertyName,
ModelBase oldProperty,
ModelBase newProperty)
Support for reporting bound contained-Model property changes. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldProperty,
java.lang.Object newProperty)
Support for reporting bound property changes. |
int |
hashCode()
Computes the hash code for this ModelBase . |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
protected void |
setContainedModel(java.lang.String property,
ModelBase containedModel)
For internal use only. |
Constructor Detail |
---|
public ModelBase()
Method Detail |
---|
protected final void setContainedModel(java.lang.String property, ModelBase containedModel)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
A PropertyChangeEvent will get fired in response to setting a bound property, such as setFont, setBackground, or setForeground. Note that if the current component is inheriting its foreground, background, or font from its container, then no event will be fired in response to a change in the inherited property.
listener
- the PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to be removedprotected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldProperty, java.lang.Object newProperty)
propertyName
- the property being changedoldProperty
- the value being changed fromnewProperty
- the value being changed toprotected void firePropertyChange(java.lang.String propertyName, ModelBase oldProperty, ModelBase newProperty)
propertyName
- the property being changedoldProperty
- the value being changed fromnewProperty
- the value being changed toprotected void firePropertyChange(java.lang.String propertyName, double oldProperty, double newProperty)
propertyName
- the property being changedoldProperty
- the value being changed fromnewProperty
- the value being changed tofirePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
protected void firePropertyChange(java.lang.String propertyName, boolean oldProperty, boolean newProperty)
propertyName
- the property being changedoldProperty
- the value being changed fromnewProperty
- the value being changed tofirePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
protected void firePropertyChange(java.lang.String propertyName, int oldProperty, int newProperty)
propertyName
- the property being changedoldProperty
- the value being changed fromnewProperty
- the value being changed tofirePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public boolean equals(java.lang.Object obj)
ModelBase
.
The result is true
if and only if the argument is not
null
and is a ModelBase
object that has the same
properties as this object.
equals
in class java.lang.Object
obj
- the object to test for equality with this
ModelBase
true
if the objects are the same;
false
otherwise.public int hashCode()
ModelBase
.
hashCode
in class java.lang.Object
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |