java.lang.Object
javafx.geometry.Insets
A set of inside offsets for the 4 side of a rectangular area
- Since:
- JavaFX 2.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.final double
The inset on the bottom sidefinal double
getLeft()
The inset on the left sidefinal double
getRight()
The inset on the right sidefinal double
getTop()
The inset on the top sideint
hashCode()
Returns a hash code value for the insets.toString()
Returns a string representation for the insets.
-
Field Details
-
EMPTY
Empty insets. AnInsets
instance with all offsets equal to zero.
-
-
Constructor Details
-
Insets
public Insets(double top, double right, double bottom, double left) Constructs a new Insets instance with four different offsets.- Parameters:
top
- the top offsetright
- the right offsetbottom
- the bottom offsetleft
- the left 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 Details
-
getTop
public final double getTop()The inset on the top side- Returns:
- the inset on the top side
-
getRight
public final double getRight()The inset on the right side- Returns:
- the inset on the right side
-
getBottom
public final double getBottom()The inset on the bottom side- Returns:
- the inset on the bottom side
-
getLeft
public final double getLeft()The inset on the left side- Returns:
- the inset on the left side
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()Returns a hash code value for the insets. -
toString
Returns a string representation for the insets.
-