Java Doc for ImagePane.java in  » GIS » GeoTools-2.4.1 » org » geotools » gui » swing » image » 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 » GeoTools 2.4.1 » org.geotools.gui.swing.image 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.gui.swing.ZoomPane
   org.geotools.gui.swing.image.ImagePane

ImagePane
public class ImagePane extends ZoomPane implements Runnable(Code)
A simple image viewer. This widget accepts either or image. Rendered image are display immediately, while renderable image will be rendered in a background thread when first requested. This widget may scale down images for faster rendering. This is convenient for image previews, but should not be used as a "real" renderer for full precision images.
since:
   2.3
version:
   $Id: ImagePane.java 20883 2006-08-07 13:48:09Z jgarnett $
author:
   Martin Desruisseaux



Constructor Summary
public  ImagePane()
     Constructs an initially empty image pane with a default rendered image size.
public  ImagePane(int renderedSize)
     Constructs an initially empty image pane with the specified rendered image size. The renderedSize argument is the maximum width and height for .

Method Summary
public  Rectangle2DgetArea()
     Returns the image bounds, or null if none.
protected  voidpaintComponent(Graphics2D graphics)
     Paint the image.
public  voidreset()
     Reset the default zoom.
public  voidrun()
     Creates a view of the image and notifies ZoomPane when the result is ready.
public  voidsetImage(RenderableImage image)
     Sets the source renderable image.
public  voidsetImage(RenderedImage image)
     Sets the source rendered image.


Constructor Detail
ImagePane
public ImagePane()(Code)
Constructs an initially empty image pane with a default rendered image size.



ImagePane
public ImagePane(int renderedSize)(Code)
Constructs an initially empty image pane with the specified rendered image size. The renderedSize argument is the maximum width and height for . Images greater than this value will be scaled down for faster rendering.




Method Detail
getArea
public Rectangle2D getArea()(Code)
Returns the image bounds, or null if none. This is used by ZoomPane in order to set the initial zoom.



paintComponent
protected void paintComponent(Graphics2D graphics)(Code)
Paint the image. If the image was a RenderableImage , then a RenderedImage will be computed in a background thread when this method is first invoked.



reset
public void reset()(Code)
Reset the default zoom. This method overrides the default implementation in order to keep the y axis in its Java2D direction (y value increasing down), which is the usual direction of most image.



run
public void run()(Code)
Creates a view of the image and notifies ZoomPane when the result is ready. This method is run in a background thread and should not be invoked directly, unless the user wants to trig the RenderedImage creation immediately.



setImage
public void setImage(RenderableImage image)(Code)
Sets the source renderable image.



setImage
public void setImage(RenderedImage image)(Code)
Sets the source rendered image.



Fields inherited from org.geotools.gui.swing.ZoomPane
final public static int DEFAULT_ZOOM(Code)(Java Doc)
final public static int RESET(Code)(Java Doc)
final public static int ROTATE(Code)(Java Doc)
final public static int SCALE_X(Code)(Java Doc)
final public static int SCALE_Y(Code)(Java Doc)
final public static int TRANSLATE_X(Code)(Java Doc)
final public static int TRANSLATE_Y(Code)(Java Doc)
final public static int UNIFORM_SCALE(Code)(Java Doc)
final protected AffineTransform zoom(Code)(Java Doc)

Methods inherited from org.geotools.gui.swing.ZoomPane
public void addMouseListener(MouseListener listener)(Code)(Java Doc)
public void addZoomChangeListener(ZoomChangeListener listener)(Code)(Java Doc)
public void buildNavigationMenu(JMenu menu)(Code)(Java Doc)
final public void correctApparentPixelPosition(Point2D point)(Code)(Java Doc)
public JComponent createScrollPane()(Code)(Java Doc)
protected void fireZoomChanged(AffineTransform change)(Code)(Java Doc)
abstract public Rectangle2D getArea()(Code)(Java Doc)
protected Dimension getDefaultSize()(Code)(Java Doc)
public Insets getInsets(Insets insets)(Code)(Java Doc)
final public Insets getInsets()(Code)(Java Doc)
public Paint getMagnifierBorder()(Code)(Java Doc)
public Paint getMagnifierGlass()(Code)(Java Doc)
protected JPopupMenu getMagnifierMenu(MouseEvent event)(Code)(Java Doc)
protected Shape getMouseSelectionShape(Point2D point)(Code)(Java Doc)
protected JPopupMenu getPopupMenu(MouseEvent event)(Code)(Java Doc)
final public Rectangle2D getPreferredArea()(Code)(Java Doc)
protected Dimension2D getPreferredPixelSize()(Code)(Java Doc)
public double getScaleFactor()(Code)(Java Doc)
final public Rectangle2D getVisibleArea()(Code)(Java Doc)
protected Rectangle getZoomableBounds(Rectangle bounds)(Code)(Java Doc)
final public boolean hasPreferredArea()(Code)(Java Doc)
public boolean isMagnifierEnabled()(Code)(Java Doc)
public boolean isMagnifierVisible()(Code)(Java Doc)
public boolean isPaintingWhileAdjusting()(Code)(Java Doc)
protected void mouseSelectionPerformed(Shape area)(Code)(Java Doc)
abstract protected void paintComponent(Graphics2D graphics)(Code)(Java Doc)
final protected void paintComponent(Graphics graphics)(Code)(Java Doc)
protected void paintMagnifier(Graphics2D graphics)(Code)(Java Doc)
protected void printComponent(Graphics2D graphics)(Code)(Java Doc)
final protected void printComponent(Graphics graphics)(Code)(Java Doc)
public void removeZoomChangeListener(ZoomChangeListener listener)(Code)(Java Doc)
public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
final protected void reset(Rectangle zoomableBounds, boolean yAxisUpward)(Code)(Java Doc)
public void scrollRectToVisible(Rectangle rect)(Code)(Java Doc)
public void setMagnifierBorder(Paint color)(Code)(Java Doc)
public void setMagnifierEnabled(boolean enabled)(Code)(Java Doc)
public void setMagnifierGlass(Paint color)(Code)(Java Doc)
public void setMagnifierVisible(boolean visible)(Code)(Java Doc)
public void setPaintingWhileAdjusting(boolean flag)(Code)(Java Doc)
final public void setPreferredArea(Rectangle2D area)(Code)(Java Doc)
protected void setResetPolicy(boolean fill)(Code)(Java Doc)
public void setVisibleArea(Rectangle2D logicalBounds) throws IllegalArgumentException(Code)(Java Doc)
public void tieModels(BoundedRangeModel x, BoundedRangeModel y)(Code)(Java Doc)
public void transform(AffineTransform change)(Code)(Java Doc)
public void transformPixels(AffineTransform change)(Code)(Java Doc)
public void untieModels(BoundedRangeModel x, BoundedRangeModel y)(Code)(Java Doc)
public void updateUI()(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.