@ApplicationScoped public class StencilPaletteBuilder extends Object
Constructor and Description |
---|
StencilPaletteBuilder() |
Modifier and Type | Method and Description |
---|---|
PaletteShape |
build(com.ait.lienzo.client.widget.LienzoPanel dragProxyParentPanel,
FactoryHelper helper,
ShapeFactory factory) |
protected com.ait.lienzo.client.core.shape.Rectangle |
drawBoundingBox(ShapeFactory factory,
FactoryHelper helper)
Return a Rectangle that is the bounding box for the PaletteShape.
|
protected com.ait.lienzo.client.core.shape.Text |
drawDescription(ShapeFactory factory,
FactoryHelper helper)
Return Text that represents the Factory in the Palette.
|
protected ShapeGlyph |
drawGlyph(ShapeFactory factory,
FactoryHelper helper)
Return a ShapeGlyph that represents the Factory in the Palette.
|
protected com.ait.lienzo.client.core.shape.Group |
scaleGlyph(ShapeGlyph glyph)
Scale the Shape provided by the ShapeFactory as the glyph to fit the PaletteShape.
|
public PaletteShape build(com.ait.lienzo.client.widget.LienzoPanel dragProxyParentPanel, FactoryHelper helper, ShapeFactory factory)
protected ShapeGlyph drawGlyph(ShapeFactory factory, FactoryHelper helper)
factory
- ShapeFactory that is capable of providing a default ShapeGlyphhelper
- FactoryHelper that might provide additional information to build a Glyph. Unused by this implementation.protected com.ait.lienzo.client.core.shape.Group scaleGlyph(ShapeGlyph glyph)
glyph
- protected com.ait.lienzo.client.core.shape.Text drawDescription(ShapeFactory factory, FactoryHelper helper)
factory
- ShapeFactory that is capable of providing a default descriptionhelper
- FactoryHelper that might provide additional information to build a Glyph. Unused by this implementation.protected com.ait.lienzo.client.core.shape.Rectangle drawBoundingBox(ShapeFactory factory, FactoryHelper helper)
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.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.