Module com.flexganttfx.view
Class GridLinesLayer<R extends Row<?,?,?>>
java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
com.flexganttfx.view.graphics.layer.SystemLayer<R>
com.flexganttfx.view.graphics.layer.GridLinesLayer<R>
- Type Parameters:
R
- the type of the rows
Draws the vertical grid lines based on the scale resolutions currently
present in the dateline. The layer can be configured to display 0 to 3 grid
line levels (see
GraphicsBase.setMaxGridLevel(int)
). If the dateline
is, for example, showing days and weeks then a level of 2 would cause the
layer to draw grid lines for days and weeks, while a grid line level of 1
would only render grid lines for days.-
Property Summary
PropertiesTypePropertyDescriptionfinal ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
final DoubleProperty
final DoubleProperty
final DoubleProperty
Properties inherited from class com.flexganttfx.view.graphics.layer.SystemLayer
opacity, visible
Properties inherited from class com.flexganttfx.view.graphics.renderer.RendererBase
alpha, enabled, snapToPixel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
final Paint
Gets the value of thelineStroke1
property.final Paint
Gets the value of thelineStroke2
property.final Paint
Gets the value of thelineStroke3
property.final double
Gets the value of thelineWidth1
property.final double
Gets the value of thelineWidth2
property.final double
Gets the value of thelineWidth3
property.final ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
final DoubleProperty
final DoubleProperty
final DoubleProperty
final void
setLineStroke1
(Paint stroke) Sets the value of thelineStroke1
property.final void
setLineStroke2
(Paint stroke) Sets the value of thelineStroke2
property.final void
setLineStroke3
(Paint stroke) Sets the value of thelineStroke3
property.final void
setLineWidth1
(double width) Sets the value of thelineWidth1
property.final void
setLineWidth2
(double width) Sets the value of thelineWidth2
property.final void
setLineWidth3
(double width) Sets the value of thelineWidth3
property.Methods inherited from class com.flexganttfx.view.graphics.layer.SystemLayer
fadeInOutObservable, getOpacity, isVisible, opacityProperty, setVisible, visibleProperty
Methods inherited from class com.flexganttfx.view.graphics.renderer.RendererBase
alphaProperty, disableRedrawAfterPropertyChange, enabledProperty, enableRedrawAfterPropertyChange, getAlpha, getGraphics, getLocation, getName, getTimeAt, isEnabled, isSnapToPixel, redrawObservable, setAlpha, setEnabled, setSnapToPixel, snapPositionX, snapPositionY, snapSizeX, snapSizeY, snapSpaceX, snapSpaceY, snapToPixelProperty
-
Property Details
-
lineStroke1
-
lineStroke2
-
lineStroke3
-
lineWidth1
-
lineWidth2
-
lineWidth3
-
-
Constructor Details
-
GridLinesLayer
-
-
Method Details
-
lineStroke1Property
- Returns:
- the
lineStroke1
property - See Also:
-
getLineStroke1
Gets the value of thelineStroke1
property.- Property description:
- Returns:
- the value of the
lineStroke1
property - See Also:
-
setLineStroke1
Sets the value of thelineStroke1
property.- Property description:
- Parameters:
stroke
- the value for thelineStroke1
property- See Also:
-
lineStroke2Property
- Returns:
- the
lineStroke2
property - See Also:
-
getLineStroke2
Gets the value of thelineStroke2
property.- Property description:
- Returns:
- the value of the
lineStroke2
property - See Also:
-
setLineStroke2
Sets the value of thelineStroke2
property.- Property description:
- Parameters:
stroke
- the value for thelineStroke2
property- See Also:
-
lineStroke3Property
- Returns:
- the
lineStroke3
property - See Also:
-
getLineStroke3
Gets the value of thelineStroke3
property.- Property description:
- Returns:
- the value of the
lineStroke3
property - See Also:
-
setLineStroke3
Sets the value of thelineStroke3
property.- Property description:
- Parameters:
stroke
- the value for thelineStroke3
property- See Also:
-
lineWidth1Property
- Returns:
- the
lineWidth1
property - See Also:
-
getLineWidth1
public final double getLineWidth1()Gets the value of thelineWidth1
property.- Property description:
- Returns:
- the value of the
lineWidth1
property - See Also:
-
setLineWidth1
public final void setLineWidth1(double width) Sets the value of thelineWidth1
property.- Property description:
- Parameters:
width
- the value for thelineWidth1
property- See Also:
-
lineWidth2Property
- Returns:
- the
lineWidth2
property - See Also:
-
getLineWidth2
public final double getLineWidth2()Gets the value of thelineWidth2
property.- Property description:
- Returns:
- the value of the
lineWidth2
property - See Also:
-
setLineWidth2
public final void setLineWidth2(double width) Sets the value of thelineWidth2
property.- Property description:
- Parameters:
width
- the value for thelineWidth2
property- See Also:
-
lineWidth3Property
- Returns:
- the
lineWidth3
property - See Also:
-
getLineWidth3
public final double getLineWidth3()Gets the value of thelineWidth3
property.- Property description:
- Returns:
- the value of the
lineWidth3
property - See Also:
-
setLineWidth3
public final void setLineWidth3(double width) Sets the value of thelineWidth3
property.- Property description:
- Parameters:
width
- the value for thelineWidth3
property- See Also:
-
drawLayer
- Specified by:
drawLayer
in classSystemLayer<R extends Row<?,
?, ?>>
-