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


net.refractions.udig.project.render.IViewportModel

IViewportModel
public interface IViewportModel (Code)
Models the Viewport on the map.
author:
   Jesse
since:
   0.5


Field Summary
final public static  CoordinateReferenceSystemDEFAULT_CRS
     A Default setting to use for the viewport CRS.


Method Summary
public  voidaddViewportModelListener(IViewportModelListener listener)
     Adds a IViewportModelListener to this map.
public  doublegetAspectRatio()
     Returns the aspect ratio of the viewport.
public  EnvelopegetBounds()
     Returns the bounding box of the Viewport in world coordinates.

Note: Since Envelope is not a UDIG element changes to the bounds envelope object will not raise events.

public  CoordinateReferenceSystemgetCRS()
     Returns the local coordinate system.
public  CoordinategetCenter()
     Returns the center of the viewport in world coordinates.
public  doublegetHeight()
     Returns the Viewport's height in world coordinates.
public  IMapgetMap()
    
public  CoordinategetPixelSize()
     Returns the size of a pixel in world units.
public  doublegetScaleDenominator()
     Find the scale denominator of the map. Method: 1.
public  doublegetWidth()
     Returns the Viewport's width in world coordinates.
public  CoordinatepixelToWorld(int x, int y)
    
public  voidremoveViewportModelListener(IViewportModelListener listener)
     Removes a IViewportModelListener from this map.
public  PointworldToPixel(Coordinate coord)
     Returns the pixel on the screen for a given coordinate in world space.
Parameters:
  coord - A coordinate in world space.
public  AffineTransformworldToScreenTransform()
     Gets up the affine transform that will transform from the world to screen.
public  AffineTransformworldToScreenTransform(Envelope mapExtent, Dimension destination)
     Gets up the affine transform that will transform from the world to the display of size destination.

Field Detail
DEFAULT_CRS
final public static CoordinateReferenceSystem DEFAULT_CRS(Code)
A Default setting to use for the viewport CRS.





Method Detail
addViewportModelListener
public void addViewportModelListener(IViewportModelListener listener)(Code)
Adds a IViewportModelListener to this map. A given listener will only be added once.
Parameters:
  listener - Listener to be added
See Also:   net.refractions.udig.project.ViewportModelEvent.ViewportModelEventType



getAspectRatio
public double getAspectRatio()(Code)
Returns the aspect ratio of the viewport. The aspect ratio of the viewport.



getBounds
public Envelope getBounds()(Code)
Returns the bounding box of the Viewport in world coordinates.

Note: Since Envelope is not a UDIG element changes to the bounds envelope object will not raise events. Therefore the bounds should only be modified via the ViewportModel interface

The bounds are in the same CRS as returned by the bounding box of the Viewport in world coordinates.
See Also:   Envelope



getCRS
public CoordinateReferenceSystem getCRS()(Code)
Returns the local coordinate system. The local coordinate system is the CRS that all the layer data will be transformed into. Once the layer data is transformed into the local CRS then it is transformed for display onto the screen the local coordinate system
See Also:   CoordinateReferenceSystem



getCenter
public Coordinate getCenter()(Code)
Returns the center of the viewport in world coordinates. The bounds are in the same CRS as returned by the center of the viewport in world coordinates
See Also:   Coordinate



getHeight
public double getHeight()(Code)
Returns the Viewport's height in world coordinates. The bounds are in the same CRS as returned by the Viewport's height in world coordinates.



getMap
public IMap getMap()(Code)
Gets the Map that contains the current ViewportModel the Map that contains the current ViewportModel



getPixelSize
public Coordinate getPixelSize()(Code)
Returns the size of a pixel in world units. the size of a pixel in world units.
See Also:   Coordinate



getScaleDenominator
public double getScaleDenominator()(Code)
Find the scale denominator of the map. Method: 1. find the diagonal distance (meters) 2. find the diagonal distance (pixels) 3. find the diagonal distance (meters) -- use DPI 4. calculate scale (#1/#2) NOTE: return the scale denominator not the actual scale (1/scale = denominator) TODO: (SLD spec page 28): Since it is common to integrate the output of multiple servers into a single displayed result in the web-mapping environment, it is important that different map servers have consistent behaviour with respect to processing scales, so that all of the independent servers will select or deselect rules at the same scales. To insure consistent behaviour, scales relative to coordinate spaces must be handled consistently between map servers. For geographic coordinate systems, which use angular units, the angular coverage of a map should be converted to linear units for computation of scale by using the circumference of the Earth at the equator and by assuming perfectly square linear units. For linear coordinate systems, the size of the coordinate space should be used directly without compensating for distortions in it with respect to the shape of the real Earth. NOTE: we are actually doing a a much more exact calculation, and accounting for non-square pixels the scale denominator of the map on the current display. Return -1 if something is wrong. For example the display has notyet been created.



getWidth
public double getWidth()(Code)
Returns the Viewport's width in world coordinates. The bounds are in the same CRS as returned by the Viewport's width in world coordinates.



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



removeViewportModelListener
public void removeViewportModelListener(IViewportModelListener listener)(Code)
Removes a IViewportModelListener from this map.
Parameters:
  listener - Listener to be removed



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



worldToScreenTransform
public 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
See Also:   AffineTransform



worldToScreenTransform
public AffineTransform worldToScreenTransform(Envelope mapExtent, Dimension destination)(Code)
Gets up the affine transform that will transform from the world to the display of size destination. A convenience method. This method is independent of the CRS. 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.