public class GraphMLNodeTemplate extends GraphMLNode implements IGraphMLTemplate
diagram
id
DIAMOND, ELLIPSE, FATARROW, FATARROW2, HEXAGON, OCTAGON, PARALLELOGRAM, PARALLELOGRAM2, RECTANGLE, RECTANGLE3D, ROUNDRECTANGLE, TRIANGLE, TRIANGLE2
Constructor and Description |
---|
GraphMLNodeTemplate()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
GraphMLNodeTemplate |
clone()
Clone the node.
|
GraphMLNode |
createNode(AbstractGraphMLDiagram diagram,
java.lang.String id)
Create a node from this template.
|
void |
setDefaultGeometry()
Set the default geometry.
|
protected void |
setDefaults()
Set the defaults.
|
computeSize, computeSize, createLabel, getHeight, getLabel, getLabelText, getOpenedShapeNode, getRealizedShapeNode, getShapeNode, getWidth, getX, getY, hasBorderColor, hasFillColor, isAutosized, setAutosized, setBorderColor, setBorderStyle, setDropShadow, setFillColor, setFillColor, setGeometry, setHasBorderColor, setHasFillColor, setHeight, setHeightPadding, setLabel, setLabel, setShapeNode, setType, setWidth, setWidthPadding, setX, setY, updateLabel
addEdgeFrom, addEdgeTo, addFromEdge, addToEdge, computeSize, getDiagram, getFromEdges, getParent, getToEdges, repatriate, repatriate, setFromPortConstraint, setFromPortConstraint, setId, setParent, setToPortConstraint, setToPortConstraint
getDescription, getID, getURL, getURLAsString, hasURL, setDescription, setURL, setURL
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isTemplate
getDescription, getID, getURL, getURLAsString, hasDescription, hasURL, setDescription, setURL, setURL
createLabelPlacement, getLabelPlacement
protected void setDefaults()
setDefaults
in class GraphMLNode
public void setDefaultGeometry()
setDefaultGeometry
in interface IGraphMLNode
setDefaultGeometry
in class GraphMLNode
public GraphMLNode createNode(AbstractGraphMLDiagram diagram, java.lang.String id)
diagram
- the diagramid
- the node idpublic GraphMLNodeTemplate clone()
IGraphMLNode
clone
in interface IGraphMLNode
clone
in class GraphMLNode
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence