public class Template extends AbstractTemplate
listeners, properties, prototype
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a deep clone of the template.
|
BranchPoint |
createBranchPoint()
Create a new branch point with this template as the parent and
optionally a prototype according to the '#branchpoint' property of
the template.
|
Edge |
createEdge()
Create a new edge with this template as the parent and
optionally a prototype according to the '#edge' property of the
template.
|
Location |
createLocation()
Create a new location with this template as the parent and
optionally a prototype according to the '#location' property of
the template.
|
Element |
getPrototypeFromParent(Element parent)
Returns the #template property value of the parent argument.
|
accept, getTemplate
getFirst, getLast, getNext, getPrevious, insert, move, remove, setPrototype
acceptSafe, addListener, getColor, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setProperty, setPropertyFromPath
public Template(Element prototype)
public Location createLocation()
public BranchPoint createBranchPoint()
public Edge createEdge()
public Element getPrototypeFromParent(Element parent)
getPrototypeFromParent
in class AbstractTemplate
public Object clone() throws CloneNotSupportedException
clone
in class AbstractTemplate
CloneNotSupportedException
Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.