org.argouml.uml.diagram.use_case.ui
Class FigUseCase.FigMyCircle

java.lang.Object
  extended byorg.tigris.gef.presentation.Fig
      extended byorg.tigris.gef.presentation.FigCircle
          extended byorg.argouml.uml.diagram.use_case.ui.FigUseCase.FigMyCircle
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, org.tigris.gef.ui.PopupGenerator, java.beans.PropertyChangeListener, java.io.Serializable
Enclosing class:
FigUseCase

public class FigUseCase.FigMyCircle
extends org.tigris.gef.presentation.FigCircle

FigMyCircle is a FigCircle with corrected connectionPoint method: this methods calculates where a connected edge ends.

See Also:
Serialized Form

Field Summary
protected  org.apache.log4j.Category cat
           
 
Fields inherited from class org.tigris.gef.presentation.FigCircle
_isDashed, CIRCLE_ADJUST_RADIUS
 
Fields inherited from class org.tigris.gef.presentation.Fig
_allowsSaving, _context, _dashes, _displayed, _fillColor, _filled, _group, _h, _layer, _lineColor, _lineWidth, _locked, _resource, _shown, _w, _x, _y, an, annotationOwner, annotationStatus, BORDER, DASH_ARRAYS, DASHED_CHOICES, MIN_SIZE
 
Constructor Summary
FigUseCase.FigMyCircle(int x, int y, int w, int h, java.awt.Color lColor, java.awt.Color fColor)
          Constructor just invokes the parent constructor.
 
Method Summary
 java.awt.Point connectionPoint(java.awt.Point anotherPt)
          Compute the border point of the elipse that is on the edge between the stored upper left corner and the given parameter.
 
Methods inherited from class org.tigris.gef.presentation.FigCircle
contains, paint
 
Methods inherited from class org.tigris.gef.presentation.Fig
addAnnotation, addPoint, addPropertyChangeListener, align, calcBounds, center, classNameAndBounds, cleanUp, clone, contains, contains, countCornersContained, createDrag, damage, delete, dispose, drawDashedLine, drawDashedPerimeter, endTrans, firePropChange, firePropChange, firePropChange, getAnnotationOwner, getAnnotationStrategy, getBounds, getClosestPoint, getContext, getDashed, getDashed01, getDashedString, getEnclosedFigs, getEnclosingFig, getFillColor, getFilled, getFilled01, getFirstPoint, getGravityPoints, getGroup, getHalfHeight, getHalfWidth, getHandleBox, getHeight, getId, getLastPoint, getLayer, getLineColor, getLineWidth, getLocation, getLocked, getMinimumSize, getNumPoints, getOwner, getPerimeterLength, getPoints, getPoints, getPopUpActions, getPreferedSize, getPrivateData, getResource, getSize, getTipString, getTrapRect, getUseTrapRect, getVisState, getWidth, getX, getXs, getY, getYs, hit, initAnnotations, insertPoint, intersects, isAnnotation, isDisplayed, isLowerRightResizable, isMovable, isReshapable, isResizable, isRotatable, makeSelection, OK, pointAlongPerimeter, postLoad, postSave, preSave, print, propertyChange, removeAnnotation, removeAnnotation, removePoint, removePropertyChangeListener, reorder, routingRect, savingAllowed, setAnnotationOwner, setAnnotationStatus, setAnnotationStrategy, setBounds, setBounds, setCenter, setContext, setDashed, setDashedString, setDisplayed, setEnclosingFig, setFillColor, setFilled, setGroup, setHandleBox, setHeight, setLayer, setLineColor, setLineWidth, setLocation, setLocation, setLocked, setNumPoints, setOwner, setPoints, setPoints, setPoints, setPoints, setPoints, setPrivateData, setResource, setSavingAllowed, setSize, setSize, setVisState, setWidth, setX, setXs, setY, setYs, startTrans, stuffBounds, stuffPointAlongPerimeter, translate, unsetAnnotationOwner, updateAnnotationPositions, updateVisState, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected org.apache.log4j.Category cat
Constructor Detail

FigUseCase.FigMyCircle

public FigUseCase.FigMyCircle(int x,
                              int y,
                              int w,
                              int h,
                              java.awt.Color lColor,
                              java.awt.Color fColor)

Constructor just invokes the parent constructor.

Parameters:
x - X coordinate of the upper left corner of the bounding box.
y - Y coordinate of the upper left corner of the bounding box.
w - Width of the bounding box.
h - Height of the bounding box.
lColor - Line colour of the fig.
fColor - Fill colour of the fig.
Method Detail

connectionPoint

public java.awt.Point connectionPoint(java.awt.Point anotherPt)

Compute the border point of the elipse that is on the edge between the stored upper left corner and the given parameter.

Parameters:
anotherPt - The remote point to which an edge is drawn.
Returns:
The connection point on the boundary of the elipse.


ArgoUML © 1996-2003 (20040125)ArgoUML Project HomeArgoUML Cookbook