moebiusViewer.shape
Class Rectangle

java.lang.Object
  extended bymoebiusViewer.shape.Rectangle
All Implemented Interfaces:
java.lang.Cloneable, MoebiusShape, java.io.Serializable

public class Rectangle
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, MoebiusShape

See Also:
Serialized Form

Field Summary
 double h
           
 double w
           
 double x
           
 double y
           
 
Constructor Summary
Rectangle()
           
Rectangle(double aX, double aY, double aW, double aH)
           
Rectangle(Rectangle aRectangle)
           
 
Method Summary
 void draw(MoebiusGraphics g)
           
 double[] getCorners()
           
 java.util.Vector getTools()
           
 void set(double aX, double aY, double aW, double aH)
           
 void set(Rectangle aRectangle)
           
 void setCorners(double[] corners)
           
 java.lang.String toString()
           
 void unify(Rectangle aRectangle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

w

public double w

h

public double h
Constructor Detail

Rectangle

public Rectangle()

Rectangle

public Rectangle(Rectangle aRectangle)

Rectangle

public Rectangle(double aX,
                 double aY,
                 double aW,
                 double aH)
Method Detail

set

public void set(Rectangle aRectangle)

set

public void set(double aX,
                double aY,
                double aW,
                double aH)

unify

public void unify(Rectangle aRectangle)

getCorners

public double[] getCorners()

setCorners

public void setCorners(double[] corners)

draw

public void draw(MoebiusGraphics g)
Specified by:
draw in interface MoebiusShape

getTools

public java.util.Vector getTools()
Specified by:
getTools in interface MoebiusShape

toString

public java.lang.String toString()