Class AbstractBaseFactory<T extends com.ait.lienzo.client.core.shape.Shape<T>>
- java.lang.Object
-
- org.uberfire.ext.wires.core.client.factories.AbstractBaseFactory<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
-
-
Constructor Summary
Constructors Constructor Description AbstractBaseFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.uberfire.ext.wires.core.api.factories.ShapeDragProxygetDragProxy(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.ShapeGlyphgetGlyph()protected abstract doublegetHeight()protected abstract doublegetWidth()protected abstract TmakeShape()
-
-
-
Method Detail
-
getGlyph
public org.uberfire.ext.wires.core.api.factories.ShapeGlyph getGlyph()
-
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)
-
makeShape
protected abstract T makeShape()
-
getWidth
protected abstract double getWidth()
-
getHeight
protected abstract double getHeight()
-
-