Class AbstractBaseFactory<T extends com.ait.lienzo.client.core.shape.Shape<T>>

  • All Implemented Interfaces:
    org.uberfire.ext.wires.core.api.factories.ShapeFactory<T>

    public abstract class AbstractBaseFactory<T extends com.ait.lienzo.client.core.shape.Shape<T>>
    extends Object
    implements org.uberfire.ext.wires.core.api.factories.ShapeFactory<T>
    Base implementation of a ShapeFactory to avoid unnecessary boiler-plate code
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      org.uberfire.ext.wires.core.api.factories.ShapeDragProxy getDragProxy​(org.uberfire.ext.wires.core.api.factories.FactoryHelper helper, org.uberfire.ext.wires.core.api.factories.ShapeDragProxyPreviewCallback dragPreviewCallback, org.uberfire.ext.wires.core.api.factories.ShapeDragProxyCompleteCallback dragEndCallBack)  
      org.uberfire.ext.wires.core.api.factories.ShapeGlyph getGlyph()  
      protected abstract double getHeight()  
      protected abstract double getWidth()  
      protected abstract T makeShape()  
      • Methods inherited from interface org.uberfire.ext.wires.core.api.factories.ShapeFactory

        builds, getCategory, getShape, getShapeDescription
    • Constructor Detail

      • AbstractBaseFactory

        public AbstractBaseFactory()
    • Method Detail

      • getGlyph

        public org.uberfire.ext.wires.core.api.factories.ShapeGlyph getGlyph()
        Specified by:
        getGlyph in interface org.uberfire.ext.wires.core.api.factories.ShapeFactory<T extends com.ait.lienzo.client.core.shape.Shape<T>>
      • getDragProxy

        public org.uberfire.ext.wires.core.api.factories.ShapeDragProxy getDragProxy​(org.uberfire.ext.wires.core.api.factories.FactoryHelper helper,
                                                                                     org.uberfire.ext.wires.core.api.factories.ShapeDragProxyPreviewCallback dragPreviewCallback,
                                                                                     org.uberfire.ext.wires.core.api.factories.ShapeDragProxyCompleteCallback dragEndCallBack)
        Specified by:
        getDragProxy in interface org.uberfire.ext.wires.core.api.factories.ShapeFactory<T extends com.ait.lienzo.client.core.shape.Shape<T>>
      • makeShape

        protected abstract T makeShape()
      • getWidth

        protected abstract double getWidth()
      • getHeight

        protected abstract double getHeight()