|
|||||||||||
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.DefaultGraphView
Nested Class Summary |
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 | |
DefaultGraphView()
|
|
DefaultGraphView(GraphModel pGraphModel)
|
|
DefaultGraphView(GraphModel pGraphModel,
GraphSelectionModel pGraphSelectionModel)
|
|
DefaultGraphView(GraphSelectionModel pGraphSelectionModel)
|
Method Summary | |
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 |
getClickNodeAction()
Gets the value of the attribute: clickNodeAction. |
String |
getConnectAction()
Gets the value of the attribute: connectAction. |
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. |
GraphNode |
getEndConnectNode()
Gets the value of the attribute: endConnectNode. |
GraphViewCellRenderer |
getGraphViewCellRenderer()
Gets the object for the association that plays role: graphViewCellRenderer. |
GraphViewLinkRenderer |
getGraphViewLinkRenderer()
Gets the object for the association that plays role: graphViewLinkRenderer. |
GraphLink |
getLinkOverlayed()
Gets the value of the attribute: linkOverlayed. |
int |
getMode()
Gets the value of the attribute: mode. |
GraphNode |
getNodeOverlayed()
Gets the value of the attribute: nodeOverlayed. |
Dimension |
getPreferredSize()
|
GraphNode |
getStartConnectNode()
Gets the value of the attribute: startConnectNode. |
protected Polygon |
getZoneAt(Point pPoint)
|
float |
getZoomFactor()
Gets the value of the attribute: zoomFactor. |
boolean |
isLinkMouseOverlayed(GraphLink pLink)
|
boolean |
isNodeMouseOverlayed(GraphNode pNode)
|
boolean |
isObjectExisting(Point pPosition)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paint(Graphics g)
|
protected void |
paintLink(Graphics g,
GraphLink pLink)
|
protected void |
paintLink(Graphics g,
GraphLink pLink,
GraphViewLinkRenderer pLinkRenderer)
|
protected void |
paintNode(Graphics g,
GraphNode pNode)
|
protected void |
paintNode(Graphics g,
GraphNode pNode,
GraphViewCellRenderer pNodeRenderer)
|
void |
setActionLoader(ActionLoader a_ActionLoader)
Sets the value of the attribute: actionLoader. |
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 |
setClickNodeAction(String a_ClickNodeAction)
Sets the value of the attribute: clickNodeAction. |
void |
setConnectAction(String a_ConnectAction)
Sets the value of the attribute: connectAction. |
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 |
setEndConnectNode(GraphNode a_EndConnectNode)
Sets the value of the attribute: endConnectNode. |
void |
setGraphViewCellRenderer(GraphViewCellRenderer a_GraphViewCellRenderer)
Sets the object for the association that plays role: graphViewCellRenderer. |
void |
setGraphViewLinkRenderer(GraphViewLinkRenderer a_GraphViewLinkRenderer)
Sets the object for the association that plays role: graphViewLinkRenderer. |
void |
setLinkOverlayed(GraphLink a_LinkOverlayed)
Sets the value of the attribute: linkOverlayed. |
void |
setMode(int a_Mode)
Sets the value of the attribute: mode. |
void |
setModel(GraphModel pGraphModel)
Sets the object for the association that plays role: MODEL. |
void |
setNodeOverlayed(GraphNode a_NodeOverlayed)
Sets the value of the attribute: nodeOverlayed. |
void |
setStartConnectNode(GraphNode a_StartConnectNode)
Sets the value of the attribute: startConnectNode. |
void |
setZoomFactor(float a_ZoomFactor)
Sets the value of the attribute: zoomFactor. |
void |
update(Graphics g)
|
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
private static final String versionID
private Image offscreen
private Dimension offscreensize
private Graphics offgraphics
private Hashtable selectionZone
private Polygon startPolygon
private Point startPoint
private Point endPoint
private GraphNode startConnectNode
private GraphNode endConnectNode
private String connectAction
private GraphNode nodeOverlayed
private GraphLink linkOverlayed
private int mode
private Rectangle realClip
private Rectangle currentClip
public static final int SELECT_MODE
public static final int MOVE_MODE
public static final int CONNECT_MODE
public static final int PADDING_MODE
private float zoomFactor
private String clickBackgroundAction
private String clickNodeAction
private String clickLinkAction
private String dblClickBackgroundAction
private String dblClickNodeAction
private String dblClickLinkAction
private Hashtable linkToRender
private ActionLoader actionLoader
private GraphViewCellRenderer graphViewCellRenderer
private GraphViewLinkRenderer graphViewLinkRenderer
private static final String RESOURCE
private static boolean VERBOSE
private static boolean DEVELOPER
Constructor Detail |
public DefaultGraphView(GraphModel pGraphModel, GraphSelectionModel pGraphSelectionModel)
pGraphModel
- pGraphSelectionModel
- public DefaultGraphView(GraphModel pGraphModel)
pGraphModel
- public DefaultGraphView(GraphSelectionModel pGraphSelectionModel)
pGraphSelectionModel
- public DefaultGraphView()
Method Detail |
public GraphNode getStartConnectNode()
public void setStartConnectNode(GraphNode a_StartConnectNode) throws WTPropertyVetoException
a_StartConnectNode
-
WTPropertyVetoException
public GraphNode getEndConnectNode()
public void setEndConnectNode(GraphNode a_EndConnectNode) throws WTPropertyVetoException
a_EndConnectNode
-
WTPropertyVetoException
public String getConnectAction()
public void setConnectAction(String a_ConnectAction)
a_ConnectAction
- public GraphNode getNodeOverlayed()
public void setNodeOverlayed(GraphNode a_NodeOverlayed)
a_NodeOverlayed
- public GraphLink getLinkOverlayed()
public void setLinkOverlayed(GraphLink a_LinkOverlayed)
a_LinkOverlayed
- public int getMode()
public void setMode(int a_Mode) throws WTPropertyVetoException
a_Mode
-
WTPropertyVetoException
public float getZoomFactor()
public void setZoomFactor(float a_ZoomFactor) throws WTPropertyVetoException
a_ZoomFactor
-
WTPropertyVetoException
public String getClickBackgroundAction()
public void setClickBackgroundAction(String a_ClickBackgroundAction)
a_ClickBackgroundAction
- public String getClickNodeAction()
public void setClickNodeAction(String a_ClickNodeAction)
a_ClickNodeAction
- public String getClickLinkAction()
public void setClickLinkAction(String a_ClickLinkAction)
a_ClickLinkAction
- 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 GraphViewCellRenderer getGraphViewCellRenderer()
public void setGraphViewCellRenderer(GraphViewCellRenderer a_GraphViewCellRenderer)
a_GraphViewCellRenderer
- public GraphViewLinkRenderer getGraphViewLinkRenderer()
public void setGraphViewLinkRenderer(GraphViewLinkRenderer a_GraphViewLinkRenderer)
a_GraphViewLinkRenderer
- public void setModel(GraphModel pGraphModel) throws WTPropertyVetoException
AbstractGraphView
setModel
in class AbstractGraphView
pGraphModel
-
WTPropertyVetoException
public void update(Graphics g)
g
- public void paint(Graphics g)
g
- protected void paintNode(Graphics g, GraphNode pNode)
g
- pNode
- protected void paintNode(Graphics g, GraphNode pNode, GraphViewCellRenderer pNodeRenderer)
g
- pNode
- pNodeRenderer
- protected void paintLink(Graphics g, GraphLink pLink)
g
- pLink
- protected void paintLink(Graphics g, GraphLink pLink, GraphViewLinkRenderer pLinkRenderer)
g
- pLink
- pLinkRenderer
- public Dimension getPreferredSize()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class AbstractGraphView
e
- public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class AbstractGraphView
e
- public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class AbstractGraphView
e
- public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class AbstractGraphView
e
- public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class AbstractGraphView
e
- protected Polygon getZoneAt(Point pPoint)
pPoint
-
public boolean isObjectExisting(Point pPosition)
isObjectExisting
in class AbstractGraphView
pPosition
-
public boolean isNodeMouseOverlayed(GraphNode pNode)
pNode
-
public boolean isLinkMouseOverlayed(GraphLink pLink)
pLink
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |