public final class NodeTemplate extends Object
Constructor and Description |
---|
NodeTemplate()
Constructs a new
NodeTemplate . |
Modifier and Type | Method and Description |
---|---|
NodePanel |
getPanel()
Returns the template's root panel.
|
ShapeType |
getShapeType()
Returns the shape type of the template.
|
void |
setPanel(NodePanel panel)
Sets a panel to be the template's root panel.
|
void |
setShapeType(ShapeType shapeType)
Sets template shape type.
|
public NodeTemplate()
NodeTemplate
. The default shape type and name are ROUNDED_RECTANGLE
and ROOT_PANEL
, respectively.public NodePanel getPanel()
public void setPanel(NodePanel panel)
panel
- a panel.public ShapeType getShapeType()
public void setShapeType(ShapeType shapeType)
shapeType
- the shape type.