public class DefaultLayerFactory extends Object implements ILayerFactory
ILayerFactory interface. The factory implements the
singleton pattern.AbstractLayer,
AbstractSystemLayer| Modifier | Constructor and Description |
|---|---|
protected |
DefaultLayerFactory()
Constructs a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
<T extends AbstractSystemLayer> |
createSystemLayer(LayerContainer lc,
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.
|
protected DefaultLayerFactory()
public static ILayerFactory getInstance()
public <T extends AbstractSystemLayer> T createSystemLayer(LayerContainer lc, Class<T> layerType)
ILayerFactoryAbstractSystemLayer).createSystemLayer in interface ILayerFactoryT - the type of the system layerlc - the layer container, which will manage the layerlayerType - the system layer classpublic TimelineObjectLayer createTimelineLayer(LayerContainer lc, ILayer layer)
ILayerFactorycreateTimelineLayer in interface ILayerFactorylc - the layer container, which will manage the layerlayer - the layer model informationILayerFactory.createCustomLayer(LayerContainer, ILayer)public AbstractCustomLayer createCustomLayer(LayerContainer lc, ILayer layer)
createCustomLayer in interface ILayerFactorylc - the layer container, which will manage the layerlayer - the layer model informationILayer.isCustomLayer()Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.