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>lineStroke1ObjectProperty<Paint>lineStroke2ObjectProperty<Paint>lineStroke3DoublePropertylineWidth1DoublePropertylineWidth2DoublePropertylineWidth3Properties inherited from class com.flexganttfx.view.graphics.layer.SystemLayer
opacity, visibleProperties 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 voiddrawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)PaintgetLineStroke1()Gets the value of the property lineStroke1.PaintgetLineStroke2()Gets the value of the property lineStroke2.PaintgetLineStroke3()Gets the value of the property lineStroke3.doublegetLineWidth1()Gets the value of the property lineWidth1.doublegetLineWidth2()Gets the value of the property lineWidth2.doublegetLineWidth3()Gets the value of the property lineWidth3.ObjectProperty<Paint>lineStroke1Property()ObjectProperty<Paint>lineStroke2Property()ObjectProperty<Paint>lineStroke3Property()DoublePropertylineWidth1Property()DoublePropertylineWidth2Property()DoublePropertylineWidth3Property()voidsetLineStroke1(Paint stroke)Sets the value of the property lineStroke1.voidsetLineStroke2(Paint stroke)Sets the value of the property lineStroke2.voidsetLineStroke3(Paint stroke)Sets the value of the property lineStroke3.voidsetLineWidth1(double width)Sets the value of the property lineWidth1.voidsetLineWidth2(double width)Sets the value of the property lineWidth2.voidsetLineWidth3(double width)Sets the value of the property lineWidth3.Methods inherited from class com.flexganttfx.view.graphics.layer.SystemLayer
fadeInOutObservable, getOpacity, isVisible, opacityProperty, setVisible, visiblePropertyMethods 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:
drawLayerin classSystemLayer<R extends Row<?,?,?>>
-