public abstract class AbstractCompositeShapeFactory<W,S extends Shape> extends AbstractShapeFactory<W,S> implements CompositeShapeFactory<W,AbstractCanvasHandler,S,ShapeFactory<W,AbstractCanvasHandler,S>>
| Modifier and Type | Field and Description |
|---|---|
protected List<ShapeFactory<W,AbstractCanvasHandler,S>> |
factories |
| Constructor and Description |
|---|
AbstractCompositeShapeFactory(DefinitionManager definitionManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String definitionId) |
void |
addFactory(ShapeFactory<W,AbstractCanvasHandler,S> factory) |
S |
build(W definition,
AbstractCanvasHandler context) |
String |
getDescription(String definitionId) |
Glyph |
glyph(String definitionId,
double width,
double height) |
protected final List<ShapeFactory<W,AbstractCanvasHandler,S extends Shape>> factories
public AbstractCompositeShapeFactory(DefinitionManager definitionManager)
public void addFactory(ShapeFactory<W,AbstractCanvasHandler,S> factory)
addFactory in interface CompositeShapeFactory<W,AbstractCanvasHandler,S extends Shape,ShapeFactory<W,AbstractCanvasHandler,S extends Shape>>public boolean accepts(String definitionId)
accepts in interface ShapeFactory<W,AbstractCanvasHandler,S extends Shape>public String getDescription(String definitionId)
getDescription in interface ShapeFactory<W,AbstractCanvasHandler,S extends Shape>public S build(W definition, AbstractCanvasHandler context)
build in interface ShapeFactory<W,AbstractCanvasHandler,S extends Shape>public Glyph glyph(String definitionId, double width, double height)
glyph in interface ShapeFactory<W,AbstractCanvasHandler,S extends Shape>Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.