Klasse Layer
java.lang.Object
com.flexganttfx.model.Layer
Layers are used to group activities together. Activities on the same layer
are drawn at the same time (z-order). A layer has a name, an ID, it can be
turned on / off, and their opacity can be changed. These changes have an
impact on all activities on that layer.
The ID of the layer is used for drag and drop operations of activities between different Gantt charts. Dropped activities will be added to the layer with the same ID. The layer name will be used as the default ID for newly created layers. The ID only needs to be changed if the same layer type will be used with different names in different Gantt charts.
- Seit:
- 1.0
-
Eigenschaftsübersicht
EigenschaftenTypEigenschaftBeschreibungfinal BooleanPropertyThe property used to define whether the layer can be deleted by the user or not.final DoublePropertyThe property used to store the temporary opacity of the layer while the layer is being made visible or hidden.final StringPropertyThe property used to store the id of the layer.final StringPropertyThe property used to store the name of the layer.final DoublePropertyThe property used to store the opacity of the layer.final BooleanPropertyThe property used to store the visibility of the layer. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal BooleanPropertyThe property used to define whether the layer can be deleted by the user or not.final DoublePropertyThe property used to store the temporary opacity of the layer while the layer is being made visible or hidden.final doubleReturns the value offadeInOutOpacityProperty().final StringgetId()Returns the value of theidProperty().final StringgetName()Returns the value of thenameProperty().final doubleReturns the value ofopacityProperty().final StringPropertyThe property used to store the id of the layer.final booleanReturns the value ofdeletableProperty().final booleanReturns the value ofvisibleProperty().final StringPropertyThe property used to store the name of the layer.final DoublePropertyThe property used to store the opacity of the layer.final voidsetDeletable(boolean deletable) Sets the value ofdeletableProperty().final voidsetFadeInOutOpacity(double opacity) Sets the value offadeInOutOpacityProperty().final voidSets the value of theidProperty().final voidSets the value of thenameProperty().final voidsetOpacity(double opacity) Sets the value of theopacityProperty().final voidsetVisible(boolean visible) Sets the value ofvisibleProperty().toString()final BooleanPropertyThe property used to store the visibility of the layer.
-
Eigenschaftsdetails
-
name
The property used to store the name of the layer.- Seit:
- 1.0
- Siehe auch:
-
id
The property used to store the id of the layer.- Seit:
- 1.0
- Siehe auch:
-
opacity
The property used to store the opacity of the layer.- Seit:
- 1.0
- Siehe auch:
-
fadeInOutOpacity
The property used to store the temporary opacity of the layer while the layer is being made visible or hidden. This property is needed for the animation that takes place while this is done.- Seit:
- 1.0
- Siehe auch:
-
visible
The property used to store the visibility of the layer.- Seit:
- 1.0
- Siehe auch:
-
deletable
The property used to define whether the layer can be deleted by the user or not.- Seit:
- 1.0
- Siehe auch:
-
-
Konstruktordetails
-
Layer
Constructs a new layer with the given name.- Parameter:
name- the name of the layer- Seit:
- 1.0
-
Layer
public Layer()Constructs a new layer.- Seit:
- 1.0
-
-
Methodendetails
-
nameProperty
The property used to store the name of the layer.- Gibt zurück:
- the name of the layer
- Seit:
- 1.0
- Siehe auch:
-
setName
Sets the value of thenameProperty().- Parameter:
name- the new name of the layer- Seit:
- 1.0
-
getName
Returns the value of thenameProperty().- Gibt zurück:
- the layer name
- Seit:
- 1.0
-
idProperty
The property used to store the id of the layer.- Gibt zurück:
- the id of the layer
- Seit:
- 1.0
- Siehe auch:
-
setId
Sets the value of theidProperty().- Parameter:
id- the new id of the layer- Seit:
- 1.0
-
getId
Returns the value of theidProperty().- Gibt zurück:
- the layer id
- Seit:
- 1.0
-
opacityProperty
The property used to store the opacity of the layer.- Gibt zurück:
- the layer opacity
- Seit:
- 1.0
- Siehe auch:
-
setOpacity
public final void setOpacity(double opacity) Sets the value of theopacityProperty().- Parameter:
opacity- the new opacity of the layer- Seit:
- 1.0
-
getOpacity
public final double getOpacity()Returns the value ofopacityProperty().- Gibt zurück:
- the opacity of the layer
- Seit:
- 1.0
-
fadeInOutOpacityProperty
The property used to store the temporary opacity of the layer while the layer is being made visible or hidden. This property is needed for the animation that takes place while this is done.- Gibt zurück:
- the fade in / fade out temporary opacity of the layer
- Seit:
- 1.0
- Siehe auch:
-
getFadeInOutOpacity
public final double getFadeInOutOpacity()Returns the value offadeInOutOpacityProperty().- Gibt zurück:
- the fade in / fade out opacity value
- Seit:
- 1.0
-
setFadeInOutOpacity
public final void setFadeInOutOpacity(double opacity) Sets the value offadeInOutOpacityProperty().- Parameter:
opacity- the new opacity- Seit:
- 1.0
-
visibleProperty
The property used to store the visibility of the layer.- Gibt zurück:
- the visibility of the layer
- Seit:
- 1.0
- Siehe auch:
-
isVisible
public final boolean isVisible()Returns the value ofvisibleProperty().- Gibt zurück:
- true if the layer is visible
- Seit:
- 1.0
-
setVisible
public final void setVisible(boolean visible) Sets the value ofvisibleProperty().- Parameter:
visible- the new visibility of the layer
-
deletableProperty
The property used to define whether the layer can be deleted by the user or not.- Gibt zurück:
- true if the layer can be deleted
- Seit:
- 1.0
- Siehe auch:
-
isDeletable
public final boolean isDeletable()Returns the value ofdeletableProperty().- Gibt zurück:
- true if the layer can be deleted
- Seit:
- 1.0
-
setDeletable
public final void setDeletable(boolean deletable) Sets the value ofdeletableProperty().- Parameter:
deletable- the new deletable value- Seit:
- 1.0
-
toString
-