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.
|
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, setPrototype
acceptSafe, addListener, getColor, getCommandManager, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getTemplate, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setCommandManager, setProperties, setPropertyFromPath
public 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
Element
public Property setProperty(String property, Object value)
setProperty
in class Element
property
- - The location property stringvalue
- - The property valuepublic Element getPrototypeFromParent(Element parent)
Element
getPrototypeFromParent
in class Element
parent
- - The parent elementpublic String getName()
AbstractLocation
getName
in class AbstractLocation
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.