Uses of Class
javafx.geometry.Insets
Package
Description
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
Provides various
StyleConverter
classes
that convert CSS parsed values.Provides the set of 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
Provides classes to support user interface layout.
-
Uses of Insets in javafx.css
Modifier and TypeMethodDescriptionfinal CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function) Create a CssMetaData<S, Insets> with initial value ofEMPTY
, and inherit flag defaulting to false.final CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function, Insets initialValue) Create a CssMetaData<S, Insets> with initial value, and inherit flag defaulting to false.final CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function, Insets initialValue, boolean inherits) Create a CssMetaData<S, Insets> with initial value, and inherit flag.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty) Create a StyleableProperty<Insets> using previously created CssMetaData for the givencssProperty
.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function) Create a StyleableProperty<Inset>.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function, Insets initialValue) Create a StyleableProperty<Inset> with initial value.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function, Insets initialValue, boolean inherits) Create a StyleableProperty<Inset> with initial value and inherit flag.static StyleConverter<ParsedValue[],
Insets> StyleConverter.getInsetsConverter()
Return aStyleConverter
that converts a [<length> | <percentage>]{1,4} to anInsets
.Modifier and TypeMethodDescriptionfinal CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function, Insets initialValue) Create a CssMetaData<S, Insets> with initial value, and inherit flag defaulting to false.final CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function, Insets initialValue, boolean inherits) Create a CssMetaData<S, Insets> with initial value, and inherit flag.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function, Insets initialValue) Create a StyleableProperty<Inset> with initial value.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function, Insets initialValue, boolean inherits) Create a StyleableProperty<Inset> with initial value and inherit flag.Modifier and TypeMethodDescriptionfinal CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function) Create a CssMetaData<S, Insets> with initial value ofEMPTY
, and inherit flag defaulting to false.final CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function, Insets initialValue) Create a CssMetaData<S, Insets> with initial value, and inherit flag defaulting to false.final CssMetaData<S,
Insets> StyleablePropertyFactory.createInsetsCssMetaData
(String property, Function<S, StyleableProperty<Insets>> function, Insets initialValue, boolean inherits) Create a CssMetaData<S, Insets> with initial value, and inherit flag.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function) Create a StyleableProperty<Inset>.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function, Insets initialValue) Create a StyleableProperty<Inset> with initial value.final StyleableProperty<Insets>
StyleablePropertyFactory.createStyleableInsetsProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Insets>> function, Insets initialValue, boolean inherits) Create a StyleableProperty<Inset> with initial value and inherit flag. -
Uses of Insets in javafx.css.converter
Modifier and TypeMethodDescriptionstatic StyleConverter<ParsedValue[],
Insets> InsetsConverter.getInstance()
Gets theInsetsConverter
instance. -
Uses of Insets in javafx.geometry
-
Uses of Insets in javafx.scene.control
Modifier and TypeMethodDescriptionfinal Insets
Labeled.getLabelPadding()
Gets the value of thelabelPadding
property.Modifier and TypeMethodDescriptionfinal ReadOnlyObjectProperty<Insets>
Labeled.labelPaddingProperty()
The padding around the Labeled's text and graphic content.Modifier and TypeMethodDescriptionprotected void
SkinBase.layoutInArea
(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, boolean fillWidth, boolean fillHeight, HPos halignment, VPos valignment) Utility method which lays out the child within an area of this skin defined byareaX
,areaY
,areaWidth
xareaHeight
, with a baseline offset relative to that area.protected void
SkinBase.layoutInArea
(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, HPos halignment, VPos valignment) Utility method which lays out the child within an area of this skin defined byareaX
,areaY
,areaWidth
xareaHeight
, with a baseline offset relative to that area.protected void
SkinBase.positionInArea
(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, HPos halignment, VPos valignment) Utility method which positions the child within an area of this skin defined byareaX
,areaY
,areaWidth
xareaHeight
, with a baseline offset relative to that area. -
Uses of Insets in javafx.scene.layout
Modifier and TypeMethodDescriptionfinal Insets
BackgroundFill.getInsets()
The Insets to use for this fill.final Insets
Border.getInsets()
The insets define the distance from the edge of the Region to the inner-most edge of the border, if that distance is non-negative.final Insets
BorderImage.getInsets()
The insets of the BorderImage define where the border should be positioned relative to the edge of the Region.final Insets
BorderStroke.getInsets()
Defines the insets of each side of theBorderStroke
.final Insets
Region.getInsets()
Gets the value of theinsets
property.static Insets
Returns the child's margin constraint if set.static Insets
Returns the child's margin constraint if set.static Insets
Returns the child's margin constraint if set.static Insets
Returns the child's margin constraint if set.static Insets
Returns the child's margin constraints if set.static Insets
Returns the child's margin constraint if set.static Insets
Returns the child's margin property if set.final Insets
Region.getOpaqueInsets()
Gets the value of theopaqueInsets
property.final Insets
Background.getOutsets()
The outsets of this Background.final Insets
Border.getOutsets()
The outsets of the border define the outer-most edge of the border to be drawn.final Insets
Region.getPadding()
Gets the value of thepadding
property.Modifier and TypeMethodDescriptionfinal ReadOnlyObjectProperty<Insets>
Region.insetsProperty()
The insets of the Region define the distance from the edge of the region (its layout bounds, or (0, 0, width, height)) to the edge of the content area.final ObjectProperty<Insets>
Region.opaqueInsetsProperty()
Defines the area of the region within which completely opaque pixels are drawn.final ObjectProperty<Insets>
Region.paddingProperty()
The top, right, bottom, and left padding around the region's content.Modifier and TypeMethodDescriptionprotected void
Region.layoutInArea
(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, boolean fillWidth, boolean fillHeight, HPos halignment, VPos valignment) Utility method which lays out the child within an area of this region defined byareaX
,areaY
,areaWidth
xareaHeight
, with a baseline offset relative to that area.static void
Region.layoutInArea
(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, boolean fillWidth, boolean fillHeight, HPos halignment, VPos valignment, boolean isSnapToPixel) Utility method which lays out the child within an area of it's parent defined byareaX
,areaY
,areaWidth
xareaHeight
, with a baseline offset relative to that area.protected void
Region.layoutInArea
(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, HPos halignment, VPos valignment) Utility method which lays out the child within an area of this region defined byareaX
,areaY
,areaWidth
xareaHeight
, with a baseline offset relative to that area.static void
Region.positionInArea
(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, HPos halignment, VPos valignment, boolean isSnapToPixel) Utility method which positions the child within an area of this region defined byareaX
,areaY
,areaWidth
xareaHeight
, with a baseline offset relative to that area.static void
GridPane.setConstraints
(Node child, int columnIndex, int rowIndex, int columnspan, int rowspan, HPos halignment, VPos valignment, Priority hgrow, Priority vgrow, Insets margin) Sets the grid position, spans, alignment, grow priorities, and margin for the child when contained in a gridpane.static void
Sets the margin for the child when contained by a border pane.static void
Sets the margin for the child when contained by a flowpane.static void
Sets the margin for the child when contained by a gridpane.static void
Sets the margin for the child when contained by an hbox.static void
Sets the margin for the child when contained by a stackpane.static void
Sets the margin for the child when contained by a tilepane.static void
Sets the margin for the child when contained by a vbox.final void
Region.setOpaqueInsets
(Insets value) Sets the value of theopaqueInsets
property.final void
Region.setPadding
(Insets value) Sets the value of thepadding
property.ModifierConstructorDescriptionBackgroundFill
(Paint fill, CornerRadii radii, Insets insets) Creates a new BackgroundFill with the specified fill, radii, and insets.BorderImage
(Image image, BorderWidths widths, Insets insets, BorderWidths slices, boolean filled, BorderRepeat repeatX, BorderRepeat repeatY) Creates a new BorderImage.BorderStroke
(Paint stroke, BorderStrokeStyle style, CornerRadii radii, BorderWidths widths, Insets insets) Creates a newBorderStroke
.BorderStroke
(Paint topStroke, Paint rightStroke, Paint bottomStroke, Paint leftStroke, BorderStrokeStyle topStyle, BorderStrokeStyle rightStyle, BorderStrokeStyle bottomStyle, BorderStrokeStyle leftStyle, CornerRadii radii, BorderWidths widths, Insets insets) Creates a newBorderStroke
, specifying all construction parameters.