Example usage for Java javafx.scene.control Label fields, constructors, methods, implement or subclass
The text is from its open source code.
Label(String text) Creates Label with supplied text. | |
Label() Creates an empty label | |
Label(String text, Node graphic) Creates a Label with the supplied text and graphic. |
void | addEventFilter(final EventType Registers an event filter to this node. |
BooleanProperty | disableProperty() Defines the individual disabled state of this Node . |
ObjectProperty | fontProperty() The default font to use for text in the Labeled. |
Font | getFont() |
String | getId() The id of this Node . |
Node | getLabelFor() |
double | getPrefHeight() |
double | getPrefWidth() |
Scene | getScene() |
String | getStyle() A string representation of the CSS style associated with this specific Node . |
ObservableList | getStyleClass() |
ObservableList | getStylesheets() Gets an observable list of string URLs linking to the stylesheets to use with this Parent's contents. |
String | getText() |
Paint | getTextFill() |
boolean | isWrapText() |
ObjectProperty | labelForProperty() A Label can act as a label for a different Control or Node. |
DoubleProperty | layoutXProperty() |
DoubleProperty | layoutYProperty() |
DoubleProperty | prefWidthProperty() |
void | relocate(double x, double y) Sets the node's layoutX and layoutY translation properties in order to relocate this node to the x,y location in the parent. |
DoubleProperty | scaleXProperty() Defines the factor by which coordinates are scaled about the center of the object along the X axis of this Node . |
DoubleProperty | scaleYProperty() Defines the factor by which coordinates are scaled about the center of the object along the Y axis of this Node . |
void | setAlignment(Pos value) |
void | setBackground(Background value) |
void | setBorder(Border value) |
void | setDisable(boolean value) |
void | setFont(Font value) |
void | setGraphic(Node value) |
void | setId(String value) |
void | setLabelFor(Node value) |
void | setLayoutX(double value) |
void | setLayoutY(double value) |
void | setMaxHeight(double value) |
void | setMaxWidth(double value) |
void | setMinSize(double minWidth, double minHeight) Convenience method for overriding the region's computed minimum width and height. |
void | setMinWidth(double value) |
void | setOnMouseClicked(EventHandler super MouseEvent> value) |
void | setOnMouseEntered(EventHandler super MouseEvent> value) |
void | setOnMouseExited(EventHandler super MouseEvent> value) |
void | setPadding(Insets value) |
void | setPrefHeight(double value) |
void | setPrefSize(double prefWidth, double prefHeight) Convenience method for overriding the region's computed preferred width and height. |
void | setPrefWidth(double value) |
void | setRotate(double value) |
void | setScaleX(double value) |
void | setScaleY(double value) |
void | setStyle(String value) A string representation of the CSS style associated with this specific Node . |
void | setText(String value) |
void | setTextAlignment(TextAlignment value) |
void | setTextFill(Paint value) |
void | setTextOverrun(OverrunStyle value) |
void | setTooltip(Tooltip value) |
void | setTranslateX(double value) |
void | setTranslateY(double value) |
void | setVisible(boolean value) |
void | setWrapText(boolean value) |
ObjectProperty | textFillProperty() |
StringProperty | textProperty() The text to display in the label. |