jwx!
v0.0.2


wx
Class Rect

java.lang.Object
  extended bywx.Rect

public class Rect
extends java.lang.Object


Constructor Summary
Rect()
           
Rect(int xx, int yy, int ww, int hh)
           
Rect(Point topLeft, Point bottomRight)
           
Rect(Point pt, Size size)
           
Rect(Size size)
           
 
Method Summary
 Rect deflate(int d)
           
 Rect deflate(int dx, int dy)
           
 void delete()
           
 int getBottom()
           
 Point getBottomRight()
           
 int getHeight()
           
 int getLeft()
           
 Point getLeftTop()
           
 Point getPosition()
           
 int getRight()
           
 Point getRightBottom()
           
 Size getSize()
           
 int getTop()
           
 Point getTopLeft()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 Rect inflate(int d)
           
 Rect inflate(int dx, int dy)
           
 boolean inside(int x, int y)
           
 boolean inside(Point pt)
           
 Rect intersect(Rect rect)
           
 boolean intersects(Rect rect)
           
 boolean isEmpty()
           
 void offset(int dx, int dy)
           
 void offset(Point pt)
           
 void setBottom(int bottom)
           
 void setBottomRight(Point p)
           
 void setHeight(int h)
           
 void setLeft(int left)
           
 void setLeftTop(Point p)
           
 void setPosition(Point p)
           
 void setRight(int right)
           
 void setRightBottom(Point p)
           
 void setSize(Size s)
           
 void setTop(int top)
           
 void setTopLeft(Point p)
           
 void setWidth(int w)
           
 void setX(int xx)
           
 void setY(int yy)
           
 Rect union(Rect rect)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rect

public Rect()

Rect

public Rect(int xx,
            int yy,
            int ww,
            int hh)

Rect

public Rect(Point topLeft,
            Point bottomRight)

Rect

public Rect(Point pt,
            Size size)

Rect

public Rect(Size size)
Method Detail

delete

public void delete()

getX

public int getX()

setX

public void setX(int xx)

getY

public int getY()

setY

public void setY(int yy)

getWidth

public int getWidth()

setWidth

public void setWidth(int w)

getHeight

public int getHeight()

setHeight

public void setHeight(int h)

getPosition

public Point getPosition()

setPosition

public void setPosition(Point p)

getSize

public Size getSize()

setSize

public void setSize(Size s)

isEmpty

public boolean isEmpty()

getTopLeft

public Point getTopLeft()

getLeftTop

public Point getLeftTop()

setTopLeft

public void setTopLeft(Point p)

setLeftTop

public void setLeftTop(Point p)

getBottomRight

public Point getBottomRight()

getRightBottom

public Point getRightBottom()

setBottomRight

public void setBottomRight(Point p)

setRightBottom

public void setRightBottom(Point p)

getLeft

public int getLeft()

getTop

public int getTop()

getBottom

public int getBottom()

getRight

public int getRight()

setLeft

public void setLeft(int left)

setRight

public void setRight(int right)

setTop

public void setTop(int top)

setBottom

public void setBottom(int bottom)

inflate

public Rect inflate(int dx,
                    int dy)

inflate

public Rect inflate(int d)

deflate

public Rect deflate(int dx,
                    int dy)

deflate

public Rect deflate(int d)

offset

public void offset(int dx,
                   int dy)

offset

public void offset(Point pt)

intersect

public Rect intersect(Rect rect)

union

public Rect union(Rect rect)

inside

public boolean inside(int x,
                      int y)

inside

public boolean inside(Point pt)

intersects

public boolean intersects(Rect rect)

jwx!
v0.0.2


© 2006 Amit G Mendapara.