Module com.flexganttfx.view
Class NowLineLayer<R extends Row<?,?,?>>
java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
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.
-
Property Summary
Properties Type Property Description DoubleProperty
lineWidth
ObjectProperty<Paint>
stroke
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 NowLineLayer(GraphicsBase<R> graphics)
-
Method Summary
Modifier and Type Method Description void
drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
double
getLineWidth()
Gets the value of the property lineWidth.Paint
getStroke()
Gets the value of the property stroke.DoubleProperty
lineWidthProperty()
void
setLineWidth(double lineWidth)
Sets the value of the property lineWidth.void
setStroke(Paint stroke)
Sets the value of the property stroke.ObjectProperty<Paint>
strokeProperty()
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
-
stroke
- See Also:
getStroke()
,setStroke(Paint)
-
lineWidth
- See Also:
getLineWidth()
,setLineWidth(double)
-
-
Constructor Details
-
NowLineLayer
-
-
Method Details
-
strokeProperty
- See Also:
getStroke()
,setStroke(Paint)
-
getStroke
Gets the value of the property stroke.- Property description:
-
setStroke
Sets the value of the property stroke.- Property description:
-
lineWidthProperty
- See Also:
getLineWidth()
,setLineWidth(double)
-
getLineWidth
public final double getLineWidth()Gets the value of the property lineWidth.- Property description:
-
setLineWidth
public final void setLineWidth(double lineWidth)Sets the value of the property lineWidth.- Property description:
-
drawLayer
- Specified by:
drawLayer
in classSystemLayer<R extends Row<?,?,?>>
-