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.
|
String |
getName()
Constructs a human-friendly name of this location.
|
Element |
getPrototypeFromParent(Element parent)
Return the proper prototype for this element stored in the parent.
|
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, getCommandManager, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getTemplate, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setCommandManager, setProperties, setPropertyFromPathpublic Location(Element prototype)
Template.createLocation
instead and then insert it into the Template.prototype - the prototype containing default properties.Template.createLocation()public void accept(Visitor visitor) throws Exception
Elementpublic Property setProperty(String property, Object value)
setProperty in class Elementproperty - - The location property stringvalue - - The property valuepublic Element getPrototypeFromParent(Element parent)
ElementgetPrototypeFromParent in class Elementparent - - The parent elementpublic String getName()
AbstractLocationgetName in class AbstractLocationCopyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.