|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.gui.conceptmap.tool.DragTool
jcreek.gui.conceptmap.tool.BuildTool
Field Summary |
Fields inherited from class jcreek.gui.conceptmap.tool.DragTool |
firstMousePos, lastMousePos, movingEntities, pressVertex, wasPressed, view |
Constructor Summary | |
BuildTool()
Creates a new BuildTool. |
|
BuildTool(ConceptMapView conceptMapView)
Creates a new BuildTool and registers it with this ConceptMapView. |
Method Summary | |
void |
attach(ConceptMapView view)
|
protected void |
continueMakeRelation(int x,
int y)
|
protected void |
createVisualEntity(int x,
int y)
|
void |
detach()
|
boolean |
getAllowNewEntities()
Returns true if this tools is allowed to make new entities. |
RelationType |
getCurrentRelationType()
Returns the current relation type used when making new relations. |
javax.swing.Action |
getRemoveAction()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent me)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent me)
|
void |
mouseReleased(java.awt.event.MouseEvent me)
|
void |
paintTool(java.awt.Graphics g)
|
protected void |
removeSelection()
|
void |
setAllowNewEntities(boolean allowEntities)
Sets if this tools is allowed to create new entities or not. |
void |
setCurrentRelationType(RelationType drawType)
Sets the current relation type to be drawn when creating new relations. |
protected void |
startMakeRelation(int x,
int y)
|
protected void |
stopMakeRelation()
|
Methods inherited from class jcreek.gui.conceptmap.tool.DragTool |
continueDrag, detatch, startDrag, stopDrag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BuildTool()
public BuildTool(ConceptMapView conceptMapView)
conceptMapView
- The ConceptMapView to add this tool to.Method Detail |
public void attach(ConceptMapView view)
attach
in interface ConceptMapTool
attach
in class DragTool
public javax.swing.Action getRemoveAction()
public void detach()
public void setCurrentRelationType(RelationType drawType)
drawType
- The RelationType to make when drawing new relations.public RelationType getCurrentRelationType()
public void setAllowNewEntities(boolean allowEntities)
allowEntities
- If true, new entities are allowed to be made, if false, not.public boolean getAllowNewEntities()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class DragTool
public void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class DragTool
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class DragTool
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class DragTool
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class DragTool
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class DragTool
public void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class DragTool
protected void removeSelection()
protected void startMakeRelation(int x, int y)
protected void continueMakeRelation(int x, int y)
protected void stopMakeRelation()
protected void createVisualEntity(int x, int y)
public void paintTool(java.awt.Graphics g)
paintTool
in interface ConceptMapTool
paintTool
in class DragTool
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |