Insets (Java SE 10 & JDK 10 ) (original) (raw)
- 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
Fields
Modifier and Type Field Description static Insets EMPTY Empty insets. Constructor Summary
Constructors
Constructor 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 Methods Instance Methods Concrete Methods
Modifier and Type Method Description boolean equals(Object obj) Indicates whether some other object is "equal to" this one. double getBottom() The inset on the bottom side double getLeft() The inset on the left side double getRight() The inset on the right side double getTop() The inset on the top side int hashCode() Returns a hash code value for the insets. String toString() Returns a string representation for the insets. * ### Methods declared in class java.lang.[Object](../../java/lang/Object.html "class in java.lang") `[clone](../../java/lang/Object.html#clone%28%29), [finalize](../../java/lang/Object.html#finalize%28%29), [getClass](../../java/lang/Object.html#getClass%28%29), [notify](../../java/lang/Object.html#notify%28%29), [notifyAll](../../java/lang/Object.html#notifyAll%28%29), [wait](../../java/lang/Object.html#wait%28%29), [wait](../../java/lang/Object.html#wait%28long%29), [wait](../../java/lang/Object.html#wait%28long,int%29)`
Field Detail
* #### EMPTY public static final [Insets](../../javafx/geometry/Insets.html "class in javafx.geometry") EMPTY Empty insets. An `Insets` instance 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 `right` \- the right offset `bottom` \- the bottom offset `left` \- 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 Detail
* #### 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 public boolean equals([Object](../../java/lang/Object.html "class in java.lang") obj) Indicates whether some other object is "equal to" this one. Overrides: `[equals](../../java/lang/Object.html#equals%28java.lang.Object%29)` in class `[Object](../../java/lang/Object.html "class in java.lang")` Parameters: `obj` \- the reference object with which to compare Returns: true if this object is the same as the obj argument; false otherwise See Also: [Object.hashCode()](../../java/lang/Object.html#hashCode%28%29), [HashMap](../../java/util/HashMap.html "class in java.util") * #### hashCode public int hashCode() Returns a hash code value for the insets. Overrides: `[hashCode](../../java/lang/Object.html#hashCode%28%29)` in class `[Object](../../java/lang/Object.html "class in java.lang")` Returns: a hash code value for the insets. See Also: [Object.equals(java.lang.Object)](../../java/lang/Object.html#equals%28java.lang.Object%29), [System.identityHashCode(java.lang.Object)](../../java/lang/System.html#identityHashCode%28java.lang.Object%29) * #### toString public [String](../../java/lang/String.html "class in java.lang") toString() Returns a string representation for the insets. Overrides: `[toString](../../java/lang/Object.html#toString%28%29)` in class `[Object](../../java/lang/Object.html "class in java.lang")` Returns: a string representation for the insets.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.