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


net.refractions.udig.project.IAbstractContext

IAbstractContext
public interface IAbstractContext (Code)
Provides access to contextual information.

Toolkits are used by extensions to access Map and Project information. A Toolkit should never be instantiated by a developer. The framework provides Toolkits to extensions.

Responsibilities:

  • Provide access to the objects that an extension can use for its operations.
  • Provide convenience methods for extension developers to use.
  • Provide a consistent interface for extensions which will not easily change in future versions


author:
   Jesse
since:
   0.5




Method Summary
public  IAbstractContextcopy()
     Makes a deep copy of this object, if necessary. This is an alternative to clone since I hate clone, it is too hard to implement. a new copy of this object.
 ReferencedEnvelopegetBoundingBox(Point screenLocation, int scalefactor)
     Returns a world bounding box the scalefactor * (size of a pixel) at the location corresponding to the point on the screen.
 CoordinateReferenceSystemgetCRS()
     CoordinateReferenceSystem of the map.
 IEditManagergetEditManager()
     The map's edit manager.
 FeatureCollectiongetFeaturesInBbox(ILayer layer, Envelope bbox)
     Returns all the features that intersect with the bounding box.
Parameters:
  source - The featuresource to get features from.
Parameters:
  bbox - The bounding box that acts as a filter.
 IMapgetMap()
     The context's map.
 IMapDisplaygetMapDisplay()
     The map's display object.
 List<ILayer>getMapLayers()
     Returns the list of layers in the current map.
 EnvelopegetPixelBoundingBox(Point screenLocation)
     Returns a world bounding box the size of a pixel at the location corresponding to the point on the screen.
 CoordinategetPixelSize()
     Returns the size of a pixel in world units.
 IProjectgetProject()
     The map's containing Project.
 IRenderManagergetRenderManager()
     The map's render manager

Convenience for getMap().getRenderManager().

public  ILayergetSelectedLayer()
    
 IViewportModelgetViewportModel()
     The map's viewport model.
 CoordinatepixelToWorld(int x, int y)
     Converts a coordinate expressed on the device space back to real world coordinates A convenience method.
 ShapetoShape(ReferencedEnvelope envelope)
     Transform the provided envelope to a java 2d shape (in screen coordiantes).
 ShapetoShape(Geometry geometry, CoordinateReferenceSystem crs)
     Transform the provided geometry to a java 2d shape (in screen coordiantes).
 PointtranformCoordinate(Envelope bbox, Dimension displaySize, Coordinate coordinate)
     Transforms the coordinate from the bounding box (bbox) to the area defined by the rectangle it starts at 0,0.
public  ReferencedEnvelopeworldBounds(Rectangle rectangle)
     Creates an Envelope that is close, error to slightly larger, to the Rectangle when it is transformed into world coordinates.
 PointworldToPixel(Coordinate coord)
     Returns the pixel on the screen for a given coordinate in world space.
public  MathTransform2DworldToScreenMathTransform()
     Creates a MathTransform that will transform from the screen CRS to the world CRS.
 AffineTransformworldToScreenTransform()
     Gets up the affine transform that will transform from the world to screen.



Method Detail
copy
public IAbstractContext copy()(Code)
Makes a deep copy of this object, if necessary. This is an alternative to clone since I hate clone, it is too hard to implement. a new copy of this object.



getBoundingBox
ReferencedEnvelope getBoundingBox(Point screenLocation, int scalefactor)(Code)
Returns a world bounding box the scalefactor * (size of a pixel) at the location corresponding to the point on the screen. A convenience method.

XXX: Can we make this a ReferencedEnvelope?

the size of a pixel in world units.



getCRS
CoordinateReferenceSystem getCRS()(Code)
CoordinateReferenceSystem of the map. getViewportModel().getCRS();



getEditManager
IEditManager getEditManager()(Code)
The map's edit manager.

Convenience for getMap().getEditManager().

Called to obtain the currently editable feature.

The map's edit manager.
See Also:   IEditManager



getFeaturesInBbox
FeatureCollection getFeaturesInBbox(ILayer layer, Envelope bbox) throws IOException(Code)
Returns all the features that intersect with the bounding box.
Parameters:
  source - The featuresource to get features from.
Parameters:
  bbox - The bounding box that acts as a filter. Must be in map coordinates. all the features that intersect with the bounding box.



getMap
IMap getMap()(Code)
The context's map.

The Map data object.

The context's map.
See Also:   IMap



getMapDisplay
IMapDisplay getMapDisplay()(Code)
The map's display object.

Convenience for getMap().getRenderManager().getMapDisplay().

Called to obtain the height and width of the display.

The IMapDisplay for the map.
See Also:   IMapDisplay



getMapLayers
List<ILayer> getMapLayers()(Code)
Returns the list of layers in the current map. The list of layers in the current map.



getPixelBoundingBox
Envelope getPixelBoundingBox(Point screenLocation)(Code)
Returns a world bounding box the size of a pixel at the location corresponding to the point on the screen. A convenience method. the size of a pixel in world units.



getPixelSize
Coordinate getPixelSize()(Code)
Returns the size of a pixel in world units. A convenience method. the size of a pixel in world units.



getProject
IProject getProject()(Code)
The map's containing Project.

Convenience for getMap().getProject().

Contains all the in the project.

The containing Project of the map.
See Also:   IProject



getRenderManager
IRenderManager getRenderManager()(Code)
The map's render manager

Convenience for getMap().getRenderManager().

Called to refresh the current display.

The RenderManager for the map.
See Also:   IRenderManager



getSelectedLayer
public ILayer getSelectedLayer()(Code)
Returns the currently Selected Layer the currently Selected Layer



getViewportModel
IViewportModel getViewportModel()(Code)
The map's viewport model.

Convenience for getMap().getViewportModel().

Called to obtain current viewport bounds and crs.

The Viewportmodel for the map.
See Also:   IViewportModel



pixelToWorld
Coordinate pixelToWorld(int x, int y)(Code)
Converts a coordinate expressed on the device space back to real world coordinates A convenience method.
Parameters:
  x - horizontal coordinate on device space
Parameters:
  y - vertical coordinate on device space The correspondent real world coordinate



toShape
Shape toShape(ReferencedEnvelope envelope)(Code)
Transform the provided envelope to a java 2d shape (in screen coordiantes).
Parameters:
  box -



toShape
Shape toShape(Geometry geometry, CoordinateReferenceSystem crs)(Code)
Transform the provided geometry to a java 2d shape (in screen coordiantes).
Parameters:
  box -



tranformCoordinate
Point tranformCoordinate(Envelope bbox, Dimension displaySize, Coordinate coordinate)(Code)
Transforms the coordinate from the bounding box (bbox) to the area defined by the rectangle it starts at 0,0. A simple Affine transform is used and the y-axis is flipped since it is assumed the bbox is a world bbox and the Rectangle is a cartesian like on the screen.
Parameters:
  bbox - The from area
Parameters:
  displaySize - the to area
Parameters:
  coordinate - the coordinate to transform. the point that the coordiante transforms to.



worldBounds
public ReferencedEnvelope worldBounds(Rectangle rectangle)(Code)
Creates an Envelope that is close, error to slightly larger, to the Rectangle when it is transformed into world coordinates.
Parameters:
  rectangle -



worldToPixel
Point worldToPixel(Coordinate coord)(Code)
Returns the pixel on the screen for a given coordinate in world space. A convenience method.
Parameters:
  coord - A coordinate in world space. The pixel on the screen that the world coordinate is drawn on.



worldToScreenMathTransform
public MathTransform2D worldToScreenMathTransform()(Code)
Creates a MathTransform that will transform from the screen CRS to the world CRS.



worldToScreenTransform
AffineTransform worldToScreenTransform()(Code)
Gets up the affine transform that will transform from the world to screen. A convenience method. a transform that maps from real world coordinates to the screen



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