Java javafx.scene.control Label fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control Label fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control Label.

The text is from its open source code.

Subclass

javafx.scene.control.Label has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidaddEventFilter(final EventType eventType, final EventHandler eventFilter)
Registers an event filter to this node.
BooleanPropertydisableProperty()
Defines the individual disabled state of this Node .
ObjectPropertyfontProperty()
The default font to use for text in the Labeled.
FontgetFont()
StringgetId()
The id of this Node .
NodegetLabelFor()
doublegetPrefHeight()
doublegetPrefWidth()
ScenegetScene()
StringgetStyle()
A string representation of the CSS style associated with this specific Node .
ObservableListgetStyleClass()
ObservableListgetStylesheets()
Gets an observable list of string URLs linking to the stylesheets to use with this Parent's contents.
StringgetText()
PaintgetTextFill()
booleanisWrapText()
ObjectPropertylabelForProperty()
A Label can act as a label for a different Control or Node.
DoublePropertylayoutXProperty()
DoublePropertylayoutYProperty()
DoublePropertyprefWidthProperty()
voidrelocate(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.
DoublePropertyscaleXProperty()
Defines the factor by which coordinates are scaled about the center of the object along the X axis of this Node .
DoublePropertyscaleYProperty()
Defines the factor by which coordinates are scaled about the center of the object along the Y axis of this Node .
voidsetAlignment(Pos value)
voidsetBackground(Background value)
voidsetBorder(Border value)
voidsetDisable(boolean value)
voidsetFont(Font value)
voidsetGraphic(Node value)
voidsetId(String value)
voidsetLabelFor(Node value)
voidsetLayoutX(double value)
voidsetLayoutY(double value)
voidsetMaxHeight(double value)
voidsetMaxWidth(double value)
voidsetMinSize(double minWidth, double minHeight)
Convenience method for overriding the region's computed minimum width and height.
voidsetMinWidth(double value)
voidsetOnMouseClicked(EventHandler value)
voidsetOnMouseEntered(EventHandler value)
voidsetOnMouseExited(EventHandler value)
voidsetPadding(Insets value)
voidsetPrefHeight(double value)
voidsetPrefSize(double prefWidth, double prefHeight)
Convenience method for overriding the region's computed preferred width and height.
voidsetPrefWidth(double value)
voidsetRotate(double value)
voidsetScaleX(double value)
voidsetScaleY(double value)
voidsetStyle(String value)
A string representation of the CSS style associated with this specific Node .
voidsetText(String value)
voidsetTextAlignment(TextAlignment value)
voidsetTextFill(Paint value)
voidsetTextOverrun(OverrunStyle value)
voidsetTooltip(Tooltip value)
voidsetTranslateX(double value)
voidsetTranslateY(double value)
voidsetVisible(boolean value)
voidsetWrapText(boolean value)
ObjectPropertytextFillProperty()
StringPropertytextProperty()
The text to display in the label.