Class TypeNodeFactory

  • All Implemented Interfaces:
    org.uberfire.ext.wires.core.api.factories.ShapeFactory<com.ait.lienzo.client.core.shape.Circle>

    @ApplicationScoped
    public class TypeNodeFactory
    extends BaseGuidedDecisionTreeNodeFactory<com.ait.lienzo.client.core.shape.Circle>
    • Constructor Detail

      • TypeNodeFactory

        public TypeNodeFactory()
    • Method Detail

      • getShapeDescription

        public String getShapeDescription()
      • getShape

        public org.uberfire.ext.wires.core.api.shapes.WiresBaseShape getShape​(org.uberfire.ext.wires.core.api.factories.FactoryHelper helper)
        This returns a new Shape following a drag operation from the palette
        Parameters:
        helper -
        Returns:
      • getShape

        public TypeShape getShape​(org.drools.workbench.models.guided.dtree.shared.model.nodes.TypeNode node,
                                  boolean isReadOnly)
        This returns a new Shape representing an existing Node
        Parameters:
        node -
        isReadOnly -
        Returns:
      • builds

        public boolean builds​(org.uberfire.ext.wires.core.api.shapes.WiresBaseShape shapeType)
        Specified by:
        builds in interface org.uberfire.ext.wires.core.api.factories.ShapeFactory<com.ait.lienzo.client.core.shape.Circle>
        Overrides:
        builds in class BaseGuidedDecisionTreeNodeFactory<com.ait.lienzo.client.core.shape.Circle>
      • makeShape

        protected com.ait.lienzo.client.core.shape.Circle makeShape()
        Specified by:
        makeShape in class org.uberfire.ext.wires.core.client.factories.AbstractBaseFactory<com.ait.lienzo.client.core.shape.Circle>
      • getWidth

        protected double getWidth()
        Specified by:
        getWidth in class org.uberfire.ext.wires.core.client.factories.AbstractBaseFactory<com.ait.lienzo.client.core.shape.Circle>
      • getHeight

        protected double getHeight()
        Specified by:
        getHeight in class org.uberfire.ext.wires.core.client.factories.AbstractBaseFactory<com.ait.lienzo.client.core.shape.Circle>