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 callingsetRowRenderer(Class, RowRenderer)
.
-
-
Constructor Summary
Constructors Constructor Description RowLayer(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)
<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 Detail
-
RowLayer
public RowLayer(GraphicsBase<R> graphics)
-
-
Method Detail
-
drawLayer
public void drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
- Specified by:
drawLayer
in classSystemLayer<R extends Row<?,?,?>>
-
setRowRenderer
public final void setRowRenderer(Class<Row> clazz, RowRenderer<?> renderer)
-
getRowRenderer
public final <RT extends Row<?,?,?>> RowRenderer<RT> getRowRenderer(Class<RT> clazz)
-
-