| org.netbeans.modules.sql.framework.ui.graph.impl.GraphView
All known Subclasses: org.netbeans.modules.sql.framework.ui.view.graph.SQLGraphView,
GraphView | abstract public class GraphView extends JGoView implements IGraphView(Code) | | Extension of JGoView to implement IGraphView interface.
author: Ritesh Adval author: Jonathan Giron version: $Revision$ |
Method Summary | |
public void | addLink(IGraphPort from, IGraphPort to) Adds a link from the given source port to the given destination port. | public void | addLink(IGraphLink link) | public void | addNode(IGraphNode node) Adds the given IGraphNode to the view. | public IGraphNode | addXmlInfoNode(IOperatorXmlInfo xmlInfo, Point location) Creates and adds a new operator node at the given location, as specified by the
given operator descriptor. | public void | autoLayout() | public void | avoidOverlap(JGoObject guiInfo) Ensures given JGoObject does not overlap other JGoObjects in the view. | public boolean | canEdit() | public void | clearAll() | public void | clearSelection() | public void | collapseAll() Collapses all graph objects in this view. | public int | computeAcceptableDrop(DropTargetDragEvent e) | public void | deleteLinks(Collection links) | public void | deleteNode(IGraphNode node) | public boolean | doMouseDown(int modifiers, Point dc, Point vc) | public boolean | doMouseMove(int modifiers, Point dc, Point vc) | public boolean | doMouseUp(int modifiers, java.awt.Point dc, java.awt.Point vc) | public void | drop(java.awt.dnd.DropTargetDropEvent e) | public void | expandAll() Expands all graph objects in this view. | public IGraphNode | findGraphNode(Object obj) | public Action | getAction(Class actionClass) | public Collection | getAllGraphLinks() | public List | getGraphActions() | public IGraphController | getGraphController() Gets the graph controller of this view. | public Object | getGraphFactory() | public Object | getGraphModel() | public Object | getGraphViewContainer() | public JGoObject | getObjectInModel(Point loc, boolean flag) | public JGoView | getObserved() | public double | getPrintScale(Graphics2D g2, PageFormat pf) Describe getPrintScale method here. | public BirdsEyeView | getSatelliteView() | public Collection | getSelectedLinks() | protected Collection | getSelectedNodes() | public JGoObject | getSelectedObject() | public IToolBar | getToolBar() | public IOperatorXmlInfo | getXMLInfo() | public void | highlightInvalidNode(Object dataObj, boolean createSel) | public boolean | isDropFlavorAcceptable(DropTargetDragEvent e) | public boolean | isModifiable() | public void | newLink(JGoPort from, JGoPort to) Called to create a new link from the from port to the to port. | public void | noNewLink(JGoPort from, JGoPort to) Called when link creation fails. | public void | noReLink(JGoLink oldlink, JGoPort from, JGoPort to) Called when link reconnection fails. | public void | onKeyEvent(KeyEvent evt) | public void | printView() | public void | removeLink(IGraphPort from, IGraphPort to) Removes the link, if any, between the given ports. | public void | removeNode(IGraphNode node) Removes the given IGraphNode from the view. | public void | resetSelectionColors() | public void | setGraphActions(List actions) | public void | setGraphController(IGraphController controller) Sets the graph controller of this view. | public void | setGraphFactory(Object gFactory) | public void | setGraphModel(Object model) | public void | setGraphViewContainer(Object mgr) | public void | setModifiable(boolean b) | public void | setObserved(JGoView observed) | public void | setSelectedObject(JGoObject obj) | public void | setToolBar(IToolBar tBar) | public void | setXMLInfo(IOperatorXmlInfo xmlInfo) |
selectedObject | public static JGoObject selectedObject(Code) | | |
GraphView | public GraphView()(Code) | | Creates a new instance of BasicGraphView
|
addLink | public void addLink(IGraphPort from, IGraphPort to)(Code) | | Adds a link from the given source port to the given destination port.
Parameters: from - source IGraphPort Parameters: to - destination IGraphPort |
addNode | public void addNode(IGraphNode node)(Code) | | Adds the given IGraphNode to the view.
Parameters: node - new IGraphNode to add |
addXmlInfoNode | public IGraphNode addXmlInfoNode(IOperatorXmlInfo xmlInfo, Point location)(Code) | | Creates and adds a new operator node at the given location, as specified by the
given operator descriptor.
Parameters: xmlInfo - descriptor specifying operator configuration information Parameters: location - Point at which to create new operator node new IGraphNode representing operator in question |
autoLayout | public void autoLayout()(Code) | | autolayout all the graph objects
|
avoidOverlap | public void avoidOverlap(JGoObject guiInfo)(Code) | | Ensures given JGoObject does not overlap other JGoObjects in the view.
Parameters: guiInfo - JGoObject whose positioning should not overlap other objects. |
canEdit | public boolean canEdit()(Code) | | can this graph be edited
true if graph is edited |
clearAll | public void clearAll()(Code) | | remove all the view and document objects
|
clearSelection | public void clearSelection()(Code) | | |
collapseAll | public void collapseAll()(Code) | | Collapses all graph objects in this view.
|
computeAcceptableDrop | public int computeAcceptableDrop(DropTargetDragEvent e)(Code) | | computeAcceptableDrop
Parameters: e - - DropTargetDragEvent - true/false |
deleteLinks | public void deleteLinks(Collection links)(Code) | | Delete a collection of links
Parameters: links - - links |
deleteNode | public void deleteNode(IGraphNode node)(Code) | | Delete an object
Parameters: node - node to be deleted |
doMouseDown | public boolean doMouseDown(int modifiers, Point dc, Point vc)(Code) | | See Also: com.nwoods.jgo.JGoView.doMouseDown |
expandAll | public void expandAll()(Code) | | Expands all graph objects in this view.
|
findGraphNode | public IGraphNode findGraphNode(Object obj)(Code) | | get the canvas node which holds IDataObject
Parameters: obj - IDataObject - |
getAction | public Action getAction(Class actionClass)(Code) | | get a action based on class name
Parameters: actionClass - action |
getAllGraphLinks | public Collection getAllGraphLinks()(Code) | | Retrieves a collection of all links
- |
getGraphActions | public List getGraphActions()(Code) | | get the graph actions that need to be shown in popup menu
a list of GraphAction, null in list represents a seperator |
getGraphController | public IGraphController getGraphController()(Code) | | Gets the graph controller of this view.
current graph controller |
getGraphModel | public Object getGraphModel()(Code) | | get graph model
graph model |
getGraphViewContainer | public Object getGraphViewContainer()(Code) | | get graph view container which can manage this view
graph view manager |
getObjectInModel | public JGoObject getObjectInModel(Point loc, boolean flag)(Code) | | Gets the canvas node, if any, at the given position
Parameters: loc - point in canvas document Parameters: flag - if true check only the objects which are selectable the object, if any, found at given location |
getObserved | public JGoView getObserved()(Code) | | |
getPrintScale | public double getPrintScale(Graphics2D g2, PageFormat pf)(Code) | | Describe getPrintScale method here.
Parameters: g2 - a Graphics2D value Parameters: pf - a PageFormat value a double value |
getSelectedLinks | public Collection getSelectedLinks()(Code) | | Retrieves a collection of currently selected links
Collection of selected links in this view. |
getSelectedNodes | protected Collection getSelectedNodes()(Code) | | Retrieves a collection of currently selected nodes
Collection of selected nodes in this view. |
getSelectedObject | public JGoObject getSelectedObject()(Code) | | |
highlightInvalidNode | public void highlightInvalidNode(Object dataObj, boolean createSel)(Code) | | |
isDropFlavorAcceptable | public boolean isDropFlavorAcceptable(DropTargetDragEvent e)(Code) | | isDropFlavorAcceptable
Parameters: e - - DropTargetDragEvent - true/false |
isModifiable | public boolean isModifiable()(Code) | | check if this graph view is modifiable
modifiable |
newLink | public void newLink(JGoPort from, JGoPort to)(Code) | | Called to create a new link from the from port to the to port.
Parameters: from - source JGoPort Parameters: to - destination JGoPort |
noNewLink | public void noNewLink(JGoPort from, JGoPort to)(Code) | | Called when link creation fails.
Parameters: from - source JGoPort Parameters: to - destination JGoPort |
noReLink | public void noReLink(JGoLink oldlink, JGoPort from, JGoPort to)(Code) | | Called when link reconnection fails.
Parameters: oldlink - JGoLink to be reconnected Parameters: from - source JGoPort Parameters: to - destination JGoPort |
onKeyEvent | public void onKeyEvent(KeyEvent evt)(Code) | | Handles key event
Parameters: evt - Description of the Parameter |
printView | public void printView()(Code) | | Print the view
|
removeLink | public void removeLink(IGraphPort from, IGraphPort to)(Code) | | Removes the link, if any, between the given ports.
Parameters: from - source IGraphPort of link to be removed Parameters: to - destination IGraphPort of link to be removed |
removeNode | public void removeNode(IGraphNode node)(Code) | | Removes the given IGraphNode from the view.
Parameters: node - new IGraphNode to remove |
resetSelectionColors | public void resetSelectionColors()(Code) | | Reset selection colors
|
setGraphActions | public void setGraphActions(List actions)(Code) | | set graph actions on this view
Parameters: actions - list of GraphAction |
setGraphController | public void setGraphController(IGraphController controller)(Code) | | Sets the graph controller of this view.
Parameters: controller - new graph controller |
setGraphFactory | public void setGraphFactory(Object gFactory)(Code) | | set the graph factory which is used for creating nodes in this graph
Parameters: gFactory - graph node factory |
setGraphModel | public void setGraphModel(Object model)(Code) | | set the graph model
Parameters: model - graph model |
setGraphViewContainer | public void setGraphViewContainer(Object mgr)(Code) | | set the graph view container which this view can refer to
Parameters: mgr - graph view manager |
setModifiable | public void setModifiable(boolean b)(Code) | | |
setObserved | public void setObserved(JGoView observed)(Code) | | |
setSelectedObject | public void setSelectedObject(JGoObject obj)(Code) | | |
setToolBar | public void setToolBar(IToolBar tBar)(Code) | | set the toolbar
Parameters: tBar - |
|
|