Y
- type of Y valuespublic class XRangeIndicator<Y> extends AbstractRangeValueIndicator<Number,Y>
text label
describing the range.
Style Classes (from least to most specific):
range-indicator-label, x-range-indicator-label, x-range-indicator-label[index]
range-indicator-rect, x-range-indicator-rect, x-range-indicator-rect[index]
[index]
corresponds to the index (zero based) of this indicator instance added to the
XYChartPane
. For example class x-range-indicator-label1
can be used to style label of the second
instance of this indicator added to the chart pane.labelHorizontalPositionProperty, labelVerticalPositionProperty, lowerBoundProperty, upperBoundProperty
labelHorizontalAnchorProperty, labelVerticalAnchorProperty, textProperty
chartPaneProperty
rectangle
label
Constructor and Description |
---|
XRangeIndicator(double lowerBound,
double upperBound)
Creates a new instance of the indicator.
|
XRangeIndicator(double lowerBound,
double upperBound,
String text)
Creates a new instance of the indicator.
|
Modifier and Type | Method and Description |
---|---|
protected ValueAxis<?> |
getValueAxis(XYChartPane<Number,Y> chartPane)
Returns the ValueAxis that this indicator is associated with.
|
void |
layoutChildren()
Optional method that allows the plug-in to react in case the size of the
XYChartPane that it belongs to
has changed. |
getLabelHorizontalPosition, getLabelVerticalPosition, getLowerBound, getUpperBound, labelHorizontalPositionProperty, labelVerticalPositionProperty, layout, lowerBoundProperty, setLabelHorizontalPosition, setLabelVerticalPosition, setLowerBound, setUpperBound, upperBoundProperty
getLabelHorizontalAnchor, getLabelVerticalAnchor, getText, labelHorizontalAnchorProperty, labelVerticalAnchorProperty, layoutLabel, setLabelHorizontalAnchor, setLabelVerticalAnchor, setText, textProperty
chartPaneProperty, getChartChildren, getChartPane, getCharts, getLocationInPlotArea, registerMouseEventHandler, setChartPane, toDataPoint, toDisplayPoint
public XRangeIndicator(double lowerBound, double upperBound)
lowerBound
- lower bound (min value) of the rangeupperBound
- upper bound (max value) of the rangepublic XRangeIndicator(double lowerBound, double upperBound, String text)
lowerBound
- 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 void layoutChildren()
XYChartPlugin
XYChartPane
that it belongs to
has changed.layoutChildren
in class XYChartPlugin<Number,Y>
protected ValueAxis<?> getValueAxis(XYChartPane<Number,Y> chartPane)
AbstractValueIndicator
getValueAxis
in class AbstractValueIndicator<Number,Y>
chartPane
- chart pane containing the associated axisCopyright © 2019 CERN. All rights reserved.