Class NodeTemplate


  • public final class NodeTemplate
    extends java.lang.Object
    Represents a node template that is a composition of elements and properties.
    Since:
    1.2.0
    • Constructor Detail

      • NodeTemplate

        public NodeTemplate()
        Constructs a new NodeTemplate. The default shape type and name are ROUNDED_RECTANGLE and ROOT_PANEL, respectively.
    • Method Detail

      • getPanel

        public NodePanel getPanel()
        Returns the template's root panel.
      • setPanel

        public void setPanel​(NodePanel panel)
        Sets a panel to be the template's root panel.
        Parameters:
        panel - a panel.
      • getShapeType

        public ShapeType getShapeType()
        Returns the shape type of the template.
      • setShapeType

        public void setShapeType​(ShapeType shapeType)
        Sets template shape type. This defines the shape of the node.
        Parameters:
        shapeType - the shape type.