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 the property cornerRadius.final double
Gets the value of the property lineWidth.final Paint
Gets the value of the property stroke.protected Paint
getStroke
(boolean selected, boolean hover, boolean highlighted, boolean pressed) final Paint
Gets the value of the property strokeHighlight.final Paint
Gets the value of the property strokeHover.final Paint
Gets the value of the property strokePressed.final Paint
Gets the value of the property strokeSelected.final boolean
Gets the value of the property cornersRounded.final DoubleProperty
final void
setCornerRadius
(double radius) Sets the value of the property cornerRadius.final void
setCornersRounded
(boolean rounded) Sets the value of the property cornersRounded.final void
setLineWidth
(double lineWidth) Sets the value of the property lineWidth.final void
Sets the value of the property stroke.final void
setStrokeHighlight
(Paint paint) Sets the value of the property strokeHighlight.final void
setStrokeHover
(Paint paint) Sets the value of the property strokeHover.final void
setStrokePressed
(Paint paint) Sets the value of the property strokePressed.final void
setStrokeSelected
(Paint paint) Sets the value of the property strokeSelected.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
- See Also:
-
cornerRadius
- See Also:
-
lineWidth
- See Also:
-
stroke
- See Also:
-
strokePressed
- See Also:
-
strokeHover
- See Also:
-
strokeSelected
- See Also:
-
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
- See Also:
-
cornerRadiusProperty
- See Also:
-
lineWidthProperty
- See Also:
-
strokeProperty
- See Also:
-
strokePressedProperty
- See Also:
-
strokeHoverProperty
- See Also:
-
strokeSelectedProperty
- See Also:
-
strokeHighlightProperty
-
getStroke
Gets the value of the property stroke.- Property description:
-
setStroke
Sets the value of the property stroke.- Property description:
-
getStrokePressed
Gets the value of the property strokePressed.- Property description:
-
setStrokePressed
Sets the value of the property strokePressed.- Property description:
-
getStrokeHighlight
Gets the value of the property strokeHighlight.- Property description:
-
setStrokeHighlight
Sets the value of the property strokeHighlight.- Property description:
-
getStrokeSelected
Gets the value of the property strokeSelected.- Property description:
-
setStrokeSelected
Sets the value of the property strokeSelected.- Property description:
-
getStrokeHover
Gets the value of the property strokeHover.- Property description:
-
setStrokeHover
Sets the value of the property strokeHover.- Property description:
-
setCornerRadius
public final void setCornerRadius(double radius) Sets the value of the property cornerRadius.- Property description:
-
getCornerRadius
public final double getCornerRadius()Gets the value of the property cornerRadius.- Property description:
-
setCornersRounded
public final void setCornersRounded(boolean rounded) Sets the value of the property cornersRounded.- Property description:
-
isCornersRounded
public final boolean isCornersRounded()Gets the value of the property cornersRounded.- Property description:
-
setLineWidth
public final void setLineWidth(double lineWidth) Sets the value of the property lineWidth.- Property description:
-
getLineWidth
public final double getLineWidth()Gets the value of the property lineWidth.- Property description:
-