public class Insets
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
bottom
The inset from the bottom.
|
int |
left
The inset from the left.
|
int |
right
The inset from the right.
|
int |
top
The inset from the top.
|
| Constructor and Description |
|---|
Insets()
Creates a new Insets object.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(Insets other)
Copy the insets from another Insets object.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
set(int top,
int left,
int bottom,
int right)
Sets the fields with the given values.
|
public int top
public int left
public int bottom
public int right
public Insets()
public Insets(int top,
int left,
int bottom,
int right)
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)
public void copyFrom(Insets other)
other - The other Insets object.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object