public class Template extends AbstractTemplate
listeners, properties, prototype
Constructor and Description |
---|
Template(Element prototype)
Constructor
|
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)
Return the proper prototype for this element stored in the parent.
|
accept, getTemplate
getFirst, getLast, getNext, getPrevious, insert, move, remove, setPrototype
acceptSafe, addListener, getColor, getCommandManager, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setCommandManager, setProperties, setProperty, setPropertyFromPath
public Template(Element prototype)
prototype
- - The prototypepublic Location createLocation()
public BranchPoint createBranchPoint()
public Edge createEdge()
public Element getPrototypeFromParent(Element parent)
Element
getPrototypeFromParent
in class AbstractTemplate
parent
- - The parent elementpublic Object clone() throws CloneNotSupportedException
clone
in class AbstractTemplate
CloneNotSupportedException
- the object could not be cloned.Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.