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


net.refractions.udig.project.internal.render.ViewportModel

All known Subclasses:   net.refractions.udig.project.internal.render.impl.ViewportModelImpl,
ViewportModel
public interface ViewportModel extends EObject,IMapDisplayListener,IViewportModel(Code)
TODO Purpose of net.refractions.udig.project.internal.render


author:
   Jesse
since:
   1.0.0


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


Method Summary
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  MapgetMapInternal()
    
public  CoordinategetPixelSize()
     Returns the size of a pixel in world units.

For example if the world is in WGS 84(lat long) then the size will be in degrees

the size of a pixel in world units.
 RenderManagergetRenderManagerInternal()
     Returns the value of the 'Render Manager Internal' reference.
public  doublegetWidth()
     Returns the Viewport's width in world coordinates.
public  booleanisInitialized()
     Return true if it has been initialized with a display.
 booleanisSetCRS()
     Returns whether the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCRS CRS ' attribute is set.
public  ViewportModelpanUsingScreenCoords(int xpixels, int ypixels)
     Pans the viewport in terms of pixels on the screen.
public  ViewportModelpanUsingWorldCoords(double x, double y)
     Pans the viewport in terms of world units.
public  CoordinatepixelToWorld(int x, int y)
    
 voidsetBounds(Envelope value)
     Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getBounds Bounds ' attribute.
public  voidsetBounds(double minx, double maxx, double miny, double maxy)
     Sets the viewport's bounding box.
 voidsetCRS(CoordinateReferenceSystem value)
     Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCRS CRS ' attribute.
 voidsetCenter(Coordinate value)
     Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCenter Center ' attribute.
 voidsetHeight(double value)
     Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getHeight Height ' attribute.
public  voidsetInitialized(boolean initialized)
     Sets the initialized state of ViewportModel.
 voidsetMapInternal(Map value)
     Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getMapInternal Map Internal ' container reference.
 voidsetRenderManagerInternal(RenderManager value)
     Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getRenderManagerInternal Render Manager Internal ' reference.
public  voidsetScale(double scaleDenominator)
    
 voidsetWidth(double value)
     Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getWidth Width ' attribute.
 voidunsetCRS()
     Unsets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCRS CRS ' attribute.
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  ViewportModelzoom(double zoom)
     Increases or decreases the size of the viewport(in world space) by a constant factor, zoom. The zoom is equal in both directions.
public  voidzoomToBox(Envelope box)
    
public  voidzoomToExtent()
    

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



NIL_BBOX
final public static Envelope NIL_BBOX(Code)
A Default setting to use for the viewport screen size.



copyright
String copyright(Code)





Method Detail
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 bounding box of the Viewport in world coordinates.



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



getCenter
public Coordinate getCenter()(Code)
Returns the center of the viewport in world coordinates. the center of the viewport in world coordinates



getHeight
public double getHeight()(Code)
Returns the Viewport's height in world coordinates. the Viewport's height in world coordinates.



getMapInternal
public Map getMapInternal()(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.

For example if the world is in WGS 84(lat long) then the size will be in degrees

the size of a pixel in world units.



getRenderManagerInternal
RenderManager getRenderManagerInternal()(Code)
Returns the value of the 'Render Manager Internal' reference. It is bidirectional and its opposite is ' net.refractions.udig.project.internal.render.RenderManager.getViewportModelInternal Viewport Model Internal '.

If the meaning of the 'Render Manager' reference isn't clear, there really should be more of a description here...

the value of the 'Render Manager Internal' reference.
See Also:   ViewportModel.setRenderManagerInternal(RenderManager)
See Also:   net.refractions.udig.project.internal.render.RenderPackage.getViewportModel_RenderManagerInternal
See Also:   net.refractions.udig.project.internal.render.RenderManager.getViewportModelInternal



getWidth
public double getWidth()(Code)
Returns the Viewport's width in world coordinates. the Viewport's width in world coordinates.



isInitialized
public boolean isInitialized()(Code)
Return true if it has been initialized with a display. If no display is active then the viewportmodel is not initialized. true if it has been initialized with a display



isSetCRS
boolean isSetCRS()(Code)
Returns whether the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCRS CRS ' attribute is set. whether the value of the 'CRS' attribute is set.
See Also:   ViewportModel.unsetCRS()
See Also:   ViewportModel.getCRS()
See Also:   ViewportModel.setCRS(CoordinateReferenceSystem)



panUsingScreenCoords
public ViewportModel panUsingScreenCoords(int xpixels, int ypixels)(Code)
Pans the viewport in terms of pixels on the screen. Each pixel represents a distance in world coordinates, the x and y distances differ, so a pan of 8 pixels in the x direction will be translated to a pan of 8*xdistance in the world.
Parameters:
  xpixels - The amount to pan in the x direction
Parameters:
  ypixels - The amount to pan in the y direction this ViewportModel



panUsingWorldCoords
public ViewportModel panUsingWorldCoords(double x, double y)(Code)
Pans the viewport in terms of world units.
Parameters:
  x - The amount to pan in the x direction
Parameters:
  y - The amount to pan in the y direction this ViewportModel



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



setBounds
void setBounds(Envelope value)(Code)
Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getBounds Bounds ' attribute.

The bbox must have a positive width and height and must have a aspect ratio within 0.0000001 units of the value returned by .

It is recommended that setHeight() or setWidth() methods are used since they preserve the aspect ratio of the Viewport


Parameters:
  value - the new value of the 'Bounds' attribute.
See Also:   ViewportModel.getBounds()




setBounds
public void setBounds(double minx, double maxx, double miny, double maxy) throws IllegalArgumentException(Code)
Sets the viewport's bounding box. The bounding box will be fit to the window based on the MapDisplay so the bounds provided here may not be the final bounds.
Parameters:
  minx - the minimum x value of the new bounding box.
Parameters:
  maxx - the maximum x value of the new bounding box.
Parameters:
  miny - the minimum y value of the new bounding box.
Parameters:
  maxy - the maximum x value of the new bounding box.
throws:
  IllegalArgumentException - If the above criteria are not met this exception is thrown.



setCRS
void setCRS(CoordinateReferenceSystem value)(Code)
Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCRS CRS ' attribute.
Parameters:
  value - the new value of the 'CRS' attribute.
See Also:   ViewportModel.isSetCRS()
See Also:   ViewportModel.unsetCRS()
See Also:   ViewportModel.getCRS()



setCenter
void setCenter(Coordinate value)(Code)
Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCenter Center ' attribute.
Parameters:
  value - the new value of the 'Center' attribute.
See Also:   ViewportModel.getCenter()



setHeight
void setHeight(double value)(Code)
Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getHeight Height ' attribute.
Parameters:
  value - the new value of the 'Height' attribute.
See Also:   ViewportModel.getHeight()



setInitialized
public void setInitialized(boolean initialized)(Code)
Sets the initialized state of ViewportModel.
Parameters:
  initialized -



setMapInternal
void setMapInternal(Map value)(Code)
Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getMapInternal Map Internal ' container reference.
Parameters:
  value - the new value of the 'Map Internal' container reference.
See Also:   ViewportModel.getMapInternal()



setRenderManagerInternal
void setRenderManagerInternal(RenderManager value)(Code)
Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getRenderManagerInternal Render Manager Internal ' reference.
Parameters:
  value - the new value of the 'Render Manager Internal' reference.
See Also:   ViewportModel.getRenderManagerInternal()



setScale
public void setScale(double scaleDenominator)(Code)
Sets the zoom level of the viewport so that the scale denominator will be equal to scale
Parameters:
  scaleDenominator - desired scale denominator



setWidth
void setWidth(double value)(Code)
Sets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getWidth Width ' attribute.
Parameters:
  value - the new value of the 'Width' attribute.
See Also:   ViewportModel.getWidth()



unsetCRS
void unsetCRS()(Code)
Unsets the value of the ' net.refractions.udig.project.internal.render.ViewportModel.getCRS CRS ' attribute.
See Also:   ViewportModel.isSetCRS()
See Also:   ViewportModel.getCRS()
See Also:   ViewportModel.setCRS(CoordinateReferenceSystem)



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.



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



zoom
public ViewportModel zoom(double zoom)(Code)
Increases or decreases the size of the viewport(in world space) by a constant factor, zoom. The zoom is equal in both directions. The function used is: bbox.height=bbox.height/divisor bbox.width=bbox.width/divisor
  • A zoom must be greater than 1.
  • A zoom greater than 1 is a zoom towards the map(Feature appear larger.)
  • A zoom less than 1 is a zoom away from the map

Parameters:
  zoom - the zoom factor This ViewportModel, allows for command chaining.



zoomToBox
public void zoomToBox(Envelope box)(Code)
sets the Viewport bounding box so that it contains the new box



zoomToExtent
public void zoomToExtent()(Code)
sets the Viewport bounding box so that it fully contains the visible map extent



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