public class Layer extends Object
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.
Type | Property and Description |
---|---|
BooleanProperty |
deletable
The property used to define whether the layer can be deleted by the user
or not.
|
DoubleProperty |
fadeInOutOpacity
The property used to store the temporary opacity of the layer while the
layer is being made visible or hidden.
|
StringProperty |
id
The property used to store the id of the layer.
|
StringProperty |
name
The property used to store the name of the layer.
|
DoubleProperty |
opacity
The property used to store the opacity of the layer.
|
BooleanProperty |
visible
The property used to store the visibility of the layer.
|
Constructor and Description |
---|
Layer()
Constructs a new layer.
|
Layer(String name)
Constructs a new layer with the given name.
|
Modifier and Type | Method and Description |
---|---|
BooleanProperty |
deletableProperty()
The property used to define whether the layer can be deleted by the user
or not.
|
DoubleProperty |
fadeInOutOpacityProperty()
The property used to store the temporary opacity of the layer while the
layer is being made visible or hidden.
|
double |
getFadeInOutOpacity()
Returns the value of
fadeInOutOpacityProperty() . |
String |
getId()
Returns the value of the
idProperty() . |
String |
getName()
Returns the value of the
nameProperty() . |
double |
getOpacity()
Returns the value of
opacityProperty() . |
StringProperty |
idProperty()
The property used to store the id of the layer.
|
boolean |
isDeletable()
Returns the value of
deletableProperty() . |
boolean |
isVisible()
Returns the value of
visibleProperty() . |
StringProperty |
nameProperty()
The property used to store the name of the layer.
|
DoubleProperty |
opacityProperty()
The property used to store the opacity of the layer.
|
void |
setDeletable(boolean deletable)
Sets the value of
deletableProperty() . |
void |
setFadeInOutOpacity(double opacity)
Sets the value of
fadeInOutOpacityProperty() . |
void |
setId(String id)
Sets the value of the
idProperty() . |
void |
setName(String name)
Sets the value of the
nameProperty() . |
void |
setOpacity(double opacity)
Sets the value of the
opacityProperty() . |
void |
setVisible(boolean visible)
Sets the value of
visibleProperty() . |
String |
toString() |
BooleanProperty |
visibleProperty()
The property used to store the visibility of the layer.
|
public final StringProperty nameProperty
getName()
,
setName(String)
public final StringProperty idProperty
getId()
,
setId(String)
public final DoubleProperty opacityProperty
getOpacity()
,
setOpacity(double)
public final DoubleProperty fadeInOutOpacityProperty
getFadeInOutOpacity()
,
setFadeInOutOpacity(double)
public final BooleanProperty visibleProperty
isVisible()
,
setVisible(boolean)
public final BooleanProperty deletableProperty
isDeletable()
,
setDeletable(boolean)
public Layer(String name)
name
- the name of the layerpublic Layer()
public final StringProperty nameProperty()
getName()
,
setName(String)
public final void setName(String name)
nameProperty()
.name
- the new name of the layerpublic final String getName()
nameProperty()
.public final StringProperty idProperty()
getId()
,
setId(String)
public final void setId(String id)
idProperty()
.id
- the new id of the layerpublic final String getId()
idProperty()
.public final DoubleProperty opacityProperty()
getOpacity()
,
setOpacity(double)
public final void setOpacity(double opacity)
opacityProperty()
.opacity
- the new opacity of the layerpublic final double getOpacity()
opacityProperty()
.public final DoubleProperty fadeInOutOpacityProperty()
getFadeInOutOpacity()
,
setFadeInOutOpacity(double)
public final double getFadeInOutOpacity()
fadeInOutOpacityProperty()
.public final void setFadeInOutOpacity(double opacity)
fadeInOutOpacityProperty()
.opacity
- the new opacitypublic final BooleanProperty visibleProperty()
isVisible()
,
setVisible(boolean)
public final boolean isVisible()
visibleProperty()
.public final void setVisible(boolean visible)
visibleProperty()
.visible
- the new visibility of the layerpublic final BooleanProperty deletableProperty()
isDeletable()
,
setDeletable(boolean)
public final boolean isDeletable()
deletableProperty()
.public final void setDeletable(boolean deletable)
deletableProperty()
.deletable
- the new deletable valueCopyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.