|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsm.SMShape
sm.SMRectangularShape
An abstract rectangular shape for use with an SMCanvas.
SMRectangularShape is the base class for SMEllipse and SMEllipseSMRectangle,
it provides methods to manipulate those shapes by their rectangular bounding box.
| Field Summary |
| Fields inherited from class sm.SMShape |
cptId |
| Constructor Summary | |
SMRectangularShape(java.awt.Shape s)
Builds a rectangular shape. |
|
SMRectangularShape(java.awt.Shape s,
java.awt.Paint p)
Builds a rectangular shape. |
|
SMRectangularShape(java.awt.Shape s,
java.awt.Paint p,
java.awt.Paint o)
Builds a rectangular shape. |
|
SMRectangularShape(java.awt.Shape s,
java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
Builds a rectangular shape. |
|
SMRectangularShape(java.awt.Shape s,
java.awt.Paint p,
java.awt.Stroke str)
Builds a rectangular shape. |
|
SMRectangularShape(java.awt.Shape s,
java.awt.Stroke str)
Builds a rectangular shape. |
|
| Method Summary | |
SMRectangularShape |
setBoundingBox(double minx,
double miny,
double width,
double height)
Define this rectangular shape by its bounding box. |
SMRectangularShape |
setBoundingBox(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
Define this rectangular shape by its bounding box. |
SMRectangularShape |
setDiagonal(double x1,
double y1,
double x2,
double y2)
Define this rectangular shape by its diagonal. |
SMRectangularShape |
setDiagonal(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
Define this rectangular shape by its diagonal. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SMRectangularShape(java.awt.Shape s)
s - The shape (Rectangle2D or Ellipse2D)
public SMRectangularShape(java.awt.Shape s,
java.awt.Paint p,
java.awt.Paint o,
java.awt.Stroke str)
s - The shape (Rectangle2D or Ellipse2D)p - The fill paint styleo - The outline paint stylestr - The stroke style
public SMRectangularShape(java.awt.Shape s,
java.awt.Paint p,
java.awt.Stroke str)
s - The shape (Rectangle2D or Ellipse2D)p - The fill paint stylestr - The stroke style
public SMRectangularShape(java.awt.Shape s,
java.awt.Paint p,
java.awt.Paint o)
s - The shape (Rectangle2D or Ellipse2D)p - The paint styleo - The outline paint style
public SMRectangularShape(java.awt.Shape s,
java.awt.Paint p)
s - The shape (Rectangle2D or Ellipse2D)p - The paint style
public SMRectangularShape(java.awt.Shape s,
java.awt.Stroke str)
s - The shape (Rectangle2D or Ellipse2D)str - The stroke style| Method Detail |
public SMRectangularShape setBoundingBox(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
p1 - One corner of the diagonal of the bounding box.p2 - The other corner of the diagonal of the bounding box.
public SMRectangularShape setBoundingBox(double minx,
double miny,
double width,
double height)
minx - The x coordinate of the upper left corner of the bounding box.miny - The y coordinate of the upper left corner of the bounding box.width - The width of the bounding box.height - The height of the bounding box.
public SMRectangularShape setDiagonal(double x1,
double y1,
double x2,
double y2)
x1 - The x coordinate of one corner of the diagonal.y1 - The y coordinate of one corner of the diagonal.x2 - The x coordinate of the other corner of the diagonal.y2 - The y coordinate of the other corner of the diagonal.
public SMRectangularShape setDiagonal(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
p1 - One corner of the diagonal.p2 - The other corner of the diagonal.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||