public abstract class AbstractValueIndicator extends ChartPlugin
Chart with an optional
text label description.| Type | Property and Description |
|---|---|
BooleanProperty |
editableIndicator
whether this plugin is editable
|
ObjectProperty<HPos> |
labelHorizontalAnchor
Specifies anchor of the
text label with respect to the horizontal label position i.e. |
ObjectProperty<VPos> |
labelVerticalAnchor
Specifies anchor of the
text label with respect to the vertical label position i.e. |
StringProperty |
text
Text to be displayed by the label.
|
addButtonsToToolBarProperty, chartProperty| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractValueIndicator.Delta |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractValueIndicator.Delta |
dragDelta |
protected BooleanProperty |
editableIndicator |
protected Label |
label |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractValueIndicator(Axis axis,
String text)
Creates a new instance of the indicator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChildNodeIfNotPresent(Node node) |
BooleanProperty |
editableIndicatorProperty()
whether this plugin is editable
|
HPos |
getLabelHorizontalAnchor()
Returns the value of the
labelHorizontalAnchorProperty(). |
VPos |
getLabelVerticalAnchor()
Returns the value of the
labelVerticalAnchorProperty(). |
protected Axis |
getNumericAxis()
Returns the ValueAxis that this indicator is associated with.
|
String |
getText()
Returns the value of the
textProperty(). |
boolean |
isEditable() |
ObjectProperty<HPos> |
labelHorizontalAnchorProperty()
Specifies anchor of the
text label with respect to the horizontal label position i.e. |
ObjectProperty<VPos> |
labelVerticalAnchorProperty()
Specifies anchor of the
text label with respect to the vertical label position i.e. |
protected void |
layoutLabel(Bounds bounds,
double hPos,
double vPos)
Layouts the label within specified bounds and given horizontal and vertical position, taking into account
horizontal and vertical anchor. |
void |
setEditable(boolean newState)
Sets the state whether this plugin is editable
|
void |
setLabelHorizontalAnchor(HPos anchor)
Sets the value of the
labelHorizontalAnchorProperty(). |
void |
setLabelVerticalAnchor(VPos anchor)
Sets the value of the
labelVerticalAnchorProperty(). |
void |
setStyleClasses(Node node,
String prefix,
String root) |
void |
setText(String text)
Sets the value of the
textProperty(). |
StringProperty |
textProperty()
Text to be displayed by the label.
|
abstract void |
updateStyleClass()
There might be several instances of a given indicator class.
|
addButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, layoutChildren, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPointpublic final BooleanProperty editableIndicatorProperty
public final ObjectProperty<HPos> labelHorizontalAnchorProperty
text label with respect to the horizontal label position i.e. it
describes whether the position is related to the LEFT, CENTER or RIGHT side of the label. The position itself
should be specified by the extending classes.
Default value: HPos.CENTER
public final ObjectProperty<VPos> labelVerticalAnchorProperty
text label with respect to the vertical label position i.e. it
describes whether the position is related to the TOP, CENTER, BASELINE or BOTTOM of of the label. The position
itself should be specified by the extending classes.
Default value: VPos.CENTER
public final StringProperty textProperty
null, the label is not shown.getText(),
setText(String)protected final Label label
protected final AbstractValueIndicator.Delta dragDelta
protected final BooleanProperty editableIndicator
protected AbstractValueIndicator(Axis axis, String text)
axis - the axis this indicator is associated withtext - the text to be shown by the label. Value of textProperty().protected void addChildNodeIfNotPresent(Node node)
public final BooleanProperty editableIndicatorProperty()
public final HPos getLabelHorizontalAnchor()
labelHorizontalAnchorProperty().public final VPos getLabelVerticalAnchor()
labelVerticalAnchorProperty().protected Axis getNumericAxis()
public final String getText()
textProperty().public final boolean isEditable()
public final ObjectProperty<HPos> labelHorizontalAnchorProperty()
text label with respect to the horizontal label position i.e. it
describes whether the position is related to the LEFT, CENTER or RIGHT side of the label. The position itself
should be specified by the extending classes.
Default value: HPos.CENTER
public final ObjectProperty<VPos> labelVerticalAnchorProperty()
text label with respect to the vertical label position i.e. it
describes whether the position is related to the TOP, CENTER, BASELINE or BOTTOM of of the label. The position
itself should be specified by the extending classes.
Default value: VPos.CENTER
protected final void layoutLabel(Bounds bounds, double hPos, double vPos)
horizontal and vertical anchor.bounds - the bounding rectangle with respect to which the label should be positionedhPos - relative [0, 1] horizontal position of the label within the boundsvPos - relative [0, 1] vertical position of the label within the boundspublic final void setEditable(boolean newState)
newState - true: edits are allowedpublic final void setLabelHorizontalAnchor(HPos anchor)
labelHorizontalAnchorProperty().anchor - new anchorpublic final void setLabelVerticalAnchor(VPos anchor)
labelVerticalAnchorProperty().anchor - new anchorpublic final void setText(String text)
textProperty().text - the new text. If null, the label will be hidden.public final StringProperty textProperty()
null, the label is not shown.getText(),
setText(String)public abstract void updateStyleClass()
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.