Module com.flexganttfx.view
Class NowLineLayer<R extends Row<?,?,?>>
- java.lang.Object
-
- com.flexganttfx.view.graphics.layer.SystemLayer<R>
-
- com.flexganttfx.view.graphics.layer.NowLineLayer<R>
-
- Type Parameters:
R
- the type of the rows
public class NowLineLayer<R extends Row<?,?,?>> extends SystemLayer<R>
Draws a vertical line at the location of the current time / now time. The current time is defined in the timeline model.
-
-
Constructor Summary
Constructors Constructor Description NowLineLayer(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)
double
getLineWidth()
Paint
getStroke()
DoubleProperty
lineWidthProperty()
void
setLineWidth(double lineWidth)
void
setStroke(Paint stroke)
ObjectProperty<Paint>
strokeProperty()
-
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
-
NowLineLayer
public NowLineLayer(GraphicsBase<R> graphics)
-
-
Method Detail
-
strokeProperty
public final ObjectProperty<Paint> strokeProperty()
-
getStroke
public final Paint getStroke()
-
setStroke
public final void setStroke(Paint stroke)
-
lineWidthProperty
public final DoubleProperty lineWidthProperty()
-
getLineWidth
public final double getLineWidth()
-
setLineWidth
public final void setLineWidth(double lineWidth)
-
-