public class YValueIndicator extends AbstractSingleValueIndicator
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, pickingDistanceProperty, valuePropertyeditableIndicatorProperty, labelHorizontalAnchorProperty, labelVerticalAnchorProperty, textPropertyaddButtonsToToolBarProperty, chartPropertyAbstractValueIndicator.DeltaDEFAULT_PICKING_DISTANCE, line, MIDDLE_POSITION, pickLine, STYLE_CLASS_LABEL, STYLE_CLASS_LINE, STYLE_CLASS_MARKER, triangle, triangleHalfWidthdragDelta, editableIndicator, label| Constructor and Description |
|---|
YValueIndicator(Axis axis,
double value)
Creates a new instance indicating given Y value belonging to the specified
yAxis. |
YValueIndicator(Axis axis,
double value,
String text)
Creates a new instance indicating given Y value belonging to the specified
yAxis, with the specified
label. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleDragMouseEvent(MouseEvent mouseEvent) |
void |
layoutChildren()
Optional method that allows the plug-in to react in case the size of the chart that it belongs to has changed.
|
void |
updateStyleClass()
There might be several instances of a given indicator class.
|
getLabelPosition, getPickingDistance, getValue, labelPositionProperty, layoutLine, layoutMarker, pickingDistanceProperty, setLabelPosition, setPickingDistance, setValue, valuePropertyaddChildNodeIfNotPresent, editableIndicatorProperty, getLabelHorizontalAnchor, getLabelVerticalAnchor, getNumericAxis, getText, isEditable, labelHorizontalAnchorProperty, labelVerticalAnchorProperty, layoutLabel, setEditable, setLabelHorizontalAnchor, setLabelVerticalAnchor, setStyleClasses, setText, textPropertyaddButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPointpublic YValueIndicator(Axis axis, double value)
yAxis.axis - the axis this indicator is associated withvalue - a value to be markedpublic YValueIndicator(Axis axis, double value, String text)
yAxis, with the specified
label.axis - the axis this indicator is associated withvalue - a value to be markedtext - the text to be shown by the label. Value of AbstractValueIndicator.textProperty().protected void handleDragMouseEvent(MouseEvent mouseEvent)
public void layoutChildren()
ChartPluginlayoutChildren in class ChartPluginpublic void updateStyleClass()
AbstractValueIndicatorupdateStyleClass in class AbstractValueIndicatorCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.