- java.lang.Object
-
- com.flexganttfx.view.graphics.renderer.Renderer
-
- Direct Known Subclasses:
ActivityRenderer
,RowRenderer
public abstract class Renderer extends Object
-
-
Constructor Summary
Constructors Constructor Description Renderer(GraphicsBase<?> graphics, String name)
-
Method Summary
-
-
-
Constructor Detail
-
Renderer
public Renderer(GraphicsBase<?> graphics, String name)
-
-
Method Detail
-
snapPosition
protected double snapPosition(double value)
-
snapSpace
protected double snapSpace(double value)
-
snapSize
protected double snapSize(double value)
-
disableRedrawAfterPropertyChange
protected final void disableRedrawAfterPropertyChange()
-
enableRedrawAfterPropertyChange
protected final void enableRedrawAfterPropertyChange()
-
redrawObservable
protected void redrawObservable(Observable observable)
-
getName
public final String getName()
-
getGraphics
public final GraphicsBase<?> getGraphics()
-
getLocation
protected final double getLocation(Instant time)
Calculates the x coordinate for the given time. This method only returns valid results when the renderers is used in a layout with horizontal orientation. It will not work inAgendaLayout
.- Parameters:
time
- the time for which to calculate the x coordinate- Returns:
- the location of the given time point
- Since:
- 1.0
- See Also:
TimelineModel.calculateLocationForTime(Instant)
-
getTimeAt
protected final Instant getTimeAt(double location)
Calculates the time at the given x coordinate. This method only returns valid results when the renderers is used in a layout with horizontal orientation. It will not work inAgendaLayout
.- Parameters:
location
- the location for which to return the time- Returns:
- the time at the given x coordinate
- Since:
- 1.0
- See Also:
TimelineModel.calculateTimeForLocation(double)
-
getFill
protected Paint getFill(boolean selected, boolean hover, boolean highlighted, boolean pressed)
-
enabledProperty
public final BooleanProperty enabledProperty()
-
snapToPixelProperty
public final BooleanProperty snapToPixelProperty()
-
paddingProperty
public final ObjectProperty<Insets> paddingProperty()
-
alphaProperty
public final DoubleProperty alphaProperty()
-
fillProperty
public final ObjectProperty<Paint> fillProperty()
-
fillPressedProperty
public final ObjectProperty<Paint> fillPressedProperty()
-
fillHoverProperty
public final ObjectProperty<Paint> fillHoverProperty()
-
fillSelectedProperty
public final ObjectProperty<Paint> fillSelectedProperty()
-
fillHighlightProperty
public final ObjectProperty<Paint> fillHighlightProperty()
-
isEnabled
public final boolean isEnabled()
-
setEnabled
public final void setEnabled(boolean enabled)
-
setSnapToPixel
public final void setSnapToPixel(boolean snap)
-
isSnapToPixel
public final boolean isSnapToPixel()
-
getPadding
public final Insets getPadding()
-
setPadding
public final void setPadding(Insets insets)
-
getFill
public final Paint getFill()
-
setFill
public final void setFill(Paint paint)
-
getFillPressed
public final Paint getFillPressed()
-
setFillPressed
public final void setFillPressed(Paint paint)
-
getFillHighlight
public final Paint getFillHighlight()
-
setFillHighlight
public final void setFillHighlight(Paint paint)
-
getFillSelected
public final Paint getFillSelected()
-
setFillSelected
public final void setFillSelected(Paint paint)
-
getFillHover
public final Paint getFillHover()
-
setFillHover
public final void setFillHover(Paint paint)
-
setAlpha
public final void setAlpha(double alpha)
-
getAlpha
public final double getAlpha()
-
-