Class StencilPaletteBuilder


  • @ApplicationScoped
    public class StencilPaletteBuilder
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PaletteShape build​(com.ait.lienzo.client.widget.LienzoPanel dragProxyParentPanel, org.uberfire.ext.wires.core.api.factories.FactoryHelper helper, org.uberfire.ext.wires.core.api.factories.ShapeFactory factory)  
      protected com.ait.lienzo.client.core.shape.Rectangle drawBoundingBox​(org.uberfire.ext.wires.core.api.factories.ShapeFactory factory, org.uberfire.ext.wires.core.api.factories.FactoryHelper helper)
      Return a Rectangle that is the bounding box for the PaletteShape.
      protected com.ait.lienzo.client.core.shape.Text drawDescription​(org.uberfire.ext.wires.core.api.factories.ShapeFactory factory, org.uberfire.ext.wires.core.api.factories.FactoryHelper helper)
      Return Text that represents the Factory in the Palette.
      protected org.uberfire.ext.wires.core.api.factories.ShapeGlyph drawGlyph​(org.uberfire.ext.wires.core.api.factories.ShapeFactory factory, org.uberfire.ext.wires.core.api.factories.FactoryHelper helper)
      Return a ShapeGlyph that represents the Factory in the Palette.
      protected com.ait.lienzo.client.core.shape.Group scaleGlyph​(org.uberfire.ext.wires.core.api.factories.ShapeGlyph glyph)
      Scale the Shape provided by the ShapeFactory as the glyph to fit the PaletteShape.
    • Constructor Detail

      • StencilPaletteBuilder

        public StencilPaletteBuilder()
    • Method Detail

      • build

        public PaletteShape build​(com.ait.lienzo.client.widget.LienzoPanel dragProxyParentPanel,
                                  org.uberfire.ext.wires.core.api.factories.FactoryHelper helper,
                                  org.uberfire.ext.wires.core.api.factories.ShapeFactory factory)
      • drawGlyph

        protected org.uberfire.ext.wires.core.api.factories.ShapeGlyph drawGlyph​(org.uberfire.ext.wires.core.api.factories.ShapeFactory factory,
                                                                                 org.uberfire.ext.wires.core.api.factories.FactoryHelper helper)
        Return a ShapeGlyph that represents the Factory in the Palette. This implementation delegates this to the ShapeFactory.
        Parameters:
        factory - ShapeFactory that is capable of providing a default ShapeGlyph
        helper - FactoryHelper that might provide additional information to build a Glyph. Unused by this implementation.
        Returns:
        A ShapeGlyph object or null if one is not required.
      • scaleGlyph

        protected com.ait.lienzo.client.core.shape.Group scaleGlyph​(org.uberfire.ext.wires.core.api.factories.ShapeGlyph glyph)
        Scale the Shape provided by the ShapeFactory as the glyph to fit the PaletteShape.
        Parameters:
        glyph -
        Returns:
      • drawDescription

        protected com.ait.lienzo.client.core.shape.Text drawDescription​(org.uberfire.ext.wires.core.api.factories.ShapeFactory factory,
                                                                        org.uberfire.ext.wires.core.api.factories.FactoryHelper helper)
        Return Text that represents the Factory in the Palette. This implementation delegates this to the ShapeFactory.
        Parameters:
        factory - ShapeFactory that is capable of providing a default description
        helper - FactoryHelper that might provide additional information to build a Glyph. Unused by this implementation.
        Returns:
        A Text object or null if one is not required.
      • drawBoundingBox

        protected com.ait.lienzo.client.core.shape.Rectangle drawBoundingBox​(org.uberfire.ext.wires.core.api.factories.ShapeFactory factory,
                                                                             org.uberfire.ext.wires.core.api.factories.FactoryHelper helper)
        Return a Rectangle that is the bounding box for the PaletteShape. This implementation does not use the ShapeFactory but sub-classes could.
        Parameters:
        factory - ShapeFactory that might be useful for sub-classes to build a bounding Rectangle
        helper - FactoryHelper that might provide additional information to build a Glyph. Unused by this implementation.
        Returns:
        A Rectangle object or null if one is not required.