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
public class GridLinesLayer<R extends Row<?,?,?>> extends SystemLayer<R>
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
Properties Type Property Description ObjectProperty<Paint>
lineStroke1
ObjectProperty<Paint>
lineStroke2
ObjectProperty<Paint>
lineStroke3
DoubleProperty
lineWidth1
DoubleProperty
lineWidth2
DoubleProperty
lineWidth3
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 Constructor Description GridLinesLayer(GraphicsBase<R> graphics)
-
Method Summary
Modifier and Type Method Description void
drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
Paint
getLineStroke1()
Gets the value of the property lineStroke1.Paint
getLineStroke2()
Gets the value of the property lineStroke2.Paint
getLineStroke3()
Gets the value of the property lineStroke3.double
getLineWidth1()
Gets the value of the property lineWidth1.double
getLineWidth2()
Gets the value of the property lineWidth2.double
getLineWidth3()
Gets the value of the property lineWidth3.ObjectProperty<Paint>
lineStroke1Property()
ObjectProperty<Paint>
lineStroke2Property()
ObjectProperty<Paint>
lineStroke3Property()
DoubleProperty
lineWidth1Property()
DoubleProperty
lineWidth2Property()
DoubleProperty
lineWidth3Property()
void
setLineStroke1(Paint stroke)
Sets the value of the property lineStroke1.void
setLineStroke2(Paint stroke)
Sets the value of the property lineStroke2.void
setLineStroke3(Paint stroke)
Sets the value of the property lineStroke3.void
setLineWidth1(double width)
Sets the value of the property lineWidth1.void
setLineWidth2(double width)
Sets the value of the property lineWidth2.void
setLineWidth3(double width)
Sets the value of the property lineWidth3.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
- See Also:
getLineStroke1()
,setLineStroke1(Paint)
-
lineStroke2
- See Also:
getLineStroke2()
,setLineStroke2(Paint)
-
lineStroke3
- See Also:
getLineStroke3()
,setLineStroke3(Paint)
-
lineWidth1
- See Also:
getLineWidth1()
,setLineWidth1(double)
-
lineWidth2
- See Also:
getLineWidth2()
,setLineWidth2(double)
-
lineWidth3
- See Also:
getLineWidth3()
,setLineWidth3(double)
-
-
Constructor Details
-
GridLinesLayer
-
-
Method Details
-
lineStroke1Property
- See Also:
getLineStroke1()
,setLineStroke1(Paint)
-
getLineStroke1
Gets the value of the property lineStroke1.- Property description:
-
setLineStroke1
Sets the value of the property lineStroke1.- Property description:
-
lineStroke2Property
- See Also:
getLineStroke2()
,setLineStroke2(Paint)
-
getLineStroke2
Gets the value of the property lineStroke2.- Property description:
-
setLineStroke2
Sets the value of the property lineStroke2.- Property description:
-
lineStroke3Property
- See Also:
getLineStroke3()
,setLineStroke3(Paint)
-
getLineStroke3
Gets the value of the property lineStroke3.- Property description:
-
setLineStroke3
Sets the value of the property lineStroke3.- Property description:
-
lineWidth1Property
- See Also:
getLineWidth1()
,setLineWidth1(double)
-
getLineWidth1
public final double getLineWidth1()Gets the value of the property lineWidth1.- Property description:
-
setLineWidth1
public final void setLineWidth1(double width)Sets the value of the property lineWidth1.- Property description:
-
lineWidth2Property
- See Also:
getLineWidth2()
,setLineWidth2(double)
-
getLineWidth2
public final double getLineWidth2()Gets the value of the property lineWidth2.- Property description:
-
setLineWidth2
public final void setLineWidth2(double width)Sets the value of the property lineWidth2.- Property description:
-
lineWidth3Property
- See Also:
getLineWidth3()
,setLineWidth3(double)
-
getLineWidth3
public final double getLineWidth3()Gets the value of the property lineWidth3.- Property description:
-
setLineWidth3
public final void setLineWidth3(double width)Sets the value of the property lineWidth3.- Property description:
-
drawLayer
- Specified by:
drawLayer
in classSystemLayer<R extends Row<?,?,?>>
-