Java Doc for ApplicationGIS.java in  » GIS » udig-1.1 » net » refractions » udig » project » ui » 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 » GIS » udig 1.1 » net.refractions.udig.project.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.refractions.udig.project.ui.ApplicationGIS

ApplicationGIS
public class ApplicationGIS (Code)
A facade into udig to simplify operations such as getting the active map and openning a map editor.
author:
   jeichar
since:
   0.9.0




Method Summary
public static  List<? extends ILayer>addLayersToMap(IMap map, List<IGeoResource> resourceList, int startPosition)
     Make layers from the resourceList and adds the layers to the map.

NOTE map may be null.

public static  List<? extends ILayer>addLayersToMap(IProject project, List<IGeoResource> resourceList)
     Make layers from the resourceList, creates a new map, adds layers to map and adds map to the project.
Parameters:
  project - project that new map should be added to
Parameters:
  resourceList - Resources to add to the map.
Parameters:
  startPosition - z-position of the layers to add.
public static  List<? extends ILayer>addLayersToMap(IMap map, List<IGeoResource> resourceList, int startPosition, Project project)
     Make layers from the resourceList and adds the layers to the map.

NOTE map may be null.

public static  List<? extends ILayer>addLayersToMap(IMap map2, List<IGeoResource> resourceList, int startPosition2, IProject project2, boolean wait)
     Make layers from the resourceList and adds the layers to the map.

NOTE map may be null.

public static  voidcreateAndOpenMap(List<IGeoResource> resources)
     creates a map and opens an editor for the map.
Parameters:
  a - list of IGeoResources.
public static  voidcreateAndOpenMap(List<IGeoResource> resources, IProject owner)
     creates a map and opens an editor for the map.
Parameters:
  a - list of IGeoResources.
public static  voidcreateAndOpenMap(List<IGeoResource> resources, IProject owner, boolean wait)
     creates a map and opens an editor for the map.
Parameters:
  a - list of IGeoResources.
public static  IToolContextcreateContext(IMap map)
     Creates a Tools Context out of Map.
public static  IMapgetActiveMap()
     May return null if the active editor is not a Map Editor.
public static  IProjectgetActiveProject()
     Obtains the current project.
public static  List<UDIGEditorInputDescriptor>getEditorInputs(Class<? extends IProjectElement> type)
     Returns an editor input for the type passed in.
public static  UDIGEditorInputgetInput(IProjectElement element)
     Returns the IEditorInput instance that wraps the element argument.
public static  List<? extends IMap>getOpenMaps()
     Returns all open maps.
public static  List<? extends IProject>getProjects()
     Return all Projects.
public static  IToolManagergetToolManager()
     Returns the ToolManager singleton.
public static  IViewPartgetView(boolean show, String id)
     Gets a reference to a view.
public static  IProjectElementloadProjectElement(URL url, IProject project)
     Loads the project element indicated by the url and adds the map to the provided project.
Parameters:
  url - the project element to load
Parameters:
  project - the project to add the project element to.
public static  voidopenMap(IMap map)
     Opens a Map editor for the provided map, This is a non-blocking call.
public static  voidopenMap(IMap map, boolean wait)
     Opens a Map editor for the provided map.
Parameters:
  map - the map to open.
public static  voidopenProjectElement(IProjectElement obj, boolean wait)
     Opens a IProjectElement for editing/viewing.
public static  voidrun(ISafeRunnable request)
     Runs the given runnable in a protected mode.



Method Detail
addLayersToMap
public static List<? extends ILayer> addLayersToMap(IMap map, List<IGeoResource> resourceList, int startPosition)(Code)
Make layers from the resourceList and adds the layers to the map.

NOTE map may be null. If it is then the current open map will be used (see ApplicationGIS.getActiveMap() or a new map will be created if that is null.


Parameters:
  map - the map to add the layers to. If null the current active map will be used or a newone will be created
Parameters:
  resourceList - Resources to add to the map.
Parameters:
  startPosition - z-position of the layers to add. if -1 it will be added to the top of themap (0 is the bottom of the map and map.getMapLayer.size() is the top of the map). layers that were added.



addLayersToMap
public static List<? extends ILayer> addLayersToMap(IProject project, List<IGeoResource> resourceList)(Code)
Make layers from the resourceList, creates a new map, adds layers to map and adds map to the project.
Parameters:
  project - project that new map should be added to
Parameters:
  resourceList - Resources to add to the map.
Parameters:
  startPosition - z-position of the layers to add. if -1 it will be added to the top of themap (0 is the bottom of the map and map.getMapLayer.size() is the top of the map). layers that were added.



addLayersToMap
public static List<? extends ILayer> addLayersToMap(IMap map, List<IGeoResource> resourceList, int startPosition, Project project)(Code)
Make layers from the resourceList and adds the layers to the map.

NOTE map may be null. If it is then the current open map will be used (see ApplicationGIS.getActiveMap() or a new map will be created if that is null.


Parameters:
  map - the map to add the layers to. If null the current active map will be used or a newone will be created
Parameters:
  resourceList - Resources to add to the map.
Parameters:
  startPosition - z-position of the layers to add. if -1 it will be added to the top of themap (0 is the bottom of the map and map.getMapLayer.size() is the top of the map).
Parameters:
  project - project that map should be added to... Only used if there is no current map.If project is then the default project is used. layers that were added.



addLayersToMap
public static List<? extends ILayer> addLayersToMap(IMap map2, List<IGeoResource> resourceList, int startPosition2, IProject project2, boolean wait)(Code)
Make layers from the resourceList and adds the layers to the map.

NOTE map may be null. If it is then the current open map will be used (see ApplicationGIS.getActiveMap() or a new map will be created if that is null.


Parameters:
  map - the map to add the layers to. If null the current active map will be used or a newone will be created
Parameters:
  resourceList - Resources to add to the map.
Parameters:
  startPosition - z-position of the layers to add. if -1 it will be added to the top of themap (0 is the bottom of the map and map.getMapLayer.size() is the top of the map).
Parameters:
  project - project that map should be added to... Only used if there is no current map.If project is then the default project is used.
Parameters:
  wait - if true then method will block until map has been opened otherwise will return without blocking.



createAndOpenMap
public static void createAndOpenMap(List<IGeoResource> resources)(Code)
creates a map and opens an editor for the map.
Parameters:
  a - list of IGeoResources. Each resource will be a layer in the created map.



createAndOpenMap
public static void createAndOpenMap(List<IGeoResource> resources, IProject owner)(Code)
creates a map and opens an editor for the map.
Parameters:
  a - list of IGeoResources. Each resource will be a layer in the created map.
Parameters:
  owner - the project that will contain the map. owner must be an instance of Project. Ifit is obtained using the framework then this will always be the case.



createAndOpenMap
public static void createAndOpenMap(List<IGeoResource> resources, IProject owner, boolean wait)(Code)
creates a map and opens an editor for the map.
Parameters:
  a - list of IGeoResources. Each resource will be a layer in the created map.
Parameters:
  owner - the project that will contain the map. owner must be an instance of Project. Ifit is obtained using the framework then this will always be the case.
Parameters:
  wait - indicates whether to wait for the map to open before returning.



createContext
public static IToolContext createContext(IMap map)(Code)
Creates a Tools Context out of Map.
Parameters:
  map - that the context interacts with a ToolContext
See Also:   ToolContext



getActiveMap
public static IMap getActiveMap()(Code)
May return null if the active editor is not a Map Editor. the map contained by the current MapEditor or null if the active editor is not a mapeditor.



getActiveProject
public static IProject getActiveProject()(Code)
Obtains the current project. The current active project



getEditorInputs
public static List<UDIGEditorInputDescriptor> getEditorInputs(Class<? extends IProjectElement> type)(Code)
Returns an editor input for the type passed in. Processes the editorInputs extension point.
Parameters:
  type - an editor input for the type passed in.



getInput
public static UDIGEditorInput getInput(IProjectElement element)(Code)
Returns the IEditorInput instance that wraps the element argument. the IEditorInput instance that wraps the element argument.



getOpenMaps
public static List<? extends IMap> getOpenMaps()(Code)
Returns all open maps. May return null if no Map Editors exist. a list of maps contained.



getProjects
public static List<? extends IProject> getProjects()(Code)
Return all Projects. The list is unmodifiable. all Projects.



getToolManager
public static IToolManager getToolManager()(Code)
Returns the ToolManager singleton. the ToolManager singleton.



getView
public static IViewPart getView(boolean show, String id)(Code)
Gets a reference to a view. If the view has not been opened previously then the view will be opened.
Parameters:
  show - whether to show the view or not.
Parameters:
  id - the id of the view to show. returns the view or null if the view does not exist



loadProjectElement
public static IProjectElement loadProjectElement(URL url, IProject project) throws IOException, IllegalArgumentException(Code)
Loads the project element indicated by the url and adds the map to the provided project.
Parameters:
  url - the project element to load
Parameters:
  project - the project to add the project element to. returns the loaded project element.
throws:
  IOException - thrown if there is a problem reading the project element file
throws:
  IllegalArgumentException - thrown if the file indicated by the URL is not a projectelement file.



openMap
public static void openMap(IMap map)(Code)
Opens a Map editor for the provided map, This is a non-blocking call. Equivalent to openMap(map, false);
Parameters:
  map - the map to open. Must be an instance of Map.



openMap
public static void openMap(IMap map, boolean wait)(Code)
Opens a Map editor for the provided map.
Parameters:
  map - the map to open. Must be an instance of Map.
Parameters:
  wait - indicates whether to wait for the map to open before returning.



openProjectElement
public static void openProjectElement(IProjectElement obj, boolean wait)(Code)
Opens a IProjectElement for editing/viewing.
Parameters:
  obj - object to open
Parameters:
  wait - whether or not to perform the action asynchronously



run
public static void run(ISafeRunnable request)(Code)
Runs the given runnable in a protected mode. Exceptions thrown in the runnable are logged and passed to the runnable's exception handler. Such exceptions are not rethrown by this method.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.