Java Doc for GraphView.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » sql » framework » ui » graph » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » etl.project » org.netbeans.modules.sql.framework.ui.graph.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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$


Field Summary
protected static  DataFlavor[]mDataFlavorArray
    
protected  PointmousePoint
    
protected  JPopupMenupopUpMenu
    
public static  JGoObjectselectedObject
    

Constructor Summary
public  GraphView()
    

Method Summary
public  voidaddLink(IGraphPort from, IGraphPort to)
     Adds a link from the given source port to the given destination port.
public  voidaddLink(IGraphLink link)
    
public  voidaddNode(IGraphNode node)
     Adds the given IGraphNode to the view.
public  IGraphNodeaddXmlInfoNode(IOperatorXmlInfo xmlInfo, Point location)
     Creates and adds a new operator node at the given location, as specified by the given operator descriptor.
public  voidautoLayout()
    
public  voidavoidOverlap(JGoObject guiInfo)
     Ensures given JGoObject does not overlap other JGoObjects in the view.
public  booleancanEdit()
    
public  voidclearAll()
    
public  voidclearSelection()
    
public  voidcollapseAll()
     Collapses all graph objects in this view.
public  intcomputeAcceptableDrop(DropTargetDragEvent e)
    
public  voiddeleteLinks(Collection links)
    
public  voiddeleteNode(IGraphNode node)
    
public  booleandoMouseDown(int modifiers, Point dc, Point vc)
    
public  booleandoMouseMove(int modifiers, Point dc, Point vc)
    
public  booleandoMouseUp(int modifiers, java.awt.Point dc, java.awt.Point vc)
    
public  voiddrop(java.awt.dnd.DropTargetDropEvent e)
    
public  voidexpandAll()
     Expands all graph objects in this view.
public  IGraphNodefindGraphNode(Object obj)
    
public  ActiongetAction(Class actionClass)
    
public  CollectiongetAllGraphLinks()
    
public  ListgetGraphActions()
    
public  IGraphControllergetGraphController()
     Gets the graph controller of this view.
public  ObjectgetGraphFactory()
    
public  ObjectgetGraphModel()
    
public  ObjectgetGraphViewContainer()
    
public  JGoObjectgetObjectInModel(Point loc, boolean flag)
    
public  JGoViewgetObserved()
    
public  doublegetPrintScale(Graphics2D g2, PageFormat pf)
     Describe getPrintScale method here.
public  BirdsEyeViewgetSatelliteView()
    
public  CollectiongetSelectedLinks()
    
protected  CollectiongetSelectedNodes()
    
public  JGoObjectgetSelectedObject()
    
public  IToolBargetToolBar()
    
public  IOperatorXmlInfogetXMLInfo()
    
public  voidhighlightInvalidNode(Object dataObj, boolean createSel)
    
public  booleanisDropFlavorAcceptable(DropTargetDragEvent e)
    
public  booleanisModifiable()
    
public  voidnewLink(JGoPort from, JGoPort to)
     Called to create a new link from the from port to the to port.
public  voidnoNewLink(JGoPort from, JGoPort to)
     Called when link creation fails.
public  voidnoReLink(JGoLink oldlink, JGoPort from, JGoPort to)
     Called when link reconnection fails.
public  voidonKeyEvent(KeyEvent evt)
    
public  voidprintView()
    
public  voidremoveLink(IGraphPort from, IGraphPort to)
     Removes the link, if any, between the given ports.
public  voidremoveNode(IGraphNode node)
     Removes the given IGraphNode from the view.
public  voidresetSelectionColors()
    
public  voidsetGraphActions(List actions)
    
public  voidsetGraphController(IGraphController controller)
     Sets the graph controller of this view.
public  voidsetGraphFactory(Object gFactory)
    
public  voidsetGraphModel(Object model)
    
public  voidsetGraphViewContainer(Object mgr)
    
public  voidsetModifiable(boolean b)
    
public  voidsetObserved(JGoView observed)
    
public  voidsetSelectedObject(JGoObject obj)
    
public  voidsetToolBar(IToolBar tBar)
    
public  voidsetXMLInfo(IOperatorXmlInfo xmlInfo)
    

Field Detail
mDataFlavorArray
protected static DataFlavor[] mDataFlavorArray(Code)



mousePoint
protected Point mousePoint(Code)



popUpMenu
protected JPopupMenu popUpMenu(Code)



selectedObject
public static JGoObject selectedObject(Code)




Constructor Detail
GraphView
public GraphView()(Code)
Creates a new instance of BasicGraphView




Method Detail
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



addLink
public void addLink(IGraphLink link)(Code)



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



doMouseMove
public boolean doMouseMove(int modifiers, Point dc, Point vc)(Code)



doMouseUp
public boolean doMouseUp(int modifiers, java.awt.Point dc, java.awt.Point vc)(Code)



drop
public void drop(java.awt.dnd.DropTargetDropEvent e)(Code)
Drop
Parameters:
  e - - DropTargetDropEvent



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



getGraphFactory
public Object getGraphFactory()(Code)



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



getSatelliteView
public BirdsEyeView getSatelliteView()(Code)



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)



getToolBar
public IToolBar getToolBar()(Code)
get the toolbar toolbar



getXMLInfo
public IOperatorXmlInfo getXMLInfo()(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 -



setXMLInfo
public void setXMLInfo(IOperatorXmlInfo xmlInfo)(Code)



ww__w__.ja___va___2___s__.___c__om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.