public enum Bounds extends java.lang.Enum<Bounds>
| Enum Constant and Description |
|---|
border
Component bounds minus its margin and decoration border width.
|
component
Component bounds.
|
margin
Component bounds minus its margin.
|
padding
Components bounds minus its margin, decoration border width and padding.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
of(java.awt.Component c)
Returns bounds of this type for the specified component.
|
java.awt.Rectangle |
of(java.awt.Component c,
java.awt.Rectangle b)
Returns bounds of this type for the specified component.
|
java.awt.Rectangle |
of(javax.swing.JComponent c,
IDecoration d,
java.awt.Rectangle b)
Returns bounds of this type for the specified decoration.
|
static Bounds |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Bounds[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bounds component
public static final Bounds margin
public static final Bounds border
public static final Bounds padding
public static Bounds[] values()
for (Bounds c : Bounds.values()) System.out.println(c);
public static Bounds valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.awt.Rectangle of(java.awt.Component c)
c - component to retrieve bounds forpublic java.awt.Rectangle of(java.awt.Component c,
java.awt.Rectangle b)
c - component to retrieve bounds forb - component painting boundspublic java.awt.Rectangle of(javax.swing.JComponent c,
IDecoration d,
java.awt.Rectangle b)
c - decorated componentd - decoration to retrieve bounds forb - decoration painting bounds