java.lang.Object
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
- 
Field Summary
- 
Constructor Summary
- 
Method SummaryModifier and Type Method 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 Details- 
EMPTYEmpty insets. AnInsetsinstance with all offsets equal to zero.
 
- 
- 
Constructor Details- 
Insetspublic Insets(double top, double right, double bottom, double left)Constructs a new Insets instance with four different offsets.- Parameters:
- top- the top offset
- right- the right offset
- bottom- the bottom offset
- left- the left offset
 
- 
Insetspublic 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- 
getToppublic final double getTop()The inset on the top side- Returns:
- the inset on the top side
 
- 
getRightpublic final double getRight()The inset on the right side- Returns:
- the inset on the right side
 
- 
getBottompublic final double getBottom()The inset on the bottom side- Returns:
- the inset on the bottom side
 
- 
getLeftpublic final double getLeft()The inset on the left side- Returns:
- the inset on the left side
 
- 
equalsIndicates whether some other object is "equal to" this one.
- 
hashCodepublic int hashCode()Returns a hash code value for the insets.
- 
toStringReturns a string representation for the insets.
 
-