Module com.flexganttfx.view
Class GridLinesLayer<R extends Row<?,?,?>>
- java.lang.Object
-
- 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 (seeGraphicsBase.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.
-
-
Constructor Summary
Constructors Constructor Description GridLinesLayer(GraphicsBase<R> graphics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
Paint
getLineStroke1()
Paint
getLineStroke2()
Paint
getLineStroke3()
double
getLineWidth1()
double
getLineWidth2()
double
getLineWidth3()
ObjectProperty<Paint>
lineStroke1Property()
ObjectProperty<Paint>
lineStroke2Property()
ObjectProperty<Paint>
lineStroke3Property()
DoubleProperty
lineWidth1Property()
DoubleProperty
lineWidth2Property()
DoubleProperty
lineWidth3Property()
void
setLineStroke1(Paint stroke)
void
setLineStroke2(Paint stroke)
void
setLineStroke3(Paint stroke)
void
setLineWidth1(double width)
void
setLineWidth2(double width)
void
setLineWidth3(double width)
-
Methods inherited from class com.flexganttfx.view.graphics.layer.SystemLayer
fadeInOutObservable, getGraphics, getName, getOpacity, isSnapToPixel, isVisible, opacityProperty, redraw, redrawObservable, setSnapToPixel, setVisible, snapPosition, snapSize, snapSpace, snapToPixelProperty, visibleProperty
-
-
-
-
Constructor Detail
-
GridLinesLayer
public GridLinesLayer(GraphicsBase<R> graphics)
-
-
Method Detail
-
lineStroke1Property
public final ObjectProperty<Paint> lineStroke1Property()
-
getLineStroke1
public final Paint getLineStroke1()
-
setLineStroke1
public final void setLineStroke1(Paint stroke)
-
lineStroke2Property
public final ObjectProperty<Paint> lineStroke2Property()
-
getLineStroke2
public final Paint getLineStroke2()
-
setLineStroke2
public final void setLineStroke2(Paint stroke)
-
lineStroke3Property
public final ObjectProperty<Paint> lineStroke3Property()
-
getLineStroke3
public final Paint getLineStroke3()
-
setLineStroke3
public final void setLineStroke3(Paint stroke)
-
lineWidth1Property
public final DoubleProperty lineWidth1Property()
-
getLineWidth1
public final double getLineWidth1()
-
setLineWidth1
public final void setLineWidth1(double width)
-
lineWidth2Property
public final DoubleProperty lineWidth2Property()
-
getLineWidth2
public final double getLineWidth2()
-
setLineWidth2
public final void setLineWidth2(double width)
-
lineWidth3Property
public final DoubleProperty lineWidth3Property()
-
getLineWidth3
public final double getLineWidth3()
-
setLineWidth3
public final void setLineWidth3(double width)
-
-