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


net.refractions.udig.project.ui.internal.render.displayAdapter.impl.ViewportPaneSWT

ViewportPaneSWT
public class ViewportPaneSWT extends Canvas implements ViewportPane(Code)
The ViewportPaneImpl is a java.awt.Panel that is the display area for a Map. It Registers itself with a RenderStack and obtains the image from the RenderStack if the RenderStack is "ready"
author:
   Jesse Eichar
version:
   $Revision: 1.9 $


Field Summary
 DimensiondisplaySize
    
 EventJobeventJob
    

Constructor Summary
public  ViewportPaneSWT(Composite comp, MapEditor editor)
     Creates a new ViewportPaneImpl object.

Method Summary
public  voidaddDrawCommand(IDrawCommand command)
    
public  voidaddMouseListener(MapMouseListener l)
    
public  voidaddMouseMotionListener(MapMouseMotionListener l)
    
public  voidaddMouseWheelListener(MapMouseWheelListener l)
    
public  voidaddPaneListener(IMapDisplayListener listener)
    
public  voiddispose()
    
public  voidenableDrawCommands(boolean enable)
    
public  ControlgetControl()
    
public  intgetDPI()
    
public  DimensiongetDisplaySize()
    
public  intgetHeight()
    
 org.eclipse.swt.graphics.ImagegetImage()
     Returns buffer image and if necessary creates the new one while disposing the old.
public  MapEditorgetMapEditor()
    
public  intgetWidth()
    
public  BufferedImageimage(int w, int h)
     Create a image that is compatible with this ViewportPane.

This image is a large block of memory that will be blitted into an SWT Image.

 voidinitMap()
     Just signals to recreate buffer image in the next redrawing routine.
public  voidpaint(GC g, Display display)
    
public  voidremoveMouseListener(MapMouseListener l)
    
public  voidremoveMouseMotionListener(MapMouseMotionListener l)
    
public  voidremoveMouseWheelListener(MapMouseWheelListener l)
    
public  voidremovePaneListener(IMapDisplayListener listener)
    
public  voidrenderDone()
    
public  voidrenderStarting()
    
public  voidrenderUpdate()
    
public  voidrepaint(int x, int y, int width, int height)
    
public  voidrepaint()
    
public  voidsetCursor(Cursor cursor)
    
public  voidsetCursor(org.eclipse.swt.graphics.Cursor cursor)
    
public  voidsetRenderManager(RenderManager manager)
    

Field Detail
displaySize
Dimension displaySize(Code)



eventJob
EventJob eventJob(Code)




Constructor Detail
ViewportPaneSWT
public ViewportPaneSWT(Composite comp, MapEditor editor)(Code)
Creates a new ViewportPaneImpl object.
Parameters:
  comp - The Composite that this pane will be embedded into
Parameters:
  renderStack - The renderstack that is rendering onto this viewport
Parameters:
  vmodel - The Viewport model that models this viewport




Method Detail
addDrawCommand
public void addDrawCommand(IDrawCommand command)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.addDrawCommand(net.refractions.udig.project.internal.commands.draw.IDrawCommand)



addMouseListener
public void addMouseListener(MapMouseListener l)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.addMouseListener(net.refractions.udig.project.render.MapMouseListener)



addMouseMotionListener
public void addMouseMotionListener(MapMouseMotionListener l)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.addMouseMotionListener(net.refractions.udig.project.render.MapMouseMotionListener)



addMouseWheelListener
public void addMouseWheelListener(MapMouseWheelListener l)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.addMouseWheelListener(net.refractions.udig.project.render.MapMouseWheelListener)



addPaneListener
public void addPaneListener(IMapDisplayListener listener)(Code)

See Also:   net.refractions.udig.project.ui.render.displayAdapter.ViewportPane.addPaneListener(net.refractions.udig.project.render.displayAdapter.MapDisplayListener)



dispose
public void dispose()(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.dispose



enableDrawCommands
public void enableDrawCommands(boolean enable)(Code)



getControl
public Control getControl()(Code)



getDPI
public int getDPI()(Code)



getDisplaySize
public Dimension getDisplaySize()(Code)

See Also:   net.refractions.udig.project.render.MapDisplay.getDisplaySize



getHeight
public int getHeight()(Code)

See Also:   net.refractions.udig.project.render.MapDisplay.getHeight



getImage
org.eclipse.swt.graphics.Image getImage()(Code)
Returns buffer image and if necessary creates the new one while disposing the old.



getMapEditor
public MapEditor getMapEditor()(Code)

See Also:   net.refractions.udig.project.ui.render.displayAdapter.ViewportPane.getMapEditor



getWidth
public int getWidth()(Code)

See Also:   net.refractions.udig.project.render.MapDisplay.getWidth



image
public BufferedImage image(int w, int h)(Code)
Create a image that is compatible with this ViewportPane.

This image is a large block of memory that will be blitted into an SWT Image. Currently this is BufferedImage.TYPE_4BYTE_ABGR although you should never depend on the Image type directly.

This image is *not* expected to be hardware accelarated, althought the blit process will be.


See Also:   net.refractions.udig.project.render.ViewportPane.acquireImage(intint)
Parameters:
  w - width
Parameters:
  h - height BufferedImage with same color model as SWT Image.



initMap
void initMap()(Code)
Just signals to recreate buffer image in the next redrawing routine.



paint
public void paint(GC g, Display display)(Code)
Called by the Paint listener to update the canvas
Parameters:
  display - the display of the canvas.
Parameters:
  g - the GC object to use to draw with.



removeMouseListener
public void removeMouseListener(MapMouseListener l)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.removeMouseListener(net.refractions.udig.project.render.MapMouseListener)



removeMouseMotionListener
public void removeMouseMotionListener(MapMouseMotionListener l)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.removeMouseMotionListener(net.refractions.udig.project.render.MapMouseMotionListener)



removeMouseWheelListener
public void removeMouseWheelListener(MapMouseWheelListener l)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.removeMouseWheelListener(net.refractions.udig.project.render.MapMouseWheelListener)



removePaneListener
public void removePaneListener(IMapDisplayListener listener)(Code)

See Also:   net.refractions.udig.project.ui.render.displayAdapter.ViewportPane.removePaneListener(net.refractions.udig.project.render.displayAdapter.MapDisplayListener)



renderDone
public void renderDone()(Code)

See Also:   net.refractions.udig.project.ui.render.displayAdapter.ViewportPane.renderDone



renderStarting
public void renderStarting()(Code)

See Also:   net.refractions.udig.project.ui.render.displayAdapter.ViewportPane.renderStarting



renderUpdate
public void renderUpdate()(Code)

See Also:   net.refractions.udig.project.ui.render.displayAdapter.ViewportPane.renderUpdate



repaint
public void repaint(int x, int y, int width, int height)(Code)



repaint
public void repaint()(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.repaint



setCursor
public void setCursor(Cursor cursor)(Code)

See Also:   net.refractions.udig.project.render.ViewportPane.setCursor(java.awt.Cursor)



setCursor
public void setCursor(org.eclipse.swt.graphics.Cursor cursor)(Code)



setRenderManager
public void setRenderManager(RenderManager manager)(Code)

See Also:   net.refractions.udig.project.ui.render.displayAdapter.ViewportPane.setRenderManager(net.refractions.udig.project.render.RenderManager)



ww__w.j___ava__2_s___.__co__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.