|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.layer.DefaultLayerFactory
public class DefaultLayerFactory
A layer factory implementation. For more information read the comments inside
the implemented ILayerFactory
interface. The factory implements the
singleton pattern.
AbstractLayer
,
AbstractSystemLayer
Constructor Summary | |
---|---|
protected |
DefaultLayerFactory()
Constructs a new factory. |
Method Summary | ||
---|---|---|
AbstractCustomLayer |
createCustomLayer(LayerContainer lc,
ILayer layer)
The default layer factory implementation does not know about any custom layers and will always return a placeholder instance if a layer returned by the Gantt chart model indicates that it is a custom layer. |
|
|
createSystemLayer(LayerContainer lc,
java.lang.Class<T> layerType)
Creates a new system layer. |
|
TimelineObjectLayer |
createTimelineLayer(LayerContainer lc,
ILayer layer)
Creates a new timeline object layer to be used for rendering timeline objects. |
|
static ILayerFactory |
getInstance()
Returns a factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultLayerFactory()
Method Detail |
---|
public static ILayerFactory getInstance()
public <T extends AbstractSystemLayer> T createSystemLayer(LayerContainer lc, java.lang.Class<T> layerType)
ILayerFactory
AbstractSystemLayer
).
createSystemLayer
in interface ILayerFactory
T
- the type of the system layerlc
- the layer container, which will manage the layerlayerType
- the system layer class
public TimelineObjectLayer createTimelineLayer(LayerContainer lc, ILayer layer)
ILayerFactory
createTimelineLayer
in interface ILayerFactory
lc
- the layer container, which will manage the layerlayer
- the layer model information
ILayerFactory.createCustomLayer(LayerContainer, ILayer)
public AbstractCustomLayer createCustomLayer(LayerContainer lc, ILayer layer)
createCustomLayer
in interface ILayerFactory
lc
- the layer container, which will manage the layerlayer
- the layer model information
ILayer.isCustomLayer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |