public class GraphMouseListener
extends java.lang.Object
implements java.awt.event.MouseMotionListener, java.awt.event.MouseListener
Constructor and Description |
---|
GraphMouseListener(OCBCModel model,
ModelLayoutBuilder builder,
org.jgraph.JGraph graph) |
Modifier and Type | Method and Description |
---|---|
void |
addEditorPanel(EditorPanel editorPanel) |
void |
addGraphPanel(GraphPanel graphPanel) |
void |
addInformationPanel(InformationPanel informationPanel) |
boolean |
drawEdge(MyOriginalCell firstlyFocusedCell,
int firstX,
int firstY,
MyOriginalCell secondlyFocusedCell,
int secondX,
int secondY) |
boolean |
drawNode(int x,
int y) |
EditorPanel |
getEditorPanel() |
java.lang.String |
getElementType() |
java.lang.String |
getPreviouslyElementType() |
javax.swing.JButton |
getPreviouslySelectedButton() |
java.util.UUID |
getPreviouslySelectedID() |
javax.swing.JButton |
getSelectedButton() |
MyOriginalCell |
getSelectedCell() |
java.util.UUID |
getSelectedID() |
void |
mouseClicked(java.awt.event.MouseEvent arg0) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
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 e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
setElementType(java.lang.String elementType)
Sets the selected elementType, can be used for variables and originators (it will raise a mousePressed event)
|
void |
setSelectedButton(javax.swing.JButton focusedButton)
Sets the selected ID, can be used for variables and originators (it will raise a mousePressed event)
|
void |
setSelectedCell(MyOriginalCell cell) |
void |
setSelectedID(java.util.UUID newID) |
void |
updateGraph(org.jgraph.JGraph graph) |
public GraphMouseListener(OCBCModel model, ModelLayoutBuilder builder, org.jgraph.JGraph graph)
public void addGraphPanel(GraphPanel graphPanel)
public void addInformationPanel(InformationPanel informationPanel)
public void addEditorPanel(EditorPanel editorPanel)
public void updateGraph(org.jgraph.JGraph graph)
public EditorPanel getEditorPanel()
public java.util.UUID getSelectedID()
public java.util.UUID getPreviouslySelectedID()
public void setSelectedButton(javax.swing.JButton focusedButton)
newID
- public javax.swing.JButton getSelectedButton()
public void setSelectedCell(MyOriginalCell cell)
public MyOriginalCell getSelectedCell()
public javax.swing.JButton getPreviouslySelectedButton()
public void setSelectedID(java.util.UUID newID)
public java.lang.String getElementType()
public java.lang.String getPreviouslyElementType()
public void setElementType(java.lang.String elementType)
newID
- public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public boolean drawNode(int x, int y)
public boolean drawEdge(MyOriginalCell firstlyFocusedCell, int firstX, int firstY, MyOriginalCell secondlyFocusedCell, int secondX, int secondY)
public void mouseClicked(java.awt.event.MouseEvent arg0)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener