public class Property extends Element
| Modifier and Type | Field and Description |
|---|---|
protected Object |
value |
listeners, properties, prototype| Constructor and Description |
|---|
Property(Element parent,
Element prototype,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accept a visitor.
|
Color |
getColor()
Returns the value of the color property.
|
Font |
getFont() |
String |
getName()
Returns the name with which this property is registered in the
parent.
|
Element |
getPrototypeFromParent(Element parent)
Returns the value of the parent's protype's property given by
getName() or null if the parent does not have a prototype.
|
Object |
getValue() |
int |
getX()
Returns the value of the x property.
|
boolean |
isVisible() |
acceptSafe, addListener, clone, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getTemplate, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setProperty, setPropertyFromPath, setPrototypeprotected Object value
public Object getValue()
public Color getColor()
ElementColor.public Font getFont()
public boolean isVisible()
public void accept(Visitor visitor) throws Exception
Elementpublic String getName()
public Element getPrototypeFromParent(Element parent)
getPrototypeFromParent in class ElementCopyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.