Class StencilPaletteBuilder
- java.lang.Object
-
- org.uberfire.ext.wires.core.client.palette.StencilPaletteBuilder
-
@ApplicationScoped public class StencilPaletteBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description StencilPaletteBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaletteShapebuild(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.RectangledrawBoundingBox(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.TextdrawDescription(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.ShapeGlyphdrawGlyph(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.GroupscaleGlyph(org.uberfire.ext.wires.core.api.factories.ShapeGlyph glyph)Scale the Shape provided by the ShapeFactory as the glyph to fit the PaletteShape.
-
-
-
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 ShapeGlyphhelper- 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 descriptionhelper- 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 Rectanglehelper- 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.
-
-