public class ActivityBarRenderer<A extends Activity> extends ActivityRenderer<A>
cornerRadius, cornersRounded, effect, lineWidth, strokeHighlight, strokeHover, strokePressed, stroke, strokeSelected
alpha, enabled, fillHighlight, fillHover, fillPressed, fill, fillSelected, padding, snapToPixel
Modifier and Type | Class and Description |
---|---|
static class |
ActivityBarRenderer.TextPosition |
Constructor and Description |
---|
ActivityBarRenderer(GraphicsBase<?> graphics,
String name) |
Modifier and Type | Method and Description |
---|---|
BooleanProperty |
autoFixTextProperty() |
DoubleProperty |
barHeightProperty() |
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 void |
drawText(ActivityRef<A> activityRef,
String text,
ActivityBarRenderer.TextPosition position,
GraphicsContext gc,
double x,
double y,
double w,
double h,
boolean selected,
boolean hover,
boolean highlighted,
boolean pressed) |
ObjectProperty<Font> |
fontProperty() |
double |
getBarHeight()
Gets the value of the property barHeight.
|
Font |
getFont()
Gets the value of the property font.
|
ObservableList<org.controlsfx.control.PropertySheet.Item> |
getPropertySheetItems() |
Paint |
getTextFill()
Gets the value of the property textFill.
|
protected Paint |
getTextFill(boolean selected,
boolean hover,
boolean highlighted,
boolean pressed) |
Paint |
getTextFillHighlight()
Gets the value of the property textFillHighlight.
|
Paint |
getTextFillHover()
Gets the value of the property textFillHover.
|
Paint |
getTextFillPressed()
Gets the value of the property textFillPressed.
|
Paint |
getTextFillSelected()
Gets the value of the property textFillSelected.
|
double |
getTextGap()
Gets the value of the property textGap.
|
BooleanProperty |
glossyProperty() |
boolean |
isAutoFixText()
Gets the value of the property autoFixText.
|
boolean |
isGlossy()
Gets the value of the property glossy.
|
void |
setAutoFixText(boolean auto)
Sets the value of the property autoFixText.
|
void |
setBarHeight(double height)
Sets the value of the property barHeight.
|
void |
setFont(Font font)
Sets the value of the property font.
|
void |
setGlossy(boolean glossy)
Sets the value of the property glossy.
|
void |
setTextFill(Paint fill)
Sets the value of the property textFill.
|
void |
setTextFillHighlight(Paint fill)
Sets the value of the property textFillHighlight.
|
void |
setTextFillHover(Paint fill)
Sets the value of the property textFillHover.
|
void |
setTextFillPressed(Paint fill)
Sets the value of the property textFillPressed.
|
void |
setTextFillSelected(Paint fill)
Sets the value of the property textFillSelected.
|
void |
setTextGap(double gap)
Sets the value of the property textGap.
|
ObjectProperty<Paint> |
textFillHighlightProperty() |
ObjectProperty<Paint> |
textFillHoverProperty() |
ObjectProperty<Paint> |
textFillPressedProperty() |
ObjectProperty<Paint> |
textFillProperty() |
ObjectProperty<Paint> |
textFillSelectedProperty() |
DoubleProperty |
textGapProperty() |
cornerRadiusProperty, cornersRoundedProperty, draw, effectProperty, getCornerRadius, getEffect, getLineWidth, getStroke, getStroke, getStrokeHighlight, getStrokeHover, getStrokePressed, getStrokeSelected, isCornersRounded, lineWidthProperty, setCornerRadius, setCornersRounded, setEffect, setLineWidth, setStroke, setStrokeHighlight, setStrokeHover, setStrokePressed, setStrokeSelected, strokeHighlightProperty, strokeHoverProperty, strokePressedProperty, strokeProperty, 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 DoubleProperty barHeightProperty
getBarHeight()
,
setBarHeight(double)
public final DoubleProperty textGapProperty
getTextGap()
,
setTextGap(double)
public final ObjectProperty<Paint> textFillProperty
getTextFill()
,
setTextFill(Paint)
public final ObjectProperty<Paint> textFillHoverProperty
getTextFillHover()
,
setTextFillHover(Paint)
public final ObjectProperty<Paint> textFillHighlightProperty
public final ObjectProperty<Paint> textFillPressedProperty
getTextFillPressed()
,
setTextFillPressed(Paint)
public final ObjectProperty<Paint> textFillSelectedProperty
getTextFillSelected()
,
setTextFillSelected(Paint)
public final ObjectProperty<Font> fontProperty
getFont()
,
setFont(Font)
public final BooleanProperty glossyProperty
isGlossy()
,
setGlossy(boolean)
public final BooleanProperty autoFixTextProperty
isAutoFixText()
,
setAutoFixText(boolean)
public ActivityBarRenderer(GraphicsBase<?> graphics, String name)
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)
drawActivity
in class ActivityRenderer<A extends Activity>
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)
drawBackground
in class ActivityRenderer<A extends Activity>
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)
drawBorder
in class ActivityRenderer<A extends Activity>
protected void drawText(ActivityRef<A> activityRef, String text, ActivityBarRenderer.TextPosition position, GraphicsContext gc, double x, double y, double w, double h, boolean selected, boolean hover, boolean highlighted, boolean pressed)
protected final Paint getTextFill(boolean selected, boolean hover, boolean highlighted, boolean pressed)
public final DoubleProperty barHeightProperty()
getBarHeight()
,
setBarHeight(double)
public final double getBarHeight()
public final void setBarHeight(double height)
public final DoubleProperty textGapProperty()
getTextGap()
,
setTextGap(double)
public final void setTextGap(double gap)
public final double getTextGap()
public final ObjectProperty<Paint> textFillProperty()
getTextFill()
,
setTextFill(Paint)
public final void setTextFill(Paint fill)
public final Paint getTextFill()
public final ObjectProperty<Paint> textFillHoverProperty()
getTextFillHover()
,
setTextFillHover(Paint)
public final void setTextFillHover(Paint fill)
public final Paint getTextFillHover()
public final ObjectProperty<Paint> textFillHighlightProperty()
public final void setTextFillHighlight(Paint fill)
public final Paint getTextFillHighlight()
public final ObjectProperty<Paint> textFillPressedProperty()
getTextFillPressed()
,
setTextFillPressed(Paint)
public final void setTextFillPressed(Paint fill)
public final Paint getTextFillPressed()
public final ObjectProperty<Paint> textFillSelectedProperty()
getTextFillSelected()
,
setTextFillSelected(Paint)
public final void setTextFillSelected(Paint fill)
public final Paint getTextFillSelected()
public final ObjectProperty<Font> fontProperty()
getFont()
,
setFont(Font)
public final void setFont(Font font)
public final Font getFont()
public final BooleanProperty glossyProperty()
isGlossy()
,
setGlossy(boolean)
public final void setGlossy(boolean glossy)
public final boolean isGlossy()
public final BooleanProperty autoFixTextProperty()
isAutoFixText()
,
setAutoFixText(boolean)
public void setAutoFixText(boolean auto)
public final boolean isAutoFixText()
public ObservableList<org.controlsfx.control.PropertySheet.Item> getPropertySheetItems()
getPropertySheetItems
in class ActivityRenderer<A extends Activity>
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.