|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CH.ifa.draw.standard.AbstractTool | +--org.objectweb.jac.ide.diagrams.AbstractTool | +--org.objectweb.jac.ide.diagrams.RelationLinkCreationTool
Field Summary |
Fields inherited from class CH.ifa.draw.standard.AbstractTool |
fAnchorX, fAnchorY |
Constructor Summary | |
RelationLinkCreationTool(CH.ifa.draw.framework.DrawingEditor newDrawingEditor)
|
Method Summary | |
protected LinkFigure |
createLinkFigure()
|
protected void |
createRelation(Class source,
Class target)
Create a RelationLink between two classes. |
void |
deactivate()
|
protected CH.ifa.draw.framework.ConnectionFigure |
findConnection(int x,
int y,
CH.ifa.draw.framework.Drawing drawing)
Finds an existing connection figure. |
protected CH.ifa.draw.framework.Figure |
findConnectionStart(int x,
int y,
CH.ifa.draw.framework.Drawing drawing)
Finds a connection start figure. |
protected CH.ifa.draw.framework.Figure |
findSource(int x,
int y,
CH.ifa.draw.framework.Drawing drawing)
Finds a connectable figure target. |
protected ModelElementFigure |
findTarget(int x,
int y,
CH.ifa.draw.framework.Drawing drawing)
Finds a connectable figure target. |
void |
mouseDown(MouseEvent e,
int x,
int y)
Manipulates connections in a context dependent way. |
void |
mouseDrag(MouseEvent e,
int x,
int y)
Adjust the created connection or split segment. |
void |
mouseMove(MouseEvent e,
int x,
int y)
Handles mouse move events in the drawing view. |
void |
mouseUp(MouseEvent e,
int x,
int y)
Connects the figures if the mouse is released over another figure. |
protected void |
trackConnectors(MouseEvent e,
int x,
int y)
|
Methods inherited from class org.objectweb.jac.ide.diagrams.AbstractTool |
diagramView, isActive |
Methods inherited from class CH.ifa.draw.standard.AbstractTool |
activate, addToolListener, checkUsable, createEventDispatcher, drawing, editor, getEventDispatcher, isEnabled, isUsable, keyDown, 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 |
public RelationLinkCreationTool(CH.ifa.draw.framework.DrawingEditor newDrawingEditor)
Method Detail |
public void mouseMove(MouseEvent e, int x, int y)
mouseMove
in interface CH.ifa.draw.framework.Tool
mouseMove
in class CH.ifa.draw.standard.AbstractTool
public void mouseDown(MouseEvent e, int x, int y)
mouseDown
in interface CH.ifa.draw.framework.Tool
mouseDown
in class CH.ifa.draw.standard.AbstractTool
protected LinkFigure createLinkFigure()
public void mouseDrag(MouseEvent e, int x, int y)
mouseDrag
in interface CH.ifa.draw.framework.Tool
mouseDrag
in class CH.ifa.draw.standard.AbstractTool
public void mouseUp(MouseEvent e, int x, int y)
mouseUp
in interface CH.ifa.draw.framework.Tool
mouseUp
in class CH.ifa.draw.standard.AbstractTool
protected void createRelation(Class source, Class target)
source
- start class of the linktarget
- end class of the linkpublic void deactivate()
deactivate
in interface CH.ifa.draw.framework.Tool
deactivate
in class CH.ifa.draw.standard.AbstractTool
protected CH.ifa.draw.framework.Figure findSource(int x, int y, CH.ifa.draw.framework.Drawing drawing)
protected ModelElementFigure findTarget(int x, int y, CH.ifa.draw.framework.Drawing drawing)
protected CH.ifa.draw.framework.ConnectionFigure findConnection(int x, int y, CH.ifa.draw.framework.Drawing drawing)
protected void trackConnectors(MouseEvent e, int x, int y)
protected CH.ifa.draw.framework.Figure findConnectionStart(int x, int y, CH.ifa.draw.framework.Drawing drawing)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |