public class Location extends AbstractLocation
A Location may have labels and attributes modeled as Propertys:
"init", "committed", "urgent", "name", "invariant", "exponentialrate",
"comments", "color", "x", "y".
See Document on how to manipulate locations without editor Commands.
listeners, properties, prototype| Constructor and Description |
|---|
Location(Element prototype)
Creates a location based on a given prototype.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accept a visitor.
|
Element |
getPrototypeFromParent(Element parent)
Returns the #location property value of the parent argument.
|
Property |
setProperty(String property,
Object value)
When setting the init property to true, the init property
of all other locations in the same template is removed.
|
clone, getFirst, getLast, getNext, getPrevious, insert, move, remove, setPrototypeacceptSafe, addListener, getColor, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getTemplate, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setPropertyFromPathpublic Location(Element prototype)
prototype - Template.createLocation()public void accept(Visitor visitor) throws Exception
Elementpublic Property setProperty(String property, Object value)
setProperty in class Elementpublic Element getPrototypeFromParent(Element parent)
getPrototypeFromParent in class ElementCopyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.