public class Insets extends Object
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.
|
Modifier and Type | Method and 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.
|
public static final Insets EMPTY
Insets
instance with all offsets equal to zero.public Insets(double top, double right, double bottom, double left)
top
- the top offsetright
- the right offsetbottom
- the bottom offsetleft
- the left offsetpublic Insets(double topRightBottomLeft)
topRightBottomLeft
- the value used for top, bottom, right and left
offsetpublic final double getTop()
public final double getRight()
public final double getBottom()
public final double getLeft()
public boolean equals(Object obj)
public int hashCode()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.