public class Layer extends NamedObject implements ILayer
ILayer.ILayer.FeaturePROPERTY_NAME| Constructor and Description |
|---|
Layer(String name)
Constructs a new layer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(ILayer.Feature feature)
Adds a feature to the layer.
|
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.
|
void |
removeFeature(ILayer.Feature feature)
Removes a feature from the layer.
|
void |
setCustomLayer(boolean b)
Specifies whether the layer will be visualized by a custom layer
implementation.
|
addPropertyChangeListener, compareTo, getChangeSupport, getName, removePropertyChangeListener, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamecompareTopublic Layer(String name)
name - the layer's namepublic boolean isCustomLayer()
ILayerAbstractCustomLayer) 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.isCustomLayer in interface ILayerpublic void setCustomLayer(boolean b)
b - AbstractCustomLayer,
ILayerFactory.createCustomLayer(com.dlsc.flexgantt.swing.layer.LayerContainer,
ILayer)public boolean isFeatureEnabled(ILayer.Feature feature)
ILayerisFeatureEnabled in interface ILayerfeature - the feature to check for enablementpublic void addFeature(ILayer.Feature feature)
feature - the feature that is being addedpublic void removeFeature(ILayer.Feature feature)
feature - the feature that is being removedCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.