javafx.geometry
Class Insets
- javafx.geometry.Insets
public class Insets extends Object
A set of inside offsets for the 4 side of a rectangular area
Since:
JavaFX 2.0
-
Constructor Summary
Constructors Constructor and Description Insets(double topRightBottomLeft)Constructs a new Insets instance with same value for all four offsets.Insets(double top, double right, double bottom, double left)Constructs a new Insets instance with four different offsets.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description booleanequals(Object obj)Indicates whether some other object is "equal to" this one.doublegetBottom()The inset on the bottom sidedoublegetLeft()The inset on the left sidedoublegetRight()The inset on the right sidedoublegetTop()The inset on the top sideinthashCode()Returns a hash code value for the insets.StringtoString()Returns a string representation for the insets.
-
Field Detail
-
EMPTY
public static final Insets EMPTY
Empty insets. AnInsetsinstance with all offsets equal to zero.
-
-
Constructor Detail
-
Insets
public Insets(double top, double right, double bottom, double left)Constructs a new Insets instance with four different offsets.Parameters:
top- the top offset
-
Insets
public Insets(double topRightBottomLeft)
Constructs a new Insets instance with same value for all four offsets.Parameters:
topRightBottomLeft- the value used for top, bottom, right and left offset
-
-
Method Detail
-
getTop
public final double getTop()
The inset on the top side
-
getRight
public final double getRight()
The inset on the right side
-
getBottom
public final double getBottom()
The inset on the bottom side
-
getLeft
public final double getLeft()
The inset on the left side
-
equals
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
-
hashCode
public int hashCode()
Returns a hash code value for the insets.
-
toString
public String toString()
Returns a string representation for the insets.
-
© 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.