public abstract class Renderer extends Object
Type | Property and Description |
---|---|
DoubleProperty |
alpha |
BooleanProperty |
enabled |
ObjectProperty<Paint> |
fillHighlight |
ObjectProperty<Paint> |
fillHover |
ObjectProperty<Paint> |
fillPressed |
ObjectProperty<Paint> |
fill |
ObjectProperty<Paint> |
fillSelected |
ObjectProperty<Insets> |
padding |
BooleanProperty |
snapToPixel |
Constructor and Description |
---|
Renderer(GraphicsBase<?> graphics,
String name) |
Modifier and Type | Method and Description |
---|---|
DoubleProperty |
alphaProperty() |
protected void |
disableRedrawAfterPropertyChange() |
BooleanProperty |
enabledProperty() |
protected void |
enableRedrawAfterPropertyChange() |
ObjectProperty<Paint> |
fillHighlightProperty() |
ObjectProperty<Paint> |
fillHoverProperty() |
ObjectProperty<Paint> |
fillPressedProperty() |
ObjectProperty<Paint> |
fillProperty() |
ObjectProperty<Paint> |
fillSelectedProperty() |
double |
getAlpha()
Gets the value of the property alpha.
|
Paint |
getFill()
Gets the value of the property fill.
|
protected Paint |
getFill(boolean selected,
boolean hover,
boolean highlighted,
boolean pressed) |
Paint |
getFillHighlight()
Gets the value of the property fillHighlight.
|
Paint |
getFillHover()
Gets the value of the property fillHover.
|
Paint |
getFillPressed()
Gets the value of the property fillPressed.
|
Paint |
getFillSelected()
Gets the value of the property fillSelected.
|
GraphicsBase<?> |
getGraphics() |
protected double |
getLocation(Instant time)
Calculates the x coordinate for the given time.
|
String |
getName() |
Insets |
getPadding()
Gets the value of the property padding.
|
ObservableList<org.controlsfx.control.PropertySheet.Item> |
getPropertySheetItems() |
protected Instant |
getTimeAt(double location)
Calculates the time at the given x coordinate.
|
boolean |
isEnabled()
Gets the value of the property enabled.
|
boolean |
isSnapToPixel()
Gets the value of the property snapToPixel.
|
ObjectProperty<Insets> |
paddingProperty() |
protected void |
redrawObservable(Observable observable) |
void |
setAlpha(double alpha)
Sets the value of the property alpha.
|
void |
setEnabled(boolean enabled)
Sets the value of the property enabled.
|
void |
setFill(Paint paint)
Sets the value of the property fill.
|
void |
setFillHighlight(Paint paint)
Sets the value of the property fillHighlight.
|
void |
setFillHover(Paint paint)
Sets the value of the property fillHover.
|
void |
setFillPressed(Paint paint)
Sets the value of the property fillPressed.
|
void |
setFillSelected(Paint paint)
Sets the value of the property fillSelected.
|
void |
setPadding(Insets insets)
Sets the value of the property padding.
|
void |
setSnapToPixel(boolean snap)
Sets the value of the property snapToPixel.
|
protected double |
snapPosition(double value) |
protected double |
snapSize(double value) |
protected double |
snapSpace(double value) |
BooleanProperty |
snapToPixelProperty() |
public final BooleanProperty enabledProperty
isEnabled()
,
setEnabled(boolean)
public final BooleanProperty snapToPixelProperty
isSnapToPixel()
,
setSnapToPixel(boolean)
public final ObjectProperty<Insets> paddingProperty
getPadding()
,
setPadding(Insets)
public final DoubleProperty alphaProperty
getAlpha()
,
setAlpha(double)
public final ObjectProperty<Paint> fillProperty
getFill()
,
setFill(Paint)
public final ObjectProperty<Paint> fillPressedProperty
getFillPressed()
,
setFillPressed(Paint)
public final ObjectProperty<Paint> fillHoverProperty
getFillHover()
,
setFillHover(Paint)
public final ObjectProperty<Paint> fillSelectedProperty
getFillSelected()
,
setFillSelected(Paint)
public final ObjectProperty<Paint> fillHighlightProperty
getFillHighlight()
,
setFillHighlight(Paint)
public Renderer(GraphicsBase<?> graphics, String name)
protected double snapPosition(double value)
protected double snapSpace(double value)
protected double snapSize(double value)
protected final void disableRedrawAfterPropertyChange()
protected final void enableRedrawAfterPropertyChange()
protected void redrawObservable(Observable observable)
public final String getName()
public final GraphicsBase<?> getGraphics()
protected final double getLocation(Instant time)
AgendaLayout
.time
- the time for which to calculate the x coordinateTimelineModel.calculateLocationForTime(Instant)
protected final Instant getTimeAt(double location)
AgendaLayout
.location
- the location for which to return the timeTimelineModel.calculateTimeForLocation(double)
protected Paint getFill(boolean selected, boolean hover, boolean highlighted, boolean pressed)
public final BooleanProperty enabledProperty()
isEnabled()
,
setEnabled(boolean)
public final BooleanProperty snapToPixelProperty()
isSnapToPixel()
,
setSnapToPixel(boolean)
public final ObjectProperty<Insets> paddingProperty()
getPadding()
,
setPadding(Insets)
public final DoubleProperty alphaProperty()
getAlpha()
,
setAlpha(double)
public final ObjectProperty<Paint> fillProperty()
getFill()
,
setFill(Paint)
public final ObjectProperty<Paint> fillPressedProperty()
getFillPressed()
,
setFillPressed(Paint)
public final ObjectProperty<Paint> fillHoverProperty()
getFillHover()
,
setFillHover(Paint)
public final ObjectProperty<Paint> fillSelectedProperty()
getFillSelected()
,
setFillSelected(Paint)
public final ObjectProperty<Paint> fillHighlightProperty()
getFillHighlight()
,
setFillHighlight(Paint)
public final boolean isEnabled()
public final void setEnabled(boolean enabled)
public final void setSnapToPixel(boolean snap)
public final boolean isSnapToPixel()
public final Insets getPadding()
public final void setPadding(Insets insets)
public final Paint getFill()
public final void setFill(Paint paint)
public final Paint getFillPressed()
public final void setFillPressed(Paint paint)
public final Paint getFillHighlight()
public final void setFillHighlight(Paint paint)
public final Paint getFillSelected()
public final void setFillSelected(Paint paint)
public final Paint getFillHover()
public final void setFillHover(Paint paint)
public final void setAlpha(double alpha)
public final double getAlpha()
public ObservableList<org.controlsfx.control.PropertySheet.Item> getPropertySheetItems()
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.