|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
wt.clients.beans.graph.AbstractGraphView
wt.clients.beans.graph.GraphView
Nested Class Summary | |
(package private) class |
GraphView.GraphLabelComponentMouseListener
|
(package private) class |
GraphView.GraphNodeComponentMouseListener
|
(package private) class |
GraphView.GraphViewActionListener
|
(package private) class |
GraphView.GraphViewMouseListener
|
(package private) class |
GraphView.SymMouse
|
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Fields inherited from class wt.clients.beans.graph.AbstractGraphView |
FOCUSED_COMPONENT, MODEL, SELECTION_MODEL |
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface wt.clients.beans.graph.GraphModelListener |
LINK_INSERTED, LINK_REMOVED, NODE_INSERTED, NODE_REMOVED, STRUCTURE_CHANGED |
Fields inherited from interface wt.clients.beans.graph.GraphSelectionModelListener |
LINK_SELECTED, LINK_UNSELECTED, NODE_SELECTED, NODE_UNSELECTED, SELECTION_CLEARED |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GraphView(boolean edit_mode)
|
Method Summary | |
void |
addNotify()
|
void |
deleteSelected()
|
ActionLoader |
getActionLoader()
Gets the value of the attribute: actionLoader. |
String |
getClickBackgroundAction()
Gets the value of the attribute: clickBackgroundAction. |
String |
getClickLinkAction()
Gets the value of the attribute: clickLinkAction. |
String |
getClickLinkHyperlinkAction()
Gets the value of the attribute: clickLinkHyperlinkAction. |
String |
getClickNodeAction()
Gets the value of the attribute: clickNodeAction. |
String |
getClickNodeHyperlinkAction()
Gets the value of the attribute: clickNodeHyperlinkAction. |
String |
getDblClickBackgroundAction()
Gets the value of the attribute: dblClickBackgroundAction. |
String |
getDblClickLinkAction()
Gets the value of the attribute: dblClickLinkAction. |
String |
getDblClickNodeAction()
Gets the value of the attribute: dblClickNodeAction. |
GraphLink |
getGraphLinkInsert()
|
GraphNode |
getGraphNodeInsert()
|
int |
getMode()
|
PopupMenu |
getPopupMenu()
|
Dimension |
getPreferredSize()
|
void |
graphLinkChanged(PropertyChangeEvent e)
|
void |
graphLinkInserted(GraphModelEvent e)
|
void |
graphLinkRemoved(GraphModelEvent e)
|
void |
graphLinkSelected(GraphSelectionModelEvent e)
|
void |
graphLinkUnselected(GraphSelectionModelEvent e)
|
void |
graphNodeChanged(PropertyChangeEvent e)
|
void |
graphNodeInserted(GraphModelEvent e)
|
void |
graphNodeRemoved(GraphModelEvent e)
|
void |
graphNodeSelected(GraphSelectionModelEvent e)
Satisfy the GraphSelectionModelListener interface. |
void |
graphNodeUnselected(GraphSelectionModelEvent e)
|
void |
graphSelectionCleared(GraphSelectionModelEvent e)
|
void |
graphStructureChanged(GraphModelEvent e)
|
(package private) void |
GraphView_MouseClicked(MouseEvent event)
|
(package private) void |
GraphView_MousePressed(MouseEvent event)
|
(package private) void |
GraphView_MouseReleased(MouseEvent event)
|
(package private) void |
insertGraphLink(GraphLink link)
|
(package private) void |
insertGraphNode(GraphNode node)
Helper methods. |
private boolean |
isLinkAt(GraphLinkComponent link,
MouseEvent event)
|
boolean |
isObjectExisting(Point position)
|
void |
paint(Graphics g)
|
(package private) void |
removeGraphLink(GraphLink link)
|
(package private) void |
removeGraphNode(GraphNode node)
|
void |
setActionLoader(ActionLoader a_ActionLoader)
Sets the value of the attribute: actionLoader. |
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setClickBackgroundAction(String a_ClickBackgroundAction)
Sets the value of the attribute: clickBackgroundAction. |
void |
setClickLinkAction(String a_ClickLinkAction)
Sets the value of the attribute: clickLinkAction. |
void |
setClickLinkHyperlinkAction(String a_ClickLinkHyperlinkAction)
Sets the value of the attribute: clickLinkHyperlinkAction. |
void |
setClickNodeAction(String a_ClickNodeAction)
Sets the value of the attribute: clickNodeAction. |
void |
setClickNodeHyperlinkAction(String a_ClickNodeHyperlinkAction)
Sets the value of the attribute: clickNodeAction. |
void |
setDblClickBackgroundAction(String a_DblClickBackgroundAction)
Sets the value of the attribute: dblClickBackgroundAction. |
void |
setDblClickLinkAction(String a_DblClickLinkAction)
Sets the value of the attribute: dblClickLinkAction. |
void |
setDblClickNodeAction(String a_DblClickNodeAction)
Sets the value of the attribute: dblClickNodeAction. |
void |
setGraphLinkInsert(GraphLink node)
|
void |
setGraphNodeInsert(GraphNode node)
|
void |
setLayout(LayoutManager l)
|
void |
setLinkActionListener(ActionListener l)
|
void |
setMode(int mode)
|
void |
setModel(GraphModel model)
Satisfy the GraphModelListener interface. |
void |
setPopupMenu(PopupMenu popup)
|
void |
setPreviousMode()
|
void |
setStraitLines(boolean strait)
|
void |
update(Graphics g)
|
Methods inherited from class wt.clients.beans.graph.AbstractGraphView |
createDefaultGraphModel, createDefaultGraphSelectionModel, focusGained, focusLost, getFocusedComponent, getModel, getSelectionModel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setFocusedComponent, setSelectionModel |
Methods inherited from class java.awt.Panel |
getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String versionID
Dimension size
Hashtable nodeHashtable
Hashtable linkHashtable
public static final int POINTER
public static final int NODE
public static final int LINK
public static final String CUT
public static final String COPY
public static final String PASTE
public static final String OPEN
GraphNode graphNodeInsert
GraphLink graphLinkInsert
int mode
int previousMode
GraphNodeComponent savedNode
GraphLinkComponent selectedLink
ActionListener graphViewActionListener
ThreadGroup threadGroup
boolean editMode
private String clickBackgroundAction
private String dblClickBackgroundAction
private String clickNodeAction
private String dblClickNodeAction
private String clickNodeHyperlinkAction
private String clickLinkAction
private String clickLinkHyperlinkAction
private String dblClickLinkAction
private ActionLoader actionLoader
PopupMenu popup
transient ActionListener actionListener
ScrollPane scrollPane
Image offscreen
Dimension offscreensize
Graphics offgraphics
Vector selected
Point start
Point end
boolean moveEnd
boolean moved
Dimension canvasSize
Vector movingNodes
Constructor Detail |
public GraphView(boolean edit_mode)
Method Detail |
public void setLayout(LayoutManager l)
public void setPopupMenu(PopupMenu popup)
public PopupMenu getPopupMenu()
public void setStraitLines(boolean strait)
public void setLinkActionListener(ActionListener l)
public void setMode(int mode)
public int getMode()
public void setPreviousMode()
public String getClickBackgroundAction()
public void setClickBackgroundAction(String a_ClickBackgroundAction)
a_ClickBackgroundAction
- public String getClickNodeAction()
public void setClickNodeAction(String a_ClickNodeAction)
a_ClickNodeAction
- public String getClickNodeHyperlinkAction()
public void setClickNodeHyperlinkAction(String a_ClickNodeHyperlinkAction)
public String getClickLinkAction()
public void setClickLinkAction(String a_ClickLinkAction)
a_ClickLinkAction
- public String getClickLinkHyperlinkAction()
public void setClickLinkHyperlinkAction(String a_ClickLinkHyperlinkAction)
public String getDblClickBackgroundAction()
public void setDblClickBackgroundAction(String a_DblClickBackgroundAction)
a_DblClickBackgroundAction
- public String getDblClickNodeAction()
public void setDblClickNodeAction(String a_DblClickNodeAction)
a_DblClickNodeAction
- public String getDblClickLinkAction()
public void setDblClickLinkAction(String a_DblClickLinkAction)
a_DblClickLinkAction
- public ActionLoader getActionLoader()
public void setActionLoader(ActionLoader a_ActionLoader)
a_ActionLoader
- public void setGraphNodeInsert(GraphNode node)
public GraphNode getGraphNodeInsert()
public void setGraphLinkInsert(GraphLink node)
public GraphLink getGraphLinkInsert()
public Dimension getPreferredSize()
public void deleteSelected()
public void setModel(GraphModel model) throws WTPropertyVetoException
setModel
in class AbstractGraphView
model
-
WTPropertyVetoException
public void graphNodeInserted(GraphModelEvent e)
graphNodeInserted
in interface GraphModelListener
graphNodeInserted
in class AbstractGraphView
e
- public void graphNodeChanged(PropertyChangeEvent e)
graphNodeChanged
in interface GraphModelListener
graphNodeChanged
in class AbstractGraphView
e
- public void graphNodeRemoved(GraphModelEvent e)
graphNodeRemoved
in interface GraphModelListener
graphNodeRemoved
in class AbstractGraphView
e
- public void graphStructureChanged(GraphModelEvent e)
graphStructureChanged
in interface GraphModelListener
graphStructureChanged
in class AbstractGraphView
e
- public void graphLinkInserted(GraphModelEvent e)
graphLinkInserted
in interface GraphModelListener
graphLinkInserted
in class AbstractGraphView
e
- public void graphLinkChanged(PropertyChangeEvent e)
graphLinkChanged
in interface GraphModelListener
graphLinkChanged
in class AbstractGraphView
e
- public void graphLinkRemoved(GraphModelEvent e)
graphLinkRemoved
in interface GraphModelListener
graphLinkRemoved
in class AbstractGraphView
e
- public void graphNodeSelected(GraphSelectionModelEvent e)
graphNodeSelected
in interface GraphSelectionModelListener
graphNodeSelected
in class AbstractGraphView
e
- public void graphNodeUnselected(GraphSelectionModelEvent e)
graphNodeUnselected
in interface GraphSelectionModelListener
graphNodeUnselected
in class AbstractGraphView
e
- public void graphLinkSelected(GraphSelectionModelEvent e)
graphLinkSelected
in interface GraphSelectionModelListener
graphLinkSelected
in class AbstractGraphView
e
- public void graphLinkUnselected(GraphSelectionModelEvent e)
graphLinkUnselected
in interface GraphSelectionModelListener
graphLinkUnselected
in class AbstractGraphView
e
- public void graphSelectionCleared(GraphSelectionModelEvent e)
graphSelectionCleared
in interface GraphSelectionModelListener
graphSelectionCleared
in class AbstractGraphView
e
- void insertGraphNode(GraphNode node)
void removeGraphNode(GraphNode node)
void insertGraphLink(GraphLink link)
void removeGraphLink(GraphLink link)
public void update(Graphics g)
public void addNotify()
public void setBounds(int x, int y, int width, int height)
public void paint(Graphics g)
public boolean isObjectExisting(Point position)
isObjectExisting
in class AbstractGraphView
position
-
void GraphView_MouseReleased(MouseEvent event)
void GraphView_MousePressed(MouseEvent event)
private boolean isLinkAt(GraphLinkComponent link, MouseEvent event)
void GraphView_MouseClicked(MouseEvent event)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |