sm
Class SMEllipse

java.lang.Object
  extended bysm.SMShape
      extended bysm.SMRectangularShape
          extended bysm.SMEllipse
All Implemented Interfaces:
java.lang.Cloneable, InteractiveObject

public class SMEllipse
extends SMRectangularShape

An ellipse 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.

Author:
Caroline Appert

Field Summary
 
Fields inherited from class sm.SMShape
cptId
 
Constructor Summary
SMEllipse()
          Builds an empty SMEllipse.
SMEllipse(double x, double y, double w, double h)
          Builds a SMEllipse.
SMEllipse(double x, double y, double w, double h, java.awt.Paint p)
          Builds a SMEllipse.
SMEllipse(double x, double y, double w, double h, java.awt.Paint p, java.awt.Paint o)
          Builds a SMEllipse.
SMEllipse(double x, double y, double w, double h, java.awt.Paint p, java.awt.Paint o, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(double x, double y, double w, double h, java.awt.Paint p, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(double x, double y, double w, double h, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(java.awt.Paint p)
          Builds an empty SMEllipse.
SMEllipse(java.awt.Paint p, java.awt.Paint o)
          Builds an empty SMEllipse.
SMEllipse(java.awt.Paint p, java.awt.Paint o, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(java.awt.Paint p, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(java.awt.geom.Point2D point, double w, double h)
          Builds a SMEllipse.
SMEllipse(java.awt.geom.Point2D point, double w, double h, java.awt.Paint p)
          Builds a SMEllipse.
SMEllipse(java.awt.geom.Point2D point, double w, double h, java.awt.Paint p, java.awt.Paint o)
          Builds a SMEllipse.
SMEllipse(java.awt.geom.Point2D point, double w, double h, java.awt.Paint p, java.awt.Paint o, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(java.awt.geom.Point2D point, double w, double h, java.awt.Paint p, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(java.awt.geom.Point2D point, double w, double h, java.awt.Stroke str)
          Builds a SMEllipse.
SMEllipse(java.awt.Stroke str)
          Builds an empty SMEllipse.
 
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 sm.SMShape
above, aboveAll, addChild, addGhost, addTag, addTag, addTag, addTo, asEllipse, asImage, asPolyLine, asRectangle, asRectangularShape, asText, attachSM, below, belowAll, canvasToShape, clone, contains, contains, contains, contains, containsPoint, containsPoint, copyTo, detachSM, equals, getAbsShape, getAbsTransform, getBoundingBox, getCanvas, getCenterX, getCenterY, getChildren, getClip, getFillPaint, getHeight, getHierarchy, getID, getMaxX, getMaxY, getMinX, getMinY, getOutlinePaint, getParent, getReferenceX, getReferenceY, getRotation, getScaleX, getScaleY, getShape, getStroke, getTransform, getTranslateX, getTranslateY, getTransparency, getWidth, hasTag, hasTag, intersects, intersects, isAbove, isAntialiased, isBelow, isDrawable, isEmpty, isFilled, isOnOutline, isOutlined, isPickable, paint, remove, removeChild, removeGhost, removeTag, removeTag, rotateBy, rotateTo, scaleBy, scaleBy, scaleTo, scaleTo, setAntialiased, setClip, setDrawable, setFilled, setFillPaint, setOutlined, setOutlinePaint, setParent, setPickable, setReferencePoint, setShape, setStroke, setTransparency, shapeToCanvas, translateBy, translateTo
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMEllipse

public SMEllipse()
Builds an empty SMEllipse.


SMEllipse

public SMEllipse(java.awt.Paint p,
                 java.awt.Paint o,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
p - The fill paint style
o - The outline paint style
str - The stroke style

SMEllipse

public SMEllipse(java.awt.Paint p,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
p - The fill paint style
str - The stroke style

SMEllipse

public SMEllipse(java.awt.geom.Point2D point,
                 double w,
                 double h,
                 java.awt.Paint p,
                 java.awt.Paint o,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
point - The upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The fill paint style
o - The outline paint style
str - The stroke style

SMEllipse

public SMEllipse(double x,
                 double y,
                 double w,
                 double h,
                 java.awt.Paint p,
                 java.awt.Paint o,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
x - The x coordinate of the upper left point of the bounding box
y - The y coordinate of the upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The fill paint style
o - The outline paint style
str - The stroke style

SMEllipse

public SMEllipse(java.awt.geom.Point2D point,
                 double w,
                 double h,
                 java.awt.Paint p,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
point - The upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The fill paint style
str - The stroke style

SMEllipse

public SMEllipse(double x,
                 double y,
                 double w,
                 double h,
                 java.awt.Paint p,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
x - The x coordinate of the upper left point of the bounding box
y - The y coordinate of the upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The fill paint style
str - The stroke style

SMEllipse

public SMEllipse(java.awt.Paint p,
                 java.awt.Paint o)
Builds an empty SMEllipse.

Parameters:
p - The paint style
o - The outline paint style

SMEllipse

public SMEllipse(java.awt.Paint p)
Builds an empty SMEllipse.

Parameters:
p - The paint style

SMEllipse

public SMEllipse(double x,
                 double y,
                 double w,
                 double h,
                 java.awt.Paint p,
                 java.awt.Paint o)
Builds a SMEllipse.

Parameters:
x - The x coordinate of the upper left point of the bounding box
y - The y coordinate of the upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The paint style
o - The outline paint style

SMEllipse

public SMEllipse(java.awt.geom.Point2D point,
                 double w,
                 double h,
                 java.awt.Paint p,
                 java.awt.Paint o)
Builds a SMEllipse.

Parameters:
point - The upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The fill paint style
o - The outline paint style

SMEllipse

public SMEllipse(double x,
                 double y,
                 double w,
                 double h,
                 java.awt.Paint p)
Builds a SMEllipse.

Parameters:
x - The x coordinate of the upper left point of the bounding box
y - The y coordinate of the upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The paint style

SMEllipse

public SMEllipse(java.awt.geom.Point2D point,
                 double w,
                 double h,
                 java.awt.Paint p)
Builds a SMEllipse.

Parameters:
point - The upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
p - The fill paint style

SMEllipse

public SMEllipse(java.awt.Stroke str)
Builds an empty SMEllipse.

Parameters:
str - The stroke style

SMEllipse

public SMEllipse(java.awt.geom.Point2D point,
                 double w,
                 double h,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
point - The upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
str - The stroke style

SMEllipse

public SMEllipse(double x,
                 double y,
                 double w,
                 double h,
                 java.awt.Stroke str)
Builds a SMEllipse.

Parameters:
x - The x coordinate of the upper left point of the bounding box
y - The y coordinate of the upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
str - The stroke style

SMEllipse

public SMEllipse(java.awt.geom.Point2D point,
                 double w,
                 double h)
Builds a SMEllipse.

Parameters:
point - The upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box

SMEllipse

public SMEllipse(double x,
                 double y,
                 double w,
                 double h)
Builds a SMEllipse.

Parameters:
x - The x coordinate of the upper left point of the bounding box
y - The y coordinate of the upper left point of the bounding box
w - The width of the bounding box
h - The height of the bounding box
Method Detail

duplicate

public SMShape duplicate()
Creates a new copy of this shape and returns it.

Overrides:
duplicate in class SMShape
Returns:
Returns the copy.