|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsm.SMShape
sm.SMRectangularShape
sm.SMRectangle
A rectangle shape for use with an SMCanvas.
If filled, the fill paint is used to paint the interior.
If outlined, the outline paint and stroke are used to draw the boundary.
| Field Summary |
| Fields inherited from class sm.SMShape |
cptId |
| Constructor Summary | |
SMRectangle()
Builds an empty SMRectangle. |
|
SMRectangle(double x,
double y,
double w,
double h)
Builds an SMRectangle. |
|
SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p)
Builds an SMRectangle. |
|
SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o)
Builds an SMRectangle. |
|
SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
Builds a SMRectangle. |
|
SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p,
java.awt.Stroke str)
Builds a SMRectangle. |
|
SMRectangle(double x,
double y,
double w,
double h,
java.awt.Stroke str)
Builds an SMRectangle. |
|
SMRectangle(java.awt.Paint p)
Builds an empty SMRectangle. |
|
SMRectangle(java.awt.Paint p,
java.awt.Paint o)
Builds an empty SMRectangle. |
|
SMRectangle(java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
Builds a SMRectangle. |
|
SMRectangle(java.awt.Paint p,
java.awt.Stroke str)
Builds a SMRectangle. |
|
SMRectangle(java.awt.geom.Point2D point,
double w,
double h)
Builds an SMRectangle. |
|
SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p)
Builds an SMRectangle. |
|
SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o)
Builds an SMRectangle. |
|
SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
Builds a SMRectangle. |
|
SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p,
java.awt.Stroke str)
Builds a SMRectangle. |
|
SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Stroke str)
Builds an SMRectangle. |
|
SMRectangle(java.awt.Stroke str)
Builds an empty SMRectangle. |
|
| Method Summary | |
SMShape |
duplicate()
Creates a new copy of this shape and returns it. |
| Methods inherited from class sm.SMRectangularShape |
setBoundingBox, setBoundingBox, setDiagonal, setDiagonal |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SMRectangle()
public SMRectangle(java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
p - The fill paint styleo - The outline paint stylestr - The stroke style
public SMRectangle(java.awt.Paint p,
java.awt.Stroke str)
p - The fill paint stylestr - The stroke style
public SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
point - The upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The fill paint styleo - The outline paint stylestr - The stroke style
public SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
x - The x coordinate of the upper left point of the bounding boxy - The y coordinate of the upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The fill paint styleo - The outline paint stylestr - The stroke style
public SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p,
java.awt.Stroke str)
point - The upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The fill paint stylestr - The stroke style
public SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p,
java.awt.Stroke str)
x - The x coordinate of the upper left point of the bounding boxy - The y coordinate of the upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The fill paint stylestr - The stroke style
public SMRectangle(java.awt.Paint p,
java.awt.Paint o)
p - The paint styleo - The outline paint stylepublic SMRectangle(java.awt.Paint p)
p - The paint style
public SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o)
point - The upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The fill paint styleo - The outline paint style
public SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p,
java.awt.Paint o)
x - The x coordinate of the upper left point of the bounding boxy - The y coordinate of the upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The paint styleo - The outline paint style
public SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Paint p)
point - The upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The fill paint style
public SMRectangle(double x,
double y,
double w,
double h,
java.awt.Paint p)
x - The x coordinate of the upper left point of the bounding boxy - The y coordinate of the upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxp - The paint stylepublic SMRectangle(java.awt.Stroke str)
str - The stroke style
public SMRectangle(java.awt.geom.Point2D point,
double w,
double h,
java.awt.Stroke str)
point - The upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxstr - The stroke style
public SMRectangle(double x,
double y,
double w,
double h,
java.awt.Stroke str)
x - The x coordinate of the upper left point of the bounding boxy - The y coordinate of the upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding boxstr - The stroke style
public SMRectangle(java.awt.geom.Point2D point,
double w,
double h)
point - The upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding box
public SMRectangle(double x,
double y,
double w,
double h)
x - The x coordinate of the upper left point of the bounding boxy - The y coordinate of the upper left point of the bounding boxw - The width of the bounding boxh - The height of the bounding box| Method Detail |
public SMShape duplicate()
duplicate in class SMShape
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||