org.zkoss.zss.ui
Class Rect

java.lang.Object
  extended by org.zkoss.zss.ui.Rect
Direct Known Subclasses:
MergedRect

public class Rect
extends java.lang.Object

a class to represent a rectangle range with 4 value : left, top, right, bottom

Author:
Dennis.Chen

Constructor Summary
Rect()
           
Rect(int left, int top, int right, int bottom)
           
 
Method Summary
 java.lang.Object cloneSelf()
           
 boolean contains(int tRow, int lCol, int bRow, int rCol)
           
 boolean equals(java.lang.Object obj)
           
 int getBottom()
           
 int getLeft()
           
 int getRight()
           
 int getTop()
           
 int hashCode()
           
 void set(int left, int top, int right, int bottom)
           
 void setBottom(int bottom)
           
 void setLeft(int left)
           
 void setRight(int right)
           
 void setTop(int top)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rect

public Rect()

Rect

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

set

public void set(int left,
                int top,
                int right,
                int bottom)

getLeft

public int getLeft()

setLeft

public void setLeft(int left)

getTop

public int getTop()

setTop

public void setTop(int top)

getRight

public int getRight()

setRight

public void setRight(int right)

getBottom

public int getBottom()

setBottom

public void setBottom(int bottom)

cloneSelf

public java.lang.Object cloneSelf()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

contains

public boolean contains(int tRow,
                        int lCol,
                        int bRow,
                        int rCol)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2010 Potix Corporation. All Rights Reserved. SourceForge.net Logo