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
public class ActivityRenderer<A extends Activity> extends Renderer
-
Property Summary
Properties Type Property Description DoubleProperty
cornerRadius
BooleanProperty
cornersRounded
DoubleProperty
lineWidth
ObjectProperty<Paint>
strokeHighlight
ObjectProperty<Paint>
strokeHover
ObjectProperty<Paint>
strokePressed
ObjectProperty<Paint>
stroke
ObjectProperty<Paint>
strokeSelected
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 Constructor Description ActivityRenderer(GraphicsBase<?> graphics, String name)
-
Method Summary
Modifier and Type Method Description DoubleProperty
cornerRadiusProperty()
BooleanProperty
cornersRoundedProperty()
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)
double
getCornerRadius()
Gets the value of the property cornerRadius.double
getLineWidth()
Gets the value of the property lineWidth.Paint
getStroke()
Gets the value of the property stroke.protected Paint
getStroke(boolean selected, boolean hover, boolean highlighted, boolean pressed)
Paint
getStrokeHighlight()
Gets the value of the property strokeHighlight.Paint
getStrokeHover()
Gets the value of the property strokeHover.Paint
getStrokePressed()
Gets the value of the property strokePressed.Paint
getStrokeSelected()
Gets the value of the property strokeSelected.boolean
isCornersRounded()
Gets the value of the property cornersRounded.DoubleProperty
lineWidthProperty()
void
setCornerRadius(double radius)
Sets the value of the property cornerRadius.void
setCornersRounded(boolean rounded)
Sets the value of the property cornersRounded.void
setLineWidth(double lineWidth)
Sets the value of the property lineWidth.void
setStroke(Paint paint)
Sets the value of the property stroke.void
setStrokeHighlight(Paint paint)
Sets the value of the property strokeHighlight.void
setStrokeHover(Paint paint)
Sets the value of the property strokeHover.void
setStrokePressed(Paint paint)
Sets the value of the property strokePressed.void
setStrokeSelected(Paint paint)
Sets the value of the property strokeSelected.ObjectProperty<Paint>
strokeHighlightProperty()
ObjectProperty<Paint>
strokeHoverProperty()
ObjectProperty<Paint>
strokePressedProperty()
ObjectProperty<Paint>
strokeProperty()
ObjectProperty<Paint>
strokeSelectedProperty()
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:
isCornersRounded()
,setCornersRounded(boolean)
-
cornerRadius
- See Also:
getCornerRadius()
,setCornerRadius(double)
-
lineWidth
- See Also:
getLineWidth()
,setLineWidth(double)
-
stroke
- See Also:
getStroke()
,setStroke(Paint)
-
strokePressed
- See Also:
getStrokePressed()
,setStrokePressed(Paint)
-
strokeHover
- See Also:
getStrokeHover()
,setStrokeHover(Paint)
-
strokeSelected
- See Also:
getStrokeSelected()
,setStrokeSelected(Paint)
-
strokeHighlight
- See Also:
getStrokeHighlight()
,setStrokeHighlight(Paint)
-
-
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:
isCornersRounded()
,setCornersRounded(boolean)
-
cornerRadiusProperty
- See Also:
getCornerRadius()
,setCornerRadius(double)
-
lineWidthProperty
- See Also:
getLineWidth()
,setLineWidth(double)
-
strokeProperty
- See Also:
getStroke()
,setStroke(Paint)
-
strokePressedProperty
- See Also:
getStrokePressed()
,setStrokePressed(Paint)
-
strokeHoverProperty
- See Also:
getStrokeHover()
,setStrokeHover(Paint)
-
strokeSelectedProperty
- See Also:
getStrokeSelected()
,setStrokeSelected(Paint)
-
strokeHighlightProperty
- See Also:
getStrokeHighlight()
,setStrokeHighlight(Paint)
-
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:
-