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, getTemplategetFirst, getLast, getNext, getPrevious, insert, move, remove, setPrototypeacceptSafe, addListener, getColor, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setProperties, setProperty, setPropertyFromPathpublic Template(Element prototype)
public Location createLocation()
public BranchPoint createBranchPoint()
public Edge createEdge()
public Element getPrototypeFromParent(Element parent)
getPrototypeFromParent in class AbstractTemplatepublic Object clone() throws CloneNotSupportedException
clone in class AbstractTemplateCloneNotSupportedExceptionCopyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.