Module com.flexganttfx.view
Class RowLayer<R extends Row<?,?,?>>
java.lang.Object
com.flexganttfx.view.graphics.layer.SystemLayer<R>
com.flexganttfx.view.graphics.layer.RowLayer<R>
- Type Parameters:
R
- the type of the rows
public class RowLayer<R extends Row<?,?,?>> extends SystemLayer<R>
Draws the background of each row. The layer can be configured with pluggable
renderers that are mapped to the type of the row. Applications can register
their own renderers by calling
setRowRenderer(Class, RowRenderer)
.-
Property Summary
Properties inherited from class com.flexganttfx.view.graphics.layer.SystemLayer
opacity, snapToPixel, visible
-
Constructor Summary
Constructors Constructor Description RowLayer(GraphicsBase<R> graphics)
-
Method Summary
Modifier and Type Method Description void
drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
<RT extends Row<?, ?, ?>>
RowRenderer<RT>getRowRenderer(Class<RT> clazz)
void
setRowRenderer(Class<Row> clazz, RowRenderer<?> renderer)
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 Details
-
Method Details
-
drawLayer
- Specified by:
drawLayer
in classSystemLayer<R extends Row<?,?,?>>
-
setRowRenderer
-
getRowRenderer
-