public class Location extends AbstractLocation
A Location
may have labels and attributes modeled as Property
s:
"init", "committed", "urgent", "name", "invariant", "exponentialrate",
"comments", "color", "x", "y".
See Document
on how to manipulate locations without editor Command
s.
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, setPrototype
acceptSafe, addListener, getColor, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getTemplate, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setPropertyFromPath
public Location(Element prototype)
prototype
- Template.createLocation()
public void accept(Visitor visitor) throws Exception
Element
public Property setProperty(String property, Object value)
setProperty
in class Element
public Element getPrototypeFromParent(Element parent)
getPrototypeFromParent
in class Element
Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.