public abstract class AbstractShapeDefFactory<W,V extends ShapeView,S extends Shape<V>,P extends ShapeDef<W>> extends AbstractBindableShapeFactory<W,S> implements ShapeDefFactory<W,AbstractCanvasHandler,S,P>
| Modifier and Type | Field and Description |
|---|---|
protected DefinitionManager |
definitionManager |
protected Map<Class<?>,P> |
definitions |
protected FactoryManager |
factoryManager |
| Constructor and Description |
|---|
AbstractShapeDefFactory(DefinitionManager definitionManager,
FactoryManager factoryManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addShapeDef(Class<?> clazz,
P proxy) |
protected String |
getDescription(Class<?> clazz) |
String |
getDescription(String definitionId) |
P |
getShapeDef(Class<?> clazz) |
P |
getShapeDef(String definitionId) |
Set<Class<?>> |
getSupportedModelClasses() |
Glyph |
glyph(String definitionId,
double width,
double height) |
accepts, getDefinitionClass, getDefinitionId, glyphclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccepts, buildprotected final DefinitionManager definitionManager
protected final FactoryManager factoryManager
public AbstractShapeDefFactory(DefinitionManager definitionManager, FactoryManager factoryManager)
public Set<Class<?>> getSupportedModelClasses()
getSupportedModelClasses in class AbstractBindableShapeFactory<W,S extends Shape<V>>public String getDescription(String definitionId)
getDescription in interface ShapeFactory<W,AbstractCanvasHandler,S extends Shape<V>>getDescription in class AbstractBindableShapeFactory<W,S extends Shape<V>>protected String getDescription(Class<?> clazz)
getDescription in class AbstractBindableShapeFactory<W,S extends Shape<V>>public void addShapeDef(Class<?> clazz, P proxy)
addShapeDef in interface ShapeDefFactory<W,AbstractCanvasHandler,S extends Shape<V>,P extends ShapeDef<W>>public Glyph glyph(String definitionId, double width, double height)
glyph in interface ShapeFactory<W,AbstractCanvasHandler,S extends Shape<V>>glyph in class AbstractBindableShapeFactory<W,S extends Shape<V>>Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.