org.apache.pivot.wtk
Class Insets

java.lang.Object
  extended by org.apache.pivot.wtk.Insets
All Implemented Interfaces:
Serializable

public final class Insets
extends Object
implements Serializable

Class representing the insets of an object.

See Also:
Serialized Form

Field Summary
 int bottom
           
static String BOTTOM_KEY
           
 int left
           
static String LEFT_KEY
           
static Insets NONE
          Insets whose top, left, bottom, and right values are all zero.
 int right
           
static String RIGHT_KEY
           
 int top
           
static String TOP_KEY
           
 
Constructor Summary
Insets(Dictionary<String,?> insets)
           
Insets(Insets insets)
           
Insets(int inset)
           
Insets(int top, int left, int bottom, int right)
           
 
Method Summary
static Insets decode(String value)
           
 boolean equals(Object object)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

top

public final int top

left

public final int left

bottom

public final int bottom

right

public final int right

TOP_KEY

public static final String TOP_KEY
See Also:
Constant Field Values

LEFT_KEY

public static final String LEFT_KEY
See Also:
Constant Field Values

BOTTOM_KEY

public static final String BOTTOM_KEY
See Also:
Constant Field Values

RIGHT_KEY

public static final String RIGHT_KEY
See Also:
Constant Field Values

NONE

public static final Insets NONE
Insets whose top, left, bottom, and right values are all zero.

Constructor Detail

Insets

public Insets(int inset)

Insets

public Insets(int top,
              int left,
              int bottom,
              int right)

Insets

public Insets(Insets insets)

Insets

public Insets(Dictionary<String,?> insets)
Method Detail

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

decode

public static Insets decode(String value)