public static class SegmentedBar.Segment
extends java.lang.Object
SegmentedBar control. Applications
usually subclass this type for their own specific needs. A segment always
carries a value and an optional text. Changing the value of the segment
will trigger a rebuild of the control.| Type | Property and Description |
|---|---|
javafx.beans.property.StringProperty |
text
Stores the text of the segment (optional).
|
javafx.beans.property.DoubleProperty |
value
Stores the current value of the segment.
|
| Constructor and Description |
|---|
Segment(double value)
Constructs a new segment with the given value.
|
Segment(double value,
java.lang.String text)
Constructs a new segment with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Returns the value of
textProperty(). |
double |
getValue()
Returns the value of
valueProperty(). |
void |
setText(java.lang.String text)
Sets the value of
textProperty(). |
void |
setValue(double value)
Sets the value of
valueProperty(). |
javafx.beans.property.StringProperty |
textProperty()
Stores the text of the segment (optional).
|
javafx.beans.property.DoubleProperty |
valueProperty()
Stores the current value of the segment.
|
public final javafx.beans.property.StringProperty textProperty
getText(),
setText(String)public final javafx.beans.property.DoubleProperty valueProperty
getValue(),
setValue(double)public Segment(double value)
value - the segment's valuepublic Segment(double value,
java.lang.String text)
value - the segment's valuetext - the segment's textpublic final javafx.beans.property.StringProperty textProperty()
getText(),
setText(String)public final void setText(java.lang.String text)
textProperty().text - the new textpublic final java.lang.String getText()
textProperty().public final javafx.beans.property.DoubleProperty valueProperty()
getValue(),
setValue(double)public final void setValue(double value)
valueProperty().value - the new valuepublic final double getValue()
valueProperty().