org.objectweb.jac.ide.diagrams
Class RelationLinkShowTool

java.lang.Object
  |
  +--CH.ifa.draw.standard.AbstractTool
        |
        +--org.objectweb.jac.ide.diagrams.AbstractActionTool
              |
              +--org.objectweb.jac.ide.diagrams.RelationLinkShowTool
All Implemented Interfaces:
EventListener, CH.ifa.draw.framework.Tool, CH.ifa.draw.framework.ViewChangeListener

public class RelationLinkShowTool
extends AbstractActionTool

Show an existing relation or inheritance link


Field Summary
 
Fields inherited from class org.objectweb.jac.ide.diagrams.AbstractActionTool
context
 
Fields inherited from class CH.ifa.draw.standard.AbstractTool
fAnchorX, fAnchorY
 
Constructor Summary
RelationLinkShowTool(CH.ifa.draw.framework.DrawingEditor newDrawingEditor, DisplayContext context)
           
 
Method Summary
 void action(CH.ifa.draw.framework.Figure figure)
           
 List relations()
          Returns the list of relations of the current class not yet on the diagram
 void showRelation(Link link)
           
 
Methods inherited from class org.objectweb.jac.ide.diagrams.AbstractActionTool
isActive, mouseDown, mouseUp
 
Methods inherited from class CH.ifa.draw.standard.AbstractTool
activate, addToolListener, checkUsable, createEventDispatcher, deactivate, drawing, editor, getEventDispatcher, isEnabled, isUsable, keyDown, mouseDrag, mouseMove, removeToolListener, setEnabled, setUsable, view, viewCreated, viewDestroying, viewSelectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationLinkShowTool

public RelationLinkShowTool(CH.ifa.draw.framework.DrawingEditor newDrawingEditor,
                            DisplayContext context)
                     throws ClassNotFoundException
Method Detail

relations

public List relations()
Returns the list of relations of the current class not yet on the diagram

Returns:
a list of RelationLink

showRelation

public void showRelation(Link link)
                  throws Exception
Exception

action

public void action(CH.ifa.draw.framework.Figure figure)
Specified by:
action in class AbstractActionTool