|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.uppaal.model.core2.Element
com.uppaal.model.core2.Property
public class Property
A property is a special kind of element. Like any element it can have listeners and properties. The value of a property is an object. This can be a string, an integer, even a font or color. The value of a property cannot be set directly. This needs to be done in the parent of the property.
| Field Summary | |
|---|---|
protected Object |
value
|
| Fields inherited from class com.uppaal.model.core2.Element |
|---|
listeners, properties, prototype |
| Constructor Summary | |
|---|---|
Property(Element parent,
Element prototype,
Object value)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.uppaal.model.core2.Element |
|---|
acceptSafe, addListener, clone, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getTemplate, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setProperty, setPropertyFromPath, setPrototype |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object value
| Constructor Detail |
|---|
public Property(Element parent,
Element prototype,
Object value)
| Method Detail |
|---|
public Object getValue()
public Color getColor()
ElementColor.
- Overrides:
getColor in class Element
public Font getFont()
public boolean isVisible()
public void accept(Visitor visitor)
throws Exception
Element
accept in class ElementExceptionpublic String getName()
public Element getPrototypeFromParent(Element parent)
getPrototypeFromParent in class Elementpublic int getX()
ElementInteger.
- Overrides:
getX in class Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||