javax.media.nativewindow.util
Class Insets

java.lang.Object
  extended by javax.media.nativewindow.util.Insets
All Implemented Interfaces:
WriteCloneable, Cloneable, InsetsImmutable

public class Insets
extends Object
implements Cloneable, InsetsImmutable


Constructor Summary
Insets()
           
Insets(int left, int right, int top, int bottom)
           
 
Method Summary
 Object cloneMutable()
           
 boolean equals(Object obj)
          Checks whether two rect objects are equal.
 int getBottomHeight()
           
 int getLeftWidth()
           
 int getRightWidth()
           
 int getTopHeight()
           
 int getTotalHeight()
           
 int getTotalWidth()
           
static InsetsImmutable getZero()
           
 int hashCode()
           
 void setBottomHeight(int bottom)
           
 void setLeftWidth(int left)
           
 void setRightWidth(int right)
           
 void setTopHeight(int top)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Insets

public Insets()

Insets

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

getZero

public static final InsetsImmutable getZero()

cloneMutable

public Object cloneMutable()
Specified by:
cloneMutable in interface WriteCloneable

getLeftWidth

public final int getLeftWidth()
Specified by:
getLeftWidth in interface InsetsImmutable
Returns:
left inset width

getRightWidth

public final int getRightWidth()
Specified by:
getRightWidth in interface InsetsImmutable
Returns:
right inset width

getTotalWidth

public final int getTotalWidth()
Specified by:
getTotalWidth in interface InsetsImmutable
Returns:
total width, ie. left_width + right_width

getTopHeight

public final int getTopHeight()
Specified by:
getTopHeight in interface InsetsImmutable
Returns:
top inset height

getBottomHeight

public final int getBottomHeight()
Specified by:
getBottomHeight in interface InsetsImmutable
Returns:
bottom inset height

getTotalHeight

public final int getTotalHeight()
Specified by:
getTotalHeight in interface InsetsImmutable
Returns:
total height, ie. top_height + bottom_height

setLeftWidth

public void setLeftWidth(int left)

setRightWidth

public void setRightWidth(int right)

setTopHeight

public void setTopHeight(int top)

setBottomHeight

public void setBottomHeight(int bottom)

equals

public boolean equals(Object obj)
Description copied from interface: InsetsImmutable
Checks whether two rect objects are equal. Two instances of Insets are equal if the four integer values of the fields left, right, top, and bottom are all equal.

Specified by:
equals in interface InsetsImmutable
Overrides:
equals in class Object
Returns:
true if the two Insets are equal; otherwise false.

hashCode

public int hashCode()
Specified by:
hashCode in interface InsetsImmutable
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright 2010 JogAmp Community.