The behaviour of several FlexGantt components can be controlled by the model layer instances themselves. The ILayer interface defines a method called isFeatureEnabled(Feature). The available features are defined in the enumerator Feature. The default ILayer implementation Layer defines methods to add and remove features to and from the layer.
public void Layer.addFeature(Feature);
public void Layer.removeFeature(Feature);
The following table lists the Feature enumerator values:
| Feature | Description |
|---|---|
| DELETION |
If enabled allows the user to delete the layer from the Gantt chart. A „delete“ icon will be visible in the layer selector.
|
| OVERVIEW |
If enabled considers the layer for the overview / radar selector. The timeline objects shown in the layer will be visible in the radar.
|
| RELATIONSHIPS |
If enabled considers the layer for the overview / radar selector. The timeline objects shown in the layer will be visible in the radar.
|
| SHOW_IN_PALETTE | If enabled will cause the layer selector to list the layer. See screenshot for feature DELETION. |
| TIMELINE_OBJECT_CREATION |
The LassoLayer will consider the layer for timeline object creation. The LassoLayer will show a layer selection dialog when the user creates a new timeline object only if several timeline object layers enable this feature. If only one layer has this feature enabled the timeline object will automatically be created on that layer. |
| TIMELINE_OBJECT_DESCRIPTIONS | The LabelLayer will only attempt to draw labels next to a timeline object if its layer enabled this feature. |
| TRANSPARENCY |
If this feature is enabled it will cause the LayerSelector to display a transparency slider next to the layerʻs name.
Transparency Sliders |






