org.acm.seguin.uml.line
Class AssociationRelationship

java.lang.Object
  extended by org.acm.seguin.uml.line.SegmentedLine
      extended by org.acm.seguin.uml.line.AssociationRelationship
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener

public class AssociationRelationship
extends SegmentedLine

AssociationRelationship

Author:
Chris Seguin, Mike Atkinson

Field Summary
 
Fields inherited from class org.acm.seguin.uml.line.SegmentedLine
scalingFactor, vertices, Xs, Ys
 
Constructor Summary
AssociationRelationship(EndPointPanel start, EndPointPanel end, UMLField init)
          Constructor for the InheretenceRelationship object
 
Method Summary
 void delete()
          Delete this segmented line
protected  void drawArrow(java.awt.Graphics2D g)
          Draws the arrow and the last segment
 UMLField getField()
          Gets the Field attribute of the AssociationRelationship object
 void save(java.io.PrintWriter output)
          Saves a segmented to the output stream
protected  void updateEnd()
          Updates the location of the end vertex
 
Methods inherited from class org.acm.seguin.uml.line.SegmentedLine
componentHidden, componentMoved, componentResized, componentShown, drag, drop, getArrowPointAbove, getArrowPointBelow, getColor, getEndPanel, getShortPoint, getStartPanel, getStroke, hit, isBothEndsSelected, load, match, paint, saveEndPanel, savePanel, saveStartPanel, saveVertices, scale, select, shift
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationRelationship

public AssociationRelationship(EndPointPanel start,
                               EndPointPanel end,
                               UMLField init)
Constructor for the InheretenceRelationship object

Parameters:
start - Description of Parameter
end - Description of Parameter
init - Description of Parameter
Method Detail

getField

public UMLField getField()
Gets the Field attribute of the AssociationRelationship object

Returns:
The Field value

save

public void save(java.io.PrintWriter output)
Saves a segmented to the output stream

Overrides:
save in class SegmentedLine
Parameters:
output - the output stream

delete

public void delete()
Delete this segmented line


drawArrow

protected void drawArrow(java.awt.Graphics2D g)
Draws the arrow and the last segment

Overrides:
drawArrow in class SegmentedLine
Parameters:
g - the graphics object

updateEnd

protected void updateEnd()
Updates the location of the end vertex

Overrides:
updateEnd in class SegmentedLine