|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.nexttext.property.Property
net.nexttext.property.ColorProperty
public class ColorProperty
A colour property of a TextObject or a Behaviour.
| Constructor Summary | |
|---|---|
ColorProperty()
Creates a new ColorProperty using java.awt.Color.black by default. |
|
ColorProperty(java.awt.Color color)
Creates a new ColorProperty from the java.awt.Color object. |
|
| Method Summary | |
|---|---|
ColorProperty |
clone()
Get a new property with the same values as this one. |
java.awt.Color |
get()
Do not modify the returned value, use set() to make changes instead. |
java.awt.Color |
getOriginal()
|
boolean |
isInherited()
Returns the inherited status of this ColorProperty. |
void |
reset()
Reset interface from superclass. |
void |
set(java.awt.Color newColor)
Sets the Color property to the specified value. |
void |
setInherited(boolean inherited)
Setting inherited to true on a ColorProperty will cause it to bypass it's current color value in favor of the color value of it's parent. |
void |
setOriginal(java.awt.Color newColor)
|
| Methods inherited from class net.nexttext.property.Property |
|---|
addChangeListener, getName, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorProperty()
public ColorProperty(java.awt.Color color)
This color property is no longer inherited by default.
| Method Detail |
|---|
public java.awt.Color get()
public void set(java.awt.Color newColor)
public java.awt.Color getOriginal()
public void setOriginal(java.awt.Color newColor)
public void setInherited(boolean inherited)
public boolean isInherited()
public void reset()
reset in class Propertypublic ColorProperty clone()
PropertyThe name is copied because that's what makes it a Property and not just a value.
PropertyChangeListeners are not copied to the new Property.
clone in class Property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||