Serializable
, Cloneable
InsetsUIResource
An Insets
object is a representation of the borders of a container. It specifies the space that a container must leave at each of its edges. The space can be a border, a blank space, or a title.
Fields
int
The inset from the bottom.
int
int
The inset from the right.
int
Constructors
Insets(int top, int left, int bottom, int right)
Creates and initializes a new Insets
object with the specified top, left, bottom, and right insets.
Create a copy of this object.
boolean
Checks whether two insets objects are equal.
int
Returns the hash code for this Insets.
void
set(int top, int left, int bottom, int right)
Set top, left, bottom, and right to the specified values
Returns a string representation of this Insets
object.
public int top
The inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top.
public int left
The inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge.
public int bottom
The inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom.
public int right
The inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge.
public Insets(int top, int left, int bottom, int right)
Creates and initializes a new Insets
object with the specified top, left, bottom, and right insets.
top
- the inset from the top.
left
- the inset from the left.
bottom
- the inset from the bottom.
right
- the inset from the right.
public void set(int top, int left, int bottom, int right)
Set top, left, bottom, and right to the specified values
top
- the inset from the top.
left
- the inset from the left.
bottom
- the inset from the bottom.
right
- the inset from the right.
Checks whether two insets objects are equal. Two instances of Insets
are equal if the four integer values of the fields top
, left
, bottom
, and right
are all equal.
public int hashCode()
Returns the hash code for this Insets.
Returns a string representation of this Insets
object. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null
.
Create a copy of this object.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4