Class Axis.TickMark<T>
java.lang.Object
javafx.scene.chart.Axis.TickMark<T>
Property Summary
| Type | Property | Description |
|---|---|---|
final StringExpression |
label |
The display text for tick mark |
final DoubleExpression |
position |
The display position along the axis from axis origin in display units |
final ObjectExpression |
value |
The value for this tick mark in data units |
Constructor Summary
| Constructor | Description |
|---|---|
TickMark() |
Creates and initializes an instance of TickMark. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
final String |
getLabel() |
Gets the value of the label property. |
final double |
getPosition() |
Gets the value of the position property. |
final T |
getValue() |
Gets the value of the value property. |
final boolean |
isTextVisible() |
Indicates whether this tick mark label text is displayed or not. |
final StringExpression |
labelProperty() |
The display text for tick mark |
final DoubleExpression |
positionProperty() |
The display position along the axis from axis origin in display units |
final void |
setLabel |
Sets the value of the label property. |
final void |
setPosition |
Sets the value of the position property. |
final void |
setTextVisible |
Specifies whether this tick mark label text is displayed or not. |
final void |
setValue |
Sets the value of the value property. |
String |
toString() |
Returns a string representation of this TickMark object. |
final ObjectExpression |
valueProperty() |
The value for this tick mark in data units |
Property Details
label
public final StringExpression labelProperty
The display text for tick mark
- See Also:
value
public final ObjectExpression<T> valueProperty
The value for this tick mark in data units
- See Also:
position
public final DoubleExpression positionProperty
The display position along the axis from axis origin in display units
- See Also:
Constructor Details
TickMark
public TickMark()
Creates and initializes an instance of TickMark.
Method Details
getLabel
public final String getLabel()
Gets the value of the
label property.- Property description:
- The display text for tick mark
- Returns:
- the value of the
labelproperty - See Also:
setLabel
public final void setLabel(String value)
Sets the value of the
label property.- Property description:
- The display text for tick mark
- Parameters:
-
value- the value for thelabelproperty - See Also:
labelProperty
public final StringExpression labelProperty()
The display text for tick mark
- Returns:
- the
labelproperty - See Also:
getValue
public final T getValue()
Gets the value of the
value property.- Property description:
- The value for this tick mark in data units
- Returns:
- the value of the
valueproperty - See Also:
setValue
public final void setValue(T v)
Sets the value of the
value property.- Property description:
- The value for this tick mark in data units
- Parameters:
-
v- the value for thevalueproperty - See Also:
valueProperty
public final ObjectExpression<T> valueProperty()
The value for this tick mark in data units
- Returns:
- the
valueproperty - See Also:
getPosition
public final double getPosition()
Gets the value of the
position property.- Property description:
- The display position along the axis from axis origin in display units
- Returns:
- the value of the
positionproperty - See Also:
setPosition
public final void setPosition(double value)
Sets the value of the
position property.- Property description:
- The display position along the axis from axis origin in display units
- Parameters:
-
value- the value for thepositionproperty - See Also:
positionProperty
public final DoubleExpression positionProperty()
The display position along the axis from axis origin in display units
- Returns:
- the
positionproperty - See Also:
isTextVisible
public final boolean isTextVisible()
Indicates whether this tick mark label text is displayed or not.
- Returns:
- true if tick mark label text is visible and false otherwise
setTextVisible
public final void setTextVisible(boolean value)
Specifies whether this tick mark label text is displayed or not.
- Parameters:
-
value- true if tick mark label text is visible and false otherwise
toString
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.