public class Layer extends NamedObject implements ILayer
ILayer
.ILayer.Feature
PROPERTY_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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
compareTo
public Layer(String name)
name
- the layer's namepublic boolean isCustomLayer()
ILayer
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.isCustomLayer
in interface ILayer
public void setCustomLayer(boolean b)
b
- AbstractCustomLayer
,
ILayerFactory.createCustomLayer(com.dlsc.flexgantt.swing.layer.LayerContainer,
ILayer)
public boolean isFeatureEnabled(ILayer.Feature feature)
ILayer
isFeatureEnabled
in interface ILayer
feature
- 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.