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 DoublePropertycornerRadiusBooleanPropertycornersRoundedDoublePropertylineWidthObjectProperty<Paint>strokeHighlightObjectProperty<Paint>strokeHoverObjectProperty<Paint>strokePressedObjectProperty<Paint>strokeObjectProperty<Paint>strokeSelectedProperties inherited from class com.flexganttfx.view.graphics.renderer.Renderer
fillHighlight, fillHover, fillPressed, fill, fillSelected, paddingProperties 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 DoublePropertycornerRadiusProperty()BooleanPropertycornersRoundedProperty()ActivityBoundsdraw(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)protected ActivityBoundsdrawActivity(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)protected voiddrawBackground(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)protected voiddrawBorder(ActivityRef<A> activityRef, Position position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)doublegetCornerRadius()Gets the value of the property cornerRadius.doublegetLineWidth()Gets the value of the property lineWidth.PaintgetStroke()Gets the value of the property stroke.protected PaintgetStroke(boolean selected, boolean hover, boolean highlighted, boolean pressed)PaintgetStrokeHighlight()Gets the value of the property strokeHighlight.PaintgetStrokeHover()Gets the value of the property strokeHover.PaintgetStrokePressed()Gets the value of the property strokePressed.PaintgetStrokeSelected()Gets the value of the property strokeSelected.booleanisCornersRounded()Gets the value of the property cornersRounded.DoublePropertylineWidthProperty()voidsetCornerRadius(double radius)Sets the value of the property cornerRadius.voidsetCornersRounded(boolean rounded)Sets the value of the property cornersRounded.voidsetLineWidth(double lineWidth)Sets the value of the property lineWidth.voidsetStroke(Paint paint)Sets the value of the property stroke.voidsetStrokeHighlight(Paint paint)Sets the value of the property strokeHighlight.voidsetStrokeHover(Paint paint)Sets the value of the property strokeHover.voidsetStrokePressed(Paint paint)Sets the value of the property strokePressed.voidsetStrokeSelected(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, setPaddingMethods 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:
-