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()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.