moebiusViewer.shape
Class Rectangle
java.lang.Object
moebiusViewer.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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public double x
y
public double y
w
public double w
h
public double h
Rectangle
public Rectangle()
Rectangle
public Rectangle(Rectangle aRectangle)
Rectangle
public Rectangle(double aX,
double aY,
double aW,
double aH)
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()