gishur.x
Class XRectangle

java.lang.Object
  |
  +--gishur.x.XRectangle

public class XRectangle
extends java.lang.Object


Field Summary
 double height
           
 double width
           
 double x
           
 double y
           
 
Constructor Summary
XRectangle()
           
XRectangle(double x, double y, double width, double height)
           
XRectangle(java.awt.Rectangle r)
           
XRectangle(XPoint p, double width, double height)
           
XRectangle(XPoint p1, XPoint p2)
           
XRectangle(XRectangle r)
           
 
Method Summary
 java.lang.Object clone()
           
 void grow(double dw, double dh)
           
 boolean inside(double xx, double yy)
           
 boolean inside(XPoint p)
           
 int intersection(XLine l, XPoint p1, XPoint p2)
           
 XRectangle intersection(XRectangle r)
           
 boolean intersects(XRectangle r)
           
 void move(double dx, double dy)
           
 void move(XPoint p)
           
 void reshape(double x, double y, double width, double height)
           
 void resize(double nw, double nh)
           
 java.lang.String toString()
           
 XRectangle union(XRectangle r)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

width

public double width

height

public double height
Constructor Detail

XRectangle

public XRectangle()

XRectangle

public XRectangle(double x,
                  double y,
                  double width,
                  double height)

XRectangle

public XRectangle(XPoint p,
                  double width,
                  double height)

XRectangle

public XRectangle(XPoint p1,
                  XPoint p2)

XRectangle

public XRectangle(XRectangle r)

XRectangle

public XRectangle(java.awt.Rectangle r)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

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

reshape

public void reshape(double x,
                    double y,
                    double width,
                    double height)

resize

public void resize(double nw,
                   double nh)

grow

public void grow(double dw,
                 double dh)

move

public void move(double dx,
                 double dy)

move

public void move(XPoint p)

inside

public boolean inside(double xx,
                      double yy)

inside

public boolean inside(XPoint p)

intersects

public boolean intersects(XRectangle r)

intersection

public XRectangle intersection(XRectangle r)

intersection

public int intersection(XLine l,
                        XPoint p1,
                        XPoint p2)

union

public XRectangle union(XRectangle r)