X
- type of X values of the XYChartPane
that the plug-in will be applied topublic class YRangeIndicator<X> extends AbstractRangeValueIndicator<X,Number>
text label
describing the range.
Style Classes (from least to most specific):
range-indicator-label, y-range-indicator-label, y-range-indicator-label[index]
range-indicator-rect, y-range-indicator-rect, y-range-indicator-rect[index]
[index]
corresponds to the index (zero based) of this indicator instance added to the
XYChartPane
. For example class y-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 |
---|
YRangeIndicator(double lowerBound,
double upperBound)
Creates a new instance that indicates given Y range of the
base chart . |
YRangeIndicator(double lowerBound,
double upperBound,
String text)
Creates a new instance that indicates given Y range of the
base chart . |
YRangeIndicator(double lowerBound,
double upperBound,
ValueAxis<Number> yAxis)
Creates a new instance that indicates given Y range of the specified Y axis.
|
Modifier and Type | Method and Description |
---|---|
protected ValueAxis<Number> |
getValueAxis(XYChartPane<X,Number> 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 YRangeIndicator(double lowerBound, double upperBound)
base chart
.lowerBound
- lower bound (min value) of the rangeupperBound
- upper bound (max value) of the rangepublic YRangeIndicator(double lowerBound, double upperBound, String text)
base chart
.lowerBound
- lower bound (min value) of the rangeupperBound
- upper bound (max value) of the rangetext
- the indicator's label's text
public YRangeIndicator(double lowerBound, double upperBound, ValueAxis<Number> yAxis)
lowerBound
- lower bound (min value) of the rangeupperBound
- upper bound (max value) of the rangeyAxis
- Y-axis whose values should be indicatedpublic void layoutChildren()
XYChartPlugin
XYChartPane
that it belongs to
has changed.layoutChildren
in class XYChartPlugin<X,Number>
protected ValueAxis<Number> getValueAxis(XYChartPane<X,Number> chartPane)
AbstractValueIndicator
getValueAxis
in class AbstractValueIndicator<X,Number>
chartPane
- chart pane containing the associated axisCopyright © 2019 CERN. All rights reserved.