public interface ILayer extends INamedObject
LayerContainer class, which utilizes
a layer factory instance (see ILayerFactory) to instantiate a user
interface component for each layer. Usually layers are visualized by a
TimelineObjectLayer, except if the layer specifies that it is a
custom layer. In that case the user interface component for the layer gets
provided by a subclass of AbstractCustomLayer.IGanttChartModel.getLayers(),
LayerContainer.showLayer(ILayer),
LayerContainer.hideLayer(ILayer),
LayerContainer.moveBack(ILayer),
LayerContainer.moveForward(ILayer),
LayerContainer.moveToBack(ILayer),
LayerContainer.moveToFront(ILayer)| Modifier and Type | Interface and Description |
|---|---|
static class |
ILayer.Feature
An enumerator with values that describe features that a layer can have or
not have.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCustomLayer()
Returns TRUE if the layer will be visualized by a custom layer (see
AbstractCustomLayer) instead of the standard
TimelineObjectLayer. |
boolean |
isFeatureEnabled(ILayer.Feature feature)
Determines whether a feature is currently supported / required by a layer
or not.
|
getNamecompareToboolean isCustomLayer()
AbstractCustomLayer) instead of the standard
TimelineObjectLayer. The custom layer implementation needs to be
provided by the application code. An implementation of
ILayerFactory or a subclass of DefaultLayerFactory needs
to be provided, which returns the custom layer implementation when the
factories create method for custom layers gets invoked.boolean isFeatureEnabled(ILayer.Feature feature)
feature - the feature to check for enablementCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.