Module com.flexganttfx.view
Class SystemLayer<R extends Row<?,?,?>>
java.lang.Object
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
,ScaleLayer
,SelectedTimeIntervalsLayer
,ZoomTimeIntervalLayer
public abstract class SystemLayer<R extends Row<?,?,?>> extends Object
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.
-
Property Summary
Properties Type Property Description ReadOnlyDoubleProperty
opacity
BooleanProperty
snapToPixel
BooleanProperty
visible
-
Constructor Summary
Constructors Constructor Description SystemLayer(String name, GraphicsBase<R> graphicsView)
-
Method Summary
Modifier and Type Method Description abstract void
drawLayer(RowCanvas<R> canvas, Instant startTime, Instant endTime)
protected void
fadeInOutObservable(ObservableBooleanValue observable)
GraphicsBase<R>
getGraphics()
String
getName()
double
getOpacity()
Gets the value of the property opacity.boolean
isSnapToPixel()
Gets the value of the property snapToPixel.boolean
isVisible()
Gets the value of the property visible.ReadOnlyDoubleProperty
opacityProperty()
void
redraw()
protected void
redrawObservable(Observable observable)
void
setSnapToPixel(boolean snap)
Sets the value of the property snapToPixel.void
setVisible(boolean visible)
Sets the value of the property visible.protected double
snapPosition(double value)
protected double
snapSize(double value)
protected double
snapSpace(double value)
BooleanProperty
snapToPixelProperty()
BooleanProperty
visibleProperty()
-
Property Details
-
snapToPixel
- See Also:
isSnapToPixel()
,setSnapToPixel(boolean)
-
visible
- See Also:
isVisible()
,setVisible(boolean)
-
opacity
- See Also:
getOpacity()
-
-
Constructor Details
-
Method Details
-
redrawObservable
-
fadeInOutObservable
-
getGraphics
-
getName
-
snapToPixelProperty
- See Also:
isSnapToPixel()
,setSnapToPixel(boolean)
-
setSnapToPixel
public final void setSnapToPixel(boolean snap)Sets the value of the property snapToPixel.- Property description:
-
isSnapToPixel
public final boolean isSnapToPixel()Gets the value of the property snapToPixel.- Property description:
-
snapPosition
protected double snapPosition(double value) -
snapSpace
protected double snapSpace(double value) -
snapSize
protected double snapSize(double value) -
visibleProperty
- See Also:
isVisible()
,setVisible(boolean)
-
isVisible
public final boolean isVisible()Gets the value of the property visible.- Property description:
-
setVisible
public final void setVisible(boolean visible)Sets the value of the property visible.- Property description:
-
redraw
public final void redraw() -
opacityProperty
- See Also:
getOpacity()
-
getOpacity
public final double getOpacity()Gets the value of the property opacity.- Property description:
-
drawLayer
-