X
- type of X values of the XYChartPane
that the plug-in will be applied topublic class YValueIndicator<X> extends AbstractSingleValueIndicator<X,Number>
text
label
describing the value.
Style Classes (from least to most specific):
value-indicator-label, y-value-indicator-label, y-value-indicator-label[index]
value-indicator-line, y-value-indicator-line, y-value-indicator-line[index]
[index]
corresponds to the index (zero based) of this indicator instance added to the
XYChartPane
. For example class y-value-indicator-label1
can be used to style label of the second
instance of this indicator added to the chart pane.labelPositionProperty, valueProperty
labelHorizontalAnchorProperty, labelVerticalAnchorProperty, textProperty
chartPaneProperty
line
label
Constructor and Description |
---|
YValueIndicator(double value)
Creates a new instance indicating given Y value of the
base chart . |
YValueIndicator(double value,
String text)
Creates a new instance indicating given Y value of the
base chart , with the
specified label. |
YValueIndicator(double value,
String text,
ValueAxis<Number> yAxis)
Creates a new instance indicating given Y value belonging to the specified
yAxis , with the specified
label . |
YValueIndicator(double value,
ValueAxis<Number> yAxis)
Creates a new instance indicating given Y value belonging to the specified
yAxis . |
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. |
getLabelPosition, getValue, labelPositionProperty, layoutLine, setLabelPosition, setValue, valueProperty
getLabelHorizontalAnchor, getLabelVerticalAnchor, getText, labelHorizontalAnchorProperty, labelVerticalAnchorProperty, layoutLabel, setLabelHorizontalAnchor, setLabelVerticalAnchor, setText, textProperty
chartPaneProperty, getChartChildren, getChartPane, getCharts, getLocationInPlotArea, registerMouseEventHandler, setChartPane, toDataPoint, toDisplayPoint
public YValueIndicator(double value)
base chart
.value
- a value to be markedpublic YValueIndicator(double value, String text)
base chart
, with the
specified label.value
- a value to be markedtext
- the text to be shown by the label. Value of AbstractValueIndicator.textProperty()
.public YValueIndicator(double value, ValueAxis<Number> yAxis)
yAxis
.value
- a value to be markedyAxis
- Y-axis on which the value will be markedpublic YValueIndicator(double value, String text, ValueAxis<Number> yAxis)
yAxis
, with the specified
label
.value
- a value to be markedtext
- the text to be shown by the label. Value of AbstractValueIndicator.textProperty()
.yAxis
- Y-axis on which the value will be markedpublic 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.