|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--fcmodeler.view.figures.TinyRectangleNodeShape
... is ...
| Constructor Summary | |
TinyRectangleNodeShape()
Creates a new TinyRectangleNodeShape with coordinates (0,0), zero width, and zero height. |
|
TinyRectangleNodeShape(double x,
double y,
double w,
double h)
Creates a new TinyRectangleNodeShape with the specified coordinates, width, and height. |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of this TinyRectangleNodeShape. |
void |
enclose(java.awt.geom.Rectangle2D rectangle)
Ensures that this TinyRectangleNodeShape completely encloses the specified
rectangle. |
java.awt.Shape |
getShape()
Returns the Shape object represented by this TinyRectangleNodeShape. |
void |
position(double x,
double y)
Positions this TinyRectangleNodeShape at the specified coordinates. |
java.lang.String |
toString()
|
void |
transform(java.awt.geom.AffineTransform transform)
Transforms this TinyRectangleNodeShape using the specified AffineTransform. |
void |
translate(double dx,
double dy)
Translates this TinyRectangleNodeShape by the specified x and y values. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TinyRectangleNodeShape()
public TinyRectangleNodeShape(double x,
double y,
double w,
double h)
x - the x-coordinate of this TinyRectangleNodeShape.y - the y-coordinate of this TinyRectangleNodeShape.w - the width of this TinyRectangleNodeShape.h - the height of this TinyRectangleNodeShape.| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
TinyRectangleNodeShape. The returned
Object is guaranteed to be of type TinyRectangleNodeShape
and is also guaranteed to have copies of any mutable fields of this object.clone in interface NodeShapeclone in class java.lang.ObjectTinyRectangleNodeShape.java.lang.CloneNotSupportedException - should never be thrown, as this class extends Object and implements
Cloneable by implementing NodeShape.public void enclose(java.awt.geom.Rectangle2D rectangle)
TinyRectangleNodeShape completely encloses the specified
rectangle.enclose in interface NodeShaperectangle - the rectangle to enclose.public java.awt.Shape getShape()
Shape object represented by this TinyRectangleNodeShape.getShape in interface NodeShapeShape object represented by this TinyRectangleNodeShape.
public void position(double x,
double y)
TinyRectangleNodeShape at the specified coordinates. Note that calling
this method may create a new Shape instance. Therefore, a new call
to getShape may be necessary after calling this method.position in interface NodeShapex - the x-coordinate of the new position.y - the y-coordinate of the new position.public java.lang.String toString()
toString in class java.lang.Objectpublic void transform(java.awt.geom.AffineTransform transform)
Transforms this TinyRectangleNodeShape using the specified AffineTransform.
Note that calling this method may create a new Shape instance. Therefore,
a new call to getShape may be necessary after calling this method.
This method will throw an UnsupportedOperationException
until a way to modify a Rectangle2D.Double based on the specified
AffineTransform is found.
transform in interface NodeShapetransform - the AffineTransform used to transform this TinyRectangleNodeShape object.
public void translate(double dx,
double dy)
TinyRectangleNodeShape by the specified x and y values. Note that calling
this method may create a new Shape instance. Therefore, a new call
to getShape may be necessary after calling this method.translate in interface NodeShapedx - the amount to translate the x direction.dy - the amount to translate in the y direction.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||