JHotDraw 6.0b1

org.jhotdraw.samples.offsetConnectors
Class MyEllipseFigure

java.lang.Object
  extended by org.jhotdraw.standard.AbstractFigure
      extended by org.jhotdraw.figures.AttributeFigure
          extended by org.jhotdraw.figures.EllipseFigure
              extended by org.jhotdraw.samples.offsetConnectors.MyEllipseFigure
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Figure, Storable

public class MyEllipseFigure
extends EllipseFigure

See Also:
Serialized Form

Constructor Summary
MyEllipseFigure()
           
 
Method Summary
 Connector connectorAt(int x, int y)
          Returns the Figures connector for the specified location.
 void draw(java.awt.Graphics g)
          Draws the figure in the given graphics.
 
Methods inherited from class org.jhotdraw.figures.EllipseFigure
basicDisplayBox, basicMoveBy, connectionInsets, displayBox, drawBackground, drawFrame, handles, read, write
 
Methods inherited from class org.jhotdraw.figures.AttributeFigure
getAttribute, getAttribute, getDefaultAttribute, getDefaultAttribute, getFillColor, getFrameColor, initDefaultAttribute, setAttribute, setAttribute, setDefaultAttribute
 
Methods inherited from class org.jhotdraw.standard.AbstractFigure
addDependendFigure, addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, includes, invalidate, invalidateRectangle, isEmpty, listener, moveBy, release, removeDependendFigure, removeFigureChangeListener, removeFromContainer, setZValue, size, visit, willChange
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyEllipseFigure

public MyEllipseFigure()
Method Detail

draw

public void draw(java.awt.Graphics g)
Description copied from class: AttributeFigure
Draws the figure in the given graphics. Draw is a template method calling drawBackground followed by drawFrame.

Specified by:
draw in interface Figure
Overrides:
draw in class AttributeFigure
Parameters:
g - the Graphics to draw into

connectorAt

public Connector connectorAt(int x,
                             int y)
Description copied from class: AbstractFigure
Returns the Figures connector for the specified location. By default a ChopBoxConnector is returned.

Specified by:
connectorAt in interface Figure
Overrides:
connectorAt in class EllipseFigure
See Also:
ChopBoxConnector

JHotDraw 6.0b1