public class ActivityRenderer<A extends Activity> extends Renderer
Type | Property and Description |
---|---|
DoubleProperty |
cornerRadius |
BooleanProperty |
cornersRounded |
ObjectProperty<Effect> |
effect |
DoubleProperty |
lineWidth |
ObjectProperty<Paint> |
strokeHighlight |
ObjectProperty<Paint> |
strokeHover |
ObjectProperty<Paint> |
strokePressed |
ObjectProperty<Paint> |
stroke |
ObjectProperty<Paint> |
strokeSelected |
alpha, enabled, fillHighlight, fillHover, fillPressed, fill, fillSelected, padding, snapToPixel
Constructor and Description |
---|
ActivityRenderer(GraphicsBase<?> graphics,
String name) |
Modifier and Type | Method and 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) |
ObjectProperty<Effect> |
effectProperty() |
double |
getCornerRadius()
Gets the value of the property cornerRadius.
|
Effect |
getEffect()
Gets the value of the property effect.
|
double |
getLineWidth()
Gets the value of the property lineWidth.
|
ObservableList<org.controlsfx.control.PropertySheet.Item> |
getPropertySheetItems() |
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 |
setEffect(Effect effect)
Sets the value of the property effect.
|
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() |
alphaProperty, disableRedrawAfterPropertyChange, enabledProperty, enableRedrawAfterPropertyChange, fillHighlightProperty, fillHoverProperty, fillPressedProperty, fillProperty, fillSelectedProperty, getAlpha, getFill, getFill, getFillHighlight, getFillHover, getFillPressed, getFillSelected, getGraphics, getLocation, getName, getPadding, getTimeAt, isEnabled, isSnapToPixel, paddingProperty, redrawObservable, setAlpha, setEnabled, setFill, setFillHighlight, setFillHover, setFillPressed, setFillSelected, setPadding, setSnapToPixel, snapPosition, snapSize, snapSpace, snapToPixelProperty
public final BooleanProperty cornersRoundedProperty
isCornersRounded()
,
setCornersRounded(boolean)
public final DoubleProperty cornerRadiusProperty
getCornerRadius()
,
setCornerRadius(double)
public final DoubleProperty lineWidthProperty
getLineWidth()
,
setLineWidth(double)
public final ObjectProperty<Effect> effectProperty
getEffect()
,
setEffect(Effect)
public final ObjectProperty<Paint> strokeProperty
getStroke()
,
setStroke(Paint)
public final ObjectProperty<Paint> strokePressedProperty
getStrokePressed()
,
setStrokePressed(Paint)
public final ObjectProperty<Paint> strokeHoverProperty
getStrokeHover()
,
setStrokeHover(Paint)
public final ObjectProperty<Paint> strokeSelectedProperty
getStrokeSelected()
,
setStrokeSelected(Paint)
public final ObjectProperty<Paint> strokeHighlightProperty
getStrokeHighlight()
,
setStrokeHighlight(Paint)
public ActivityRenderer(GraphicsBase<?> graphics, String name)
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)
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)
protected Paint getStroke(boolean selected, boolean hover, boolean highlighted, boolean pressed)
public final BooleanProperty cornersRoundedProperty()
isCornersRounded()
,
setCornersRounded(boolean)
public final DoubleProperty cornerRadiusProperty()
getCornerRadius()
,
setCornerRadius(double)
public final DoubleProperty lineWidthProperty()
getLineWidth()
,
setLineWidth(double)
public final ObjectProperty<Effect> effectProperty()
getEffect()
,
setEffect(Effect)
public final ObjectProperty<Paint> strokeProperty()
getStroke()
,
setStroke(Paint)
public final ObjectProperty<Paint> strokePressedProperty()
getStrokePressed()
,
setStrokePressed(Paint)
public final ObjectProperty<Paint> strokeHoverProperty()
getStrokeHover()
,
setStrokeHover(Paint)
public final ObjectProperty<Paint> strokeSelectedProperty()
getStrokeSelected()
,
setStrokeSelected(Paint)
public final ObjectProperty<Paint> strokeHighlightProperty()
getStrokeHighlight()
,
setStrokeHighlight(Paint)
public final Paint getStroke()
public final void setStroke(Paint paint)
public final Paint getStrokePressed()
public final void setStrokePressed(Paint paint)
public final Paint getStrokeHighlight()
public final void setStrokeHighlight(Paint paint)
public final Paint getStrokeSelected()
public final void setStrokeSelected(Paint paint)
public final Paint getStrokeHover()
public final void setStrokeHover(Paint paint)
public final void setCornerRadius(double radius)
public final double getCornerRadius()
public final void setCornersRounded(boolean rounded)
public final boolean isCornersRounded()
public final void setEffect(Effect effect)
public final Effect getEffect()
public final void setLineWidth(double lineWidth)
public final double getLineWidth()
public ObservableList<org.controlsfx.control.PropertySheet.Item> getPropertySheetItems()
getPropertySheetItems
in class Renderer
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.