Synergy Home Page

au.edu.swin.synergy.shapes
Class BEllipse

java.lang.Object
  |
  +--au.edu.swin.synergy.plugin.diagram.BDrawable
        |
        +--au.edu.swin.synergy.shapes.BRectShape
              |
              +--au.edu.swin.synergy.shapes.BEllipse

public class BEllipse
extends BRectShape
implements BSaveable

See Also:
Serialized Form

Field Summary
static String kName
           
 
Fields inherited from class au.edu.swin.synergy.shapes.BRectShape
doFill, doOutline, fillColour, kDefaultDoFill, kDefaultDoOutline, kDefaultFillColor, kDefaultLineColor, kDefaultOutlineColor, kDefaultShapeStyle, kDefaultStrokeCap, kDefaultStrokeJoin, kDefaultStrokeLimit, kDefaultStrokePhase, kDefaultStrokeWidth, kDefaultUseFillColor, kDefaultUseOutlineColor, kKeyDoFill, kKeyDoOutline, kKeyFillColor, kKeyLineColor, kKeyOutlineColor, kKeyShapeStyle, kKeyStrokeCap, kKeyStrokeDash, kKeyStrokeJoin, kKeyStrokeLimit, kKeyStrokePhase, kKeyStrokeWidth, kKeyUseFillColor, kKeyUseOutlineColor, lineColour, lineSize, local, outlineColour, shapeStyle, sizerNum, stroke, tmpXformed, useFillColour, useOutlineColour, xformed
 
Fields inherited from class au.edu.swin.synergy.plugin.diagram.BDrawable
bounds, iconOOZ, kBackward, kDefaultName, kDefaultStatus, kEmptyFlag, kForward, kHighlightFlag, kHitBounds, kHitSizer, kKeyName, kKeyStatus, kNotHit, kSelectedFlag, kSizerCtrlPoint1, kSizerCtrlPoint2, kSizerEndArc, kSizerHalfH, kSizerHalfW, kSizerNorthEast, kSizerNorthWest, kSizerSouthEast, kSizerSouthWest, kSizerStartArc, lastFrame, name, paintCount, pos, sizerColour, statusFlag, tmpBounds
 
Constructor Summary
  BEllipse()
           
protected BEllipse(BEllipse ellipse)
           
  BEllipse(int x, int y, int w, int h)
           
 
Method Summary
 String getName()
          Returns the name of this drawable object
 boolean load(BDataFile file)
          Loads the ellipse from a datafile
 BDrawable newInstance()
          Creates and returns a new instance of the BDrawable object
 void renderFill(Graphics2D g2)
           
 void renderShape(Graphics2D g2)
          Renders the transformed coordinates of the drawable object to a Graphics2D
 boolean save(BDataFile file)
          Saves the ellipse to a datafile
 
Methods inherited from class au.edu.swin.synergy.shapes.BRectShape
checkSizerHit, checkXFormBounds, copy, dragAdd, dragResize, getFillColour, getLineColour, getPropertyPanel, getStroke, getStyle, paintIcon, render, renderOutlineAndSizers, renderRect, renderRectShape, setDoFill, setFillColour, setHighlighted, setLineColour, setLocalBounds, setLocalWH, setLocalXY, setOutlineColour, setSelected, setStroke, setStyle, startAdd, startResize, stopAdd, stopResize, transform, updateBounds
 
Methods inherited from class au.edu.swin.synergy.plugin.diagram.BDrawable
checkXFormHit, contains, continueAdd, copy, delete, doPasted, dragMove, getBasicStroke, getBounds, getColour, getIconHeight, getIconWidth, getPos, incPos, intersects, isDeletable, isHighlighted, isInside, isSelected, isStatusFlag, isTransformed, setFlag, setName, setPos, setPos, snapToGrid, startMove, stopMove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kName

public static final String kName
Constructor Detail

BEllipse

public BEllipse(int x,
                int y,
                int w,
                int h)

BEllipse

public BEllipse()

BEllipse

protected BEllipse(BEllipse ellipse)
Method Detail

renderFill

public void renderFill(Graphics2D g2)
Overrides:
renderFill in class BRectShape

renderShape

public void renderShape(Graphics2D g2)
Renders the transformed coordinates of the drawable object to a Graphics2D
Parameters:
Graphics2D - g2 - the place to render the object to.
Overrides:
renderShape in class BRectShape

newInstance

public BDrawable newInstance()
Creates and returns a new instance of the BDrawable object
Returns:
a new instance of this BDrawable object.
Overrides:
newInstance in class BRectShape

getName

public String getName()
Returns the name of this drawable object
Returns:
String - the name of the object..
Overrides:
getName in class BDrawable

save

public boolean save(BDataFile file)
Saves the ellipse to a datafile
Specified by:
save in interface BSaveable
Parameters:
file - the datafile to save the ellipse to
Overrides:
save in class BRectShape

load

public boolean load(BDataFile file)
Loads the ellipse from a datafile
Specified by:
load in interface BSaveable
Parameters:
file - the datafile to load the ellipse from
Overrides:
load in class BRectShape

Synergy Home Page