Module com.flexganttfx.view
Class ActivityRenderer<A extends Activity>
java.lang.Object
com.flexganttfx.view.graphics.renderer.RendererBase
com.flexganttfx.view.graphics.renderer.Renderer
com.flexganttfx.view.graphics.renderer.ActivityRenderer<A>
- Direct Known Subclasses:
ActivityBarRenderer
,CalendarActivityRenderer
,ChartActivityRenderer
-
Property Summary
PropertiesTypePropertyDescriptionfinal DoubleProperty
final BooleanProperty
final DoubleProperty
final ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
Properties inherited from class com.flexganttfx.view.graphics.renderer.Renderer
fillHighlight, fillHover, fillPressed, fill, fillSelected, padding
Properties inherited from class com.flexganttfx.view.graphics.renderer.RendererBase
alpha, enabled, snapToPixel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DoubleProperty
final BooleanProperty
final ActivityBounds
draw
(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) protected ActivityBounds
drawActivity
(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) protected void
drawBackground
(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) protected void
drawBorder
(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) final double
Gets the value of thecornerRadius
property.final double
Gets the value of thelineWidth
property.final Paint
Gets the value of thestroke
property.protected Paint
getStroke
(boolean selected, boolean hover, boolean highlighted, boolean pressed) final Paint
Gets the value of thestrokeHighlight
property.final Paint
Gets the value of thestrokeHover
property.final Paint
Gets the value of thestrokePressed
property.final Paint
Gets the value of thestrokeSelected
property.final boolean
Gets the value of thecornersRounded
property.final DoubleProperty
final void
setCornerRadius
(double radius) Sets the value of thecornerRadius
property.final void
setCornersRounded
(boolean rounded) Sets the value of thecornersRounded
property.final void
setLineWidth
(double lineWidth) Sets the value of thelineWidth
property.final void
Sets the value of thestroke
property.final void
setStrokeHighlight
(Paint paint) Sets the value of thestrokeHighlight
property.final void
setStrokeHover
(Paint paint) Sets the value of thestrokeHover
property.final void
setStrokePressed
(Paint paint) Sets the value of thestrokePressed
property.final void
setStrokeSelected
(Paint paint) Sets the value of thestrokeSelected
property.final ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
final ObjectProperty<Paint>
Methods inherited from class com.flexganttfx.view.graphics.renderer.Renderer
fillHighlightProperty, fillHoverProperty, fillPressedProperty, fillProperty, fillSelectedProperty, getFill, getFill, getFillHighlight, getFillHover, getFillPressed, getFillSelected, getPadding, paddingProperty, setFill, setFillHighlight, setFillHover, setFillPressed, setFillSelected, setPadding
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
-
Property Details
-
cornersRounded
-
cornerRadius
-
lineWidth
-
stroke
- See Also:
-
strokePressed
-
strokeHover
-
strokeSelected
-
strokeHighlight
-
-
Constructor Details
-
ActivityRenderer
-
-
Method Details
-
draw
public final ActivityBounds draw(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) -
drawActivity
protected ActivityBounds drawActivity(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) -
drawBackground
protected void drawBackground(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) -
drawBorder
protected void drawBorder(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed) -
getStroke
-
cornersRoundedProperty
- Returns:
- the
cornersRounded
property - See Also:
-
cornerRadiusProperty
- Returns:
- the
cornerRadius
property - See Also:
-
lineWidthProperty
- Returns:
- the
lineWidth
property - See Also:
-
strokeProperty
- Returns:
- the
stroke
property - See Also:
-
strokePressedProperty
- Returns:
- the
strokePressed
property - See Also:
-
strokeHoverProperty
- Returns:
- the
strokeHover
property - See Also:
-
strokeSelectedProperty
- Returns:
- the
strokeSelected
property - See Also:
-
strokeHighlightProperty
- Returns:
- the
strokeHighlight
property - See Also:
-
getStroke
Gets the value of thestroke
property.- Property description:
- Returns:
- the value of the
stroke
property - See Also:
-
setStroke
Sets the value of thestroke
property.- Property description:
- Parameters:
paint
- the value for thestroke
property- See Also:
-
getStrokePressed
Gets the value of thestrokePressed
property.- Property description:
- Returns:
- the value of the
strokePressed
property - See Also:
-
setStrokePressed
Sets the value of thestrokePressed
property.- Property description:
- Parameters:
paint
- the value for thestrokePressed
property- See Also:
-
getStrokeHighlight
Gets the value of thestrokeHighlight
property.- Property description:
- Returns:
- the value of the
strokeHighlight
property - See Also:
-
setStrokeHighlight
Sets the value of thestrokeHighlight
property.- Property description:
- Parameters:
paint
- the value for thestrokeHighlight
property- See Also:
-
getStrokeSelected
Gets the value of thestrokeSelected
property.- Property description:
- Returns:
- the value of the
strokeSelected
property - See Also:
-
setStrokeSelected
Sets the value of thestrokeSelected
property.- Property description:
- Parameters:
paint
- the value for thestrokeSelected
property- See Also:
-
getStrokeHover
Gets the value of thestrokeHover
property.- Property description:
- Returns:
- the value of the
strokeHover
property - See Also:
-
setStrokeHover
Sets the value of thestrokeHover
property.- Property description:
- Parameters:
paint
- the value for thestrokeHover
property- See Also:
-
setCornerRadius
public final void setCornerRadius(double radius) Sets the value of thecornerRadius
property.- Property description:
- Parameters:
radius
- the value for thecornerRadius
property- See Also:
-
getCornerRadius
public final double getCornerRadius()Gets the value of thecornerRadius
property.- Property description:
- Returns:
- the value of the
cornerRadius
property - See Also:
-
setCornersRounded
public final void setCornersRounded(boolean rounded) Sets the value of thecornersRounded
property.- Property description:
- Parameters:
rounded
- the value for thecornersRounded
property- See Also:
-
isCornersRounded
public final boolean isCornersRounded()Gets the value of thecornersRounded
property.- Property description:
- Returns:
- the value of the
cornersRounded
property - See Also:
-
setLineWidth
public final void setLineWidth(double lineWidth) Sets the value of thelineWidth
property.- Property description:
- Parameters:
lineWidth
- the value for thelineWidth
property- See Also:
-
getLineWidth
public final double getLineWidth()Gets the value of thelineWidth
property.- Property description:
- Returns:
- the value of the
lineWidth
property - See Also:
-