public abstract class AbstractRangeValueIndicator extends AbstractValueIndicator
text
label describing the range.| Type | Property and Description |
|---|---|
DoubleProperty |
labelHorizontalPosition
Relative horizontal position of the
text label on the plot area, with value between 0.0
(left) and 1.0 (right). |
DoubleProperty |
labelVerticalPosition
Relative vertical position of the
text label on the plot area, with value between 0.0
(bottom) and 1.0 (top). |
DoubleProperty |
lowerBound
Lower bound (min value) of the range to be indicated.
|
DoubleProperty |
upperBound
Upper bound (max value) of the range to be indicated.
|
editableIndicatorProperty, labelHorizontalAnchorProperty, labelVerticalAnchorProperty, textPropertyaddButtonsToToolBarProperty, chartPropertyAbstractValueIndicator.Delta| Modifier and Type | Field and Description |
|---|---|
protected Rectangle |
rectangle
Rectangle indicating the range.
|
protected static String |
STYLE_CLASS_LABEL |
protected static String |
STYLE_CLASS_RECT |
dragDelta, editableIndicator, label| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRangeValueIndicator(Axis axis,
double lowerBound,
double upperBound,
String text)
Creates a new instance of the indicator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getLabelHorizontalPosition()
Returns the value of the
labelHorizontalPositionProperty(). |
double |
getLabelVerticalPosition()
Returns the value of the
labelVerticalPositionProperty(). |
double |
getLowerBound()
Returns the value of the
lowerBoundProperty(). |
double |
getUpperBound()
Returns the value of the
upperBoundProperty(). |
DoubleProperty |
labelHorizontalPositionProperty()
Relative horizontal position of the
text label on the plot area, with value between 0.0
(left) and 1.0 (right). |
DoubleProperty |
labelVerticalPositionProperty()
Relative vertical position of the
text label on the plot area, with value between 0.0
(bottom) and 1.0 (top). |
protected void |
layout(Bounds bounds)
Layouts the rectangle and label within given bounds.
|
DoubleProperty |
lowerBoundProperty()
Lower bound (min value) of the range to be indicated.
|
void |
setLabelHorizontalPosition(double value)
Sets the new value of the
labelHorizontalPositionProperty(). |
void |
setLabelVerticalPosition(double value)
Sets the new value of the
labelVerticalPositionProperty(). |
void |
setLowerBound(double value)
Sets the value of the
lowerBoundProperty() |
void |
setUpperBound(double value)
Sets the value of
upperBoundProperty() |
DoubleProperty |
upperBoundProperty()
Upper bound (max value) of the range to be indicated.
|
addChildNodeIfNotPresent, editableIndicatorProperty, getLabelHorizontalAnchor, getLabelVerticalAnchor, getNumericAxis, getText, isEditable, labelHorizontalAnchorProperty, labelVerticalAnchorProperty, layoutLabel, setEditable, setLabelHorizontalAnchor, setLabelVerticalAnchor, setStyleClasses, setText, textProperty, updateStyleClassaddButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, layoutChildren, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPointpublic final DoubleProperty labelHorizontalPositionProperty
text label on the plot area, with value between 0.0
(left) and 1.0 (right). Value 0.5 will position the label in the middle of the plot area.public final DoubleProperty labelVerticalPositionProperty
text label on the plot area, with value between 0.0
(bottom) and 1.0 (top). Value 0.5 will position the label in the middle of the plot area.public final DoubleProperty lowerBoundProperty
getLowerBound(),
setLowerBound(double)public final DoubleProperty upperBoundProperty
getUpperBound(),
setUpperBound(double)protected static final String STYLE_CLASS_LABEL
protected static final String STYLE_CLASS_RECT
protected final Rectangle rectangle
protected AbstractRangeValueIndicator(Axis axis, double lowerBound, double upperBound, String text)
axis - the axis this indicator is associated withlowerBound - lower bound (min value) of the rangeupperBound - upper bound (max value) of the rangetext - the text to be shown by the label. Value of AbstractValueIndicator.textProperty().public final double getLabelHorizontalPosition()
labelHorizontalPositionProperty().text labelpublic final double getLabelVerticalPosition()
labelVerticalPositionProperty().text labelpublic final double getLowerBound()
lowerBoundProperty().public final double getUpperBound()
upperBoundProperty().public final DoubleProperty labelHorizontalPositionProperty()
text label on the plot area, with value between 0.0
(left) and 1.0 (right). Value 0.5 will position the label in the middle of the plot area.public final DoubleProperty labelVerticalPositionProperty()
text label on the plot area, with value between 0.0
(bottom) and 1.0 (top). Value 0.5 will position the label in the middle of the plot area.protected void layout(Bounds bounds)
bounds - our own bounds in relation to the plot area boundspublic final DoubleProperty lowerBoundProperty()
getLowerBound(),
setLowerBound(double)public final void setLabelHorizontalPosition(double value)
labelHorizontalPositionProperty().value - the new horizontal position, between 0.0 and 1.0 (both inclusive)public final void setLabelVerticalPosition(double value)
labelVerticalPositionProperty().value - the new vertical position, between 0.0 and 1.0 (both inclusive)public final void setLowerBound(double value)
lowerBoundProperty()value - the value for the lower bound of the indicatorpublic final void setUpperBound(double value)
upperBoundProperty()value - upper bound (max value) of the range to be indicatedpublic final DoubleProperty upperBoundProperty()
getUpperBound(),
setUpperBound(double)Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.