Module com.flexganttfx.view
Class SystemLayer<R extends Row<?,?,?>>
- java.lang.Object
-
- com.flexganttfx.view.graphics.renderer.RendererBase
-
- com.flexganttfx.view.graphics.layer.SystemLayer<R>
-
- Type Parameters:
R
- the type of the rows
- Direct Known Subclasses:
AgendaLinesLayer
,CalendarLayer
,ChartLinesLayer
,DSTLineLayer
,GridLinesLayer
,HoverTimeIntervalLayer
,InnerLinesLayer
,LayoutLayer
,NowLineLayer
,RowLayer
,SelectedTimeIntervalsLayer
,ZoomTimeIntervalLayer
public abstract class SystemLayer<R extends Row<?,?,?>> extends RendererBase
System layers are used in the background and foreground of each row. A background layer gets drawn before the activities are drawn while a foreground layer gets drawn after the activities are drawn. Each layer is specialized on drawing one type of information: current time, selected time intervals, grid lines, and so on. The graphics view manages the layers in two lists and provides convenience methods to easily look them up.
-
-
Constructor Summary
Constructors Constructor Description SystemLayer(String name, GraphicsBase<R> graphicsView)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
protected void
fadeInOutObservable(ObservableBooleanValue observable)
double
getOpacity()
boolean
isVisible()
ReadOnlyDoubleProperty
opacityProperty()
void
setVisible(boolean visible)
BooleanProperty
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
-
-
-
-
Constructor Detail
-
SystemLayer
public SystemLayer(String name, GraphicsBase<R> graphicsView)
-
-
Method Detail
-
fadeInOutObservable
protected void fadeInOutObservable(ObservableBooleanValue observable)
-
visibleProperty
public final BooleanProperty visibleProperty()
-
isVisible
public final boolean isVisible()
-
setVisible
public final void setVisible(boolean visible)
-
opacityProperty
public final ReadOnlyDoubleProperty opacityProperty()
-
getOpacity
public final double getOpacity()
-
-