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


java.lang.Object
   java.awt.Component
      java.awt.Container
         javax.swing.JComponent
            org.geotools.gui.swing.ZoomPane

All known Subclasses:   org.geotools.gui.swing.image.ImagePane,
ZoomPane
abstract public class ZoomPane extends JComponent implements DeformableViewer(Code)
Base class for widget with a zoomable content. User can perform zooms using keyboard, menu or mouse. ZoomPane is an abstract class. Subclass must override at least two methods:

  • ZoomPane.getArea() , which must return a bounding box for the content to paint. This area can be expressed in arbitrary units. For example, an object wanting to display a geographic map with a content ranging from 10° to 15°E and 40° to 45°N should override this method as follows:
      public Rectangle2D getArea() {
          return new Rectangle2D.Double(10, 40, 5, 5);
      }
     
  • ZoomPane.paintComponent(Graphics2D) , which must paint the widget content. Implementation must invoke graphics.transform({link #zoom}) somewhere in its code in order to perform the zoom. Note that, by default, the is initialized in such a way that the y axis points upwards, like the convention in geometry. This is as opposed to the default Java2D axis orientation, where the y axis points downwards. If the implementation wants to paint text, it should do this with the default transform. Example:
      protected void paintComponent(final Graphics2D graphics) {
          graphics.clip({link #getZoomableBounds getZoomableBounds}(null));
          final AffineTransform textTr = graphics.getTransform();
          graphics.transform({link #zoom});
          
          // Paint the widget here, using logical coordinates. The
          // coordinate system is the same as 
    ZoomPane.getArea() 's one.
          
          graphics.setTransform(textTr);
          
          // Paint any text here, in pixel coordinates.
          
      }
     

Subclass can also override ZoomPane.reset , which sets up the initial . The default implementation sets up the initial zoom in such a way that the following relations are approximately held:

Logical coordinates provided by ZoomPane.getPreferredArea() , after an affine transform described by ZoomPane.zoom , match pixel coordinates provided by ZoomPane.getZoomableBounds(Rectangle) .

The "preferred area" is initially the same as ZoomPane.getArea() . The user can specify a different preferred area with ZoomPane.setPreferredArea . The user can also reduce zoomable bounds by inserting an empty border around the widget, e.g.:

  setBorder(BorderFactory.createEmptyBorder(top, left, bottom, right));
 

 

Zoom actions

Whatever action is performed by the user, all zoom commands are translated as calls to ZoomPane.transform . Derived classes can redefine this method if they want to take particular actions during zooms, for example, modifying the minimum and maximum of a graph's axes. The table below shows the keyboard presses assigned to each zoom:

Key Purpose Action name
Scroll up "Up"
Scroll down "Down"
Scroll left "Left"
Scroll right"Right"
Zoom in "ZoomIn"
Zoom out "ZoomOut"
Zoom "Zoom"
Default zoom"Reset"
Ctrl+ Anti-clockwise rotation"RotateLeft"
Ctrl+Clockwise rotation "RotateRight"

In this table, the last column gives the Strings by which the different actions which manage the zooms. For example, to zoom in, we must write ZoomPane.getActionMap() getActionMap() .get("ZoomIn").

Note: JScrollPane objects are not suitable for adding scrollbars to a ZoomPane object. Instead, use ZoomPane.createScrollPane . Once again, all movements performed by the user through the scrollbars will be translated by calls to ZoomPane.transform .


since:
   2.0
version:
   $Id: ZoomPane.java 27862 2007-11-12 19:51:19Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final public static  intDEFAULT_ZOOM
     Constant indicating default zoom close to the maximum permitted zoom.
final public static  intRESET
     Constant indicating the resetting of scale, rotation and translation to a default value which makes the whole graphic appear in a window.
final public static  intROTATE
     Constant indicating a rotation.
final public static  intSCALE_X
     Constant indicating the scale changes on the x axis.
final public static  intSCALE_Y
     Constant indicating the scale changes on the y axis.
final public static  intTRANSLATE_X
     Constant indicating the translations on the x axis.
final public static  intTRANSLATE_Y
     Constant indicating the translations on the y axis.
final public static  intUNIFORM_SCALE
     Constant indicating the scale changes on the x and y axes, with the added condition that these changes must be uniform.
final protected  AffineTransformzoom
     Affine transform containing zoom factors, translations and rotations.

Constructor Summary
public  ZoomPane(int type)
     Construct a ZoomPane .
Parameters:
  type - Allowed zoom type.

Method Summary
public  voidaddMouseListener(MouseListener listener)
     Adds an object to the list of objects interested in being notified about mouse events.
public  voidaddZoomChangeListener(ZoomChangeListener listener)
     Adds an object to the list of objects interested in being notified about zoom changes.
public  voidbuildNavigationMenu(JMenu menu)
     Adds navigation options to the specified menu.
final public  voidcorrectApparentPixelPosition(Point2D point)
     Corrects a pixel's coordinates for removing the effect of the magnifying glass.
public  JComponentcreateScrollPane()
     Returns an object which displays this ZoomPane with the scrollbars.
protected  voidfireZoomChanged(AffineTransform change)
     Signals that a zoom change has taken place.
abstract public  Rectangle2DgetArea()
     Returns a bounding box that contains the logical coordinates of all data that may be displayed in this ZoomPane .
protected  DimensiongetDefaultSize()
     Returns the default size for this component.
public  InsetsgetInsets(Insets insets)
     Returns the Insets of this component.
final public  InsetsgetInsets()
     Returns the Insets of this component.
public  PaintgetMagnifierBorder()
     Returns the color of the magnifying glass's border.
public  PaintgetMagnifierGlass()
     Returns the color with which to tint magnifying glass.
protected  JPopupMenugetMagnifierMenu(MouseEvent event)
     Method called automatically when the user clicks on the right mouse button inside the magnifying glass.
protected  ShapegetMouseSelectionShape(Point2D point)
     Returns the geometric shape to be used to delimitate an area.
protected  JPopupMenugetPopupMenu(MouseEvent event)
     Method called automatically when the user clicks on the right mouse button.
final public  Rectangle2DgetPreferredArea()
     Returns the logical coordinates of the region that we want to see displayed the first time that ZoomPane appears on the screen.
protected  Dimension2DgetPreferredPixelSize()
     Returns the preferred pixel size for a close zoom.
public  doublegetScaleFactor()
     Returns the current scale factor.
final public  Rectangle2DgetVisibleArea()
     Returns the logical coordinates of the region visible on the screen.
protected  RectanglegetZoomableBounds(Rectangle bounds)
     Returns the bounding box (in pixel coordinates) of the zoomable area.
final public  booleanhasPreferredArea()
     Indicates whether the logical coordinates of a region have been defined.
public  booleanisMagnifierEnabled()
     Indicates whether or not the magnifying glass is allowed to be displayed on this component.
public  booleanisMagnifierVisible()
     Indicates whether or not the magnifying glass is visible.
public  booleanisPaintingWhileAdjusting()
     Indicates whether or not this ZoomPane object should be repainted when the user moves the scrollbar slider.
static  voidlog(String className, String methodName, Rectangle2D area)
     Convenience method for logging events related to area setting.
protected  voidmouseSelectionPerformed(Shape area)
     Method called automatically after the user selects an area with the mouse.
abstract protected  voidpaintComponent(Graphics2D graphics)
     Paints this component.
final protected  voidpaintComponent(Graphics graphics)
     Paints this component.
protected  voidpaintMagnifier(Graphics2D graphics)
     Paints the magnifying glass.
protected  voidprintComponent(Graphics2D graphics)
     Prints this component.
final protected  voidprintComponent(Graphics graphics)
     Prints this component.
public  voidremoveZoomChangeListener(ZoomChangeListener listener)
     Removes an object from the list of objects interested in being notified about zoom changes.
public  voidrepaint(long tm, int x, int y, int width, int height)
     Declares that a part of this pane needs to be repainted.
public  voidreset()
     Reinitializes the affine transform ZoomPane.zoom in order to cancel any zoom, rotation or translation.
final protected  voidreset(Rectangle zoomableBounds, boolean yAxisUpward)
     Reinitializes the affine transform ZoomPane.zoom in order to cancel any zoom, rotation or translation.
public  voidscrollRectToVisible(Rectangle rect)
     Modifies the position in pixels of the visible part of ZoomPane .
public  voidsetMagnifierBorder(Paint color)
     Set the color of the magnifying glass's border.
public  voidsetMagnifierEnabled(boolean enabled)
     Specifies whether or not the magnifying glass is allowed to be displayed on this component.
public  voidsetMagnifierGlass(Paint color)
     Set the color with which to tint magnifying glass.
public  voidsetMagnifierVisible(boolean visible)
     Displays or hides the magnifying glass.
public  voidsetPaintingWhileAdjusting(boolean flag)
     Defines whether or not this ZoomPane object should repaint the map when the user moves the scrollbar slider.
final public  voidsetPreferredArea(Rectangle2D area)
     Specifies the logical coordinates of the region that we want to see displayed the first time that ZoomPane appears on the screen.
protected  voidsetResetPolicy(boolean fill)
     Set the policy for the zoom when the content is initially drawn or when the user resets the zoom.
public  voidsetVisibleArea(Rectangle2D logicalBounds)
     Defines the limits of the visible part, in logical coordinates.
public  voidtieModels(BoundedRangeModel x, BoundedRangeModel y)
     Synchronises the position and the range of the models x and y with the position of the zoom.
public  voidtransform(AffineTransform change)
     Changes the by applying an affine transform.
public  voidtransformPixels(AffineTransform change)
     Changes the by applying an affine transform.
public  voiduntieModels(BoundedRangeModel x, BoundedRangeModel y)
     Cancels the synchronisation between the specified x and y models and the zoom of this ZoomPane object.
public  voidupdateUI()
     Informs ZoomPane that the GUI has changed.

Field Detail
DEFAULT_ZOOM
final public static int DEFAULT_ZOOM(Code)
Constant indicating default zoom close to the maximum permitted zoom. This zoom should allow details of the graphic to be seen without being overly big. Note: this flag will only have any effect if at least one of the ZoomPane.SCALE_X and ZoomPane.SCALE_Y flags is not also specified.



RESET
final public static int RESET(Code)
Constant indicating the resetting of scale, rotation and translation to a default value which makes the whole graphic appear in a window. This command is translated by a call to ZoomPane.reset .



ROTATE
final public static int ROTATE(Code)
Constant indicating a rotation.



SCALE_X
final public static int SCALE_X(Code)
Constant indicating the scale changes on the x axis.



SCALE_Y
final public static int SCALE_Y(Code)
Constant indicating the scale changes on the y axis.



TRANSLATE_X
final public static int TRANSLATE_X(Code)
Constant indicating the translations on the x axis.



TRANSLATE_Y
final public static int TRANSLATE_Y(Code)
Constant indicating the translations on the y axis.



UNIFORM_SCALE
final public static int UNIFORM_SCALE(Code)
Constant indicating the scale changes on the x and y axes, with the added condition that these changes must be uniform. This flag combines ZoomPane.SCALE_X and ZoomPane.SCALE_Y . The inverse, however, ( ZoomPane.SCALE_X | ZoomPane.SCALE_Y ) doesn't imply UNIFORM_SCALE .



zoom
final protected AffineTransform zoom(Code)
Affine transform containing zoom factors, translations and rotations. During the painting of a component, this affine transform should be combined with a call to Graphics2D.transform(AffineTransform) Graphics2D.transform (zoom).




Constructor Detail
ZoomPane
public ZoomPane(int type) throws IllegalArgumentException(Code)
Construct a ZoomPane .
Parameters:
  type - Allowed zoom type. It can be a bitwise combination of the following constants:ZoomPane.SCALE_X, ZoomPane.SCALE_Y, ZoomPane.UNIFORM_SCALE, ZoomPane.TRANSLATE_X,ZoomPane.TRANSLATE_Y, ZoomPane.ROTATE, ZoomPane.RESET and ZoomPane.DEFAULT_ZOOM.
throws:
  IllegalArgumentException - If type is invalid.




Method Detail
addMouseListener
public void addMouseListener(MouseListener listener)(Code)
Adds an object to the list of objects interested in being notified about mouse events.



addZoomChangeListener
public void addZoomChangeListener(ZoomChangeListener listener)(Code)
Adds an object to the list of objects interested in being notified about zoom changes.



buildNavigationMenu
public void buildNavigationMenu(JMenu menu)(Code)
Adds navigation options to the specified menu. Menus such as "Zoom in" and "Zoom out" will be automatically added to the menu together with the appropriate short-cut keys.



correctApparentPixelPosition
final public void correctApparentPixelPosition(Point2D point)(Code)
Corrects a pixel's coordinates for removing the effect of the magnifying glass. Without this method, transformations from pixels to geographic coordinates would not give accurate results for pixels inside the magnifier since the magnifier moves the pixel's apparent position. Invoking this method will remove deformation effects using the following steps:

  • If the pixel's coordinate point is outside the magnifier, then this method do nothing.
  • Otherwise, if the pixel's coordinate is inside the magnifier, then this method update point in such a way that it contains the position that the exact same pixel would have in the absence of magnifier.

Parameters:
  point - In input, a pixel's coordinate as it appears on the screen. In output, thecoordinate that the same pixel would have if the magnifier wasn't presents.



createScrollPane
public JComponent createScrollPane()(Code)
Returns an object which displays this ZoomPane with the scrollbars.



fireZoomChanged
protected void fireZoomChanged(AffineTransform change)(Code)
Signals that a zoom change has taken place. Every object registered by the ZoomPane.addZoomChangeListener method will be notified of the change as soon as possible.
Parameters:
  change - Affine transform which represents the change in the zoom. That is oldZoom and newZoom are the affine transforms of the old and new zoomrespectively. Therefore, the relationnewZoom=oldZoom.AffineTransform.concatenate concatenate(change)must be respected (to within rounding errors). Note: This method can modify change to combine several consecutive calls of fireZoomChanged in a single transformation.



getArea
abstract public Rectangle2D getArea()(Code)
Returns a bounding box that contains the logical coordinates of all data that may be displayed in this ZoomPane . For example, if this ZoomPane is to display a geographic map, then this method should return the map's bounds in degrees of latitude and longitude. This bounding box is completely independent of any current zoom setting and will change only if the content changes. A bounding box for the logical coordinates of all contents that are going to bedrawn in this ZoomPane . If this bounding box is unknown, then this methodcan return null (but this is not recommended).



getDefaultSize
protected Dimension getDefaultSize()(Code)
Returns the default size for this component. This is the size returned by ZoomPane.getPreferredSize if no preferred size has been explicitly set with ZoomPane.setPreferredSize . The default size for this component.



getInsets
public Insets getInsets(Insets insets)(Code)
Returns the Insets of this component. This method works like super.getInsets(insets) , but accepts a null argument. This method can be redefined if it is necessary to perform zooms on a part of the graphic rather than the whole thing.



getInsets
final public Insets getInsets()(Code)
Returns the Insets of this component. This method is declared final in order to avoid confusion. If you want to return other Insets you must redefine ZoomPane.getInsets(Insets) .



getMagnifierBorder
public Paint getMagnifierBorder()(Code)
Returns the color of the magnifying glass's border.



getMagnifierGlass
public Paint getMagnifierGlass()(Code)
Returns the color with which to tint magnifying glass.



getMagnifierMenu
protected JPopupMenu getMagnifierMenu(MouseEvent event)(Code)
Method called automatically when the user clicks on the right mouse button inside the magnifying glass. The default implementation displays a contextual menu which contains magnifying glass options.
Parameters:
  event - Mouse event containing amongst others, the mouse position. The contextual menu, or null to avoid displaying the menu.



getMouseSelectionShape
protected Shape getMouseSelectionShape(Point2D point)(Code)
Returns the geometric shape to be used to delimitate an area. This shape is generally a rectangle but could also be an ellipse, an arrow or another shape. The coordinates of the returned shape won't be taken into account. In fact, these coordinates will often be destroyed. The only things which count are the class of the returned shape (e.g. java.awt.geom.Ellipse2D vs java.awt.geom.Rectangle2D ) and any of its parameters not related to its position (e.g. corner rounding in a rectangle java.awt.geom.RoundRectangle2D ).

The returned shape will generally be from a class derived from RectangularShape , but can also be from the class Line2D . Any other class risks firing a ClassCastException at execution. The default implementation always returns a java.awt.geom.Rectangle2D object.
Parameters:
  point - Logical coordinates of the mouse at the moment the button is pressed. Thisinformation can be used by derived classes that wish to consider the mouse positionbefore choosing a geometric shape. Shape from the class {link RectangularShape} or {link Line2D}, or null toindicate that we do not want to select with the mouse.




getPopupMenu
protected JPopupMenu getPopupMenu(MouseEvent event)(Code)
Method called automatically when the user clicks on the right mouse button. The default implementation displays a contextual menu containing navigation options.
Parameters:
  event - Mouse event. This object contains the mouse coordinatesin geographic coordinates (as well as pixel coordinates). The contextual menu, or null to avoid displaying the menu.



getPreferredArea
final public Rectangle2D getPreferredArea()(Code)
Returns the logical coordinates of the region that we want to see displayed the first time that ZoomPane appears on the screen. This region will also be displayed each time the method {link #reset} is called. The default implementation goes as follows: The logical coordinates of the region to be initially displayed,or null if these coordinates are unknown.



getPreferredPixelSize
protected Dimension2D getPreferredPixelSize()(Code)
Returns the preferred pixel size for a close zoom. For image rendering, the preferred pixel size is the image's pixel size in logical units. For other kinds of rendering, this "pixel" size should be some reasonable resolution. The default implementation computes a default value from ZoomPane.getArea .



getScaleFactor
public double getScaleFactor()(Code)
Returns the current scale factor. A value of 1/100 means that 100 metres are displayed as 1 pixel (provided that the logical coordinates of ZoomPane.getArea are expressed in metres). Scale factors for X and Y axes can be computed separately using the following equations:
This method combines scale along both axes, which is correct if this ZoomPane has been constructed with the ZoomPane.UNIFORM_SCALE type.



getVisibleArea
final public Rectangle2D getVisibleArea()(Code)
Returns the logical coordinates of the region visible on the screen. In the case of a geographic map, for example, the logical coordinates can be expressed in degrees of latitude/longitude or even in metres if a cartographic projection has been defined.



getZoomableBounds
protected Rectangle getZoomableBounds(Rectangle bounds)(Code)
Returns the bounding box (in pixel coordinates) of the zoomable area. This method is similar to ZoomPane.getBounds(Rectangle) , except that the zoomable area may be smaller than the whole widget area. For example, a chart needs to keep some space for axes around the zoomable area. Another difference is that pixel coordinates are relative to the widget, i.e. the (0,0) coordinate lies on the ZoomPane upper left corner, no matter what its location on screen.

ZoomPane invokes getZoomableBounds when it needs to set up an initial ZoomPane.zoom value. Subclasses should also set the clip area to this bounding box in their ZoomPane.paintComponent(Graphics2D) method before setting the graphics transform. For example:

 graphics.clip(getZoomableBounds(null));
 graphics.transform(
ZoomPane.zoom );
 

Parameters:
  bounds - An optional pre-allocated rectangle, or null to create a new one. Thisargument is useful if the caller wants to avoid allocating a new object on the heap. The bounding box of the zoomable area, in pixel coordinatesrelative to this ZoomPane widget.



hasPreferredArea
final public boolean hasPreferredArea()(Code)
Indicates whether the logical coordinates of a region have been defined. This method returns true if ZoomPane.setPreferredArea has been called with a non null argument.



isMagnifierEnabled
public boolean isMagnifierEnabled()(Code)
Indicates whether or not the magnifying glass is allowed to be displayed on this component. By default, it is allowed.



isMagnifierVisible
public boolean isMagnifierVisible()(Code)
Indicates whether or not the magnifying glass is visible. By default, it is not visible. Call ZoomPane.setMagnifierVisible(boolean) to make it appear.



isPaintingWhileAdjusting
public boolean isPaintingWhileAdjusting()(Code)
Indicates whether or not this ZoomPane object should be repainted when the user moves the scrollbar slider. The scrollbars (or other models) involved are those which have been synchronised with this ZoomPane object through the ZoomPane.tieModels method. The default value is false , which means that ZoomPane will wait until the user releases the slider before repainting.



log
static void log(String className, String methodName, Rectangle2D area)(Code)
Convenience method for logging events related to area setting. Events are logged in the "org.geotools.gui" logger with Level.FINER . ZoomPane invokes this method for logging any [@link #setPreferredArea} and ZoomPane.setVisibleArea invocations. Subclasses may invoke this method for logging some other kinds of area changes.
Parameters:
  className - The fully qualified caller's class name(e.g. "org.geotools.swing.ZoomPane" ).
Parameters:
  methodName - The caller's method name (e.g. "setArea" ).
Parameters:
  area - The coordinates to log (may be null ).



mouseSelectionPerformed
protected void mouseSelectionPerformed(Shape area)(Code)
Method called automatically after the user selects an area with the mouse. The default implementation zooms to the selected area . Derived classes can redefine this method in order to carry out another action.
Parameters:
  area - Area selected by the user, in logical coordinates.



paintComponent
abstract protected void paintComponent(Graphics2D graphics)(Code)
Paints this component. Subclass must override this method in order to draw the ZoomPane content. For most implementations, the first line in this method will be graphics.transform( ZoomPane.zoom ).



paintComponent
final protected void paintComponent(Graphics graphics)(Code)
Paints this component. This method is declared final in order to avoid unintentional overriding. Override ZoomPane.paintComponent(Graphics2D) instead.



paintMagnifier
protected void paintMagnifier(Graphics2D graphics)(Code)
Paints the magnifying glass. This method is invoked after ZoomPane.paintComponent(Graphics2D) if a magnifying glass is visible.



printComponent
protected void printComponent(Graphics2D graphics)(Code)
Prints this component. The default implementation invokes ZoomPane.paintComponent(Graphics2D) .



printComponent
final protected void printComponent(Graphics graphics)(Code)
Prints this component. This method is declared final in order to avoid unintentional overriding. Override ZoomPane.printComponent(Graphics2D) instead.



removeZoomChangeListener
public void removeZoomChangeListener(ZoomChangeListener listener)(Code)
Removes an object from the list of objects interested in being notified about zoom changes.



repaint
public void repaint(long tm, int x, int y, int width, int height)(Code)
Declares that a part of this pane needs to be repainted. This method simply redefines the method of the parent class in order to take into account a case where the magnifying glass is displayed.



reset
public void reset()(Code)
Reinitializes the affine transform ZoomPane.zoom in order to cancel any zoom, rotation or translation. The default implementation initializes the affine transform ZoomPane.zoom in order to make the y axis point upwards and make the whole of the region covered by the ZoomPane.getPreferredArea logical coordinates appear in the panel.

Note: for the derived classes: reset() is the only method of ZoomPane which doesn't have to pass through ZoomPane.transform(AffineTransform) to modify the zoom. This exception is necessary to avoid falling into an infinite loop.




reset
final protected void reset(Rectangle zoomableBounds, boolean yAxisUpward)(Code)
Reinitializes the affine transform ZoomPane.zoom in order to cancel any zoom, rotation or translation. The argument yAxisUpward indicates whether the y axis should point upwards. The value false lets it point downwards. This method is offered for convenience sake for derived classes which want to redefine ZoomPane.reset() .
Parameters:
  zoomableBounds - Coordinates, in pixels, of the screen space in which to draw.This argument will usually beZoomPane.getZoomableBounds(Rectangle) getZoomableBounds(null).
Parameters:
  yAxisUpward - true if the y axis should point upwards rather thandownwards.



scrollRectToVisible
public void scrollRectToVisible(Rectangle rect)(Code)
Modifies the position in pixels of the visible part of ZoomPane . viewSize is the size ZoomPane would be (in pixels) if its visible surface covered the whole of the ZoomPane.getArea region with the current zoom (Note: viewSize can be obtained by ZoomPane.getPreferredSize if ZoomPane.setPreferredSize hasn't been called with a non-null value). Therefore, by definition, the region ZoomPane.getArea converted into pixel space would give the rectangle bounds=Rectangle(0, 0, ,viewSize.width, ,viewSize.height).

This scrollRectToVisible method allows us to define the sub-region of bounds which must appear in the ZoomPane window.




setMagnifierBorder
public void setMagnifierBorder(Paint color)(Code)
Set the color of the magnifying glass's border.



setMagnifierEnabled
public void setMagnifierEnabled(boolean enabled)(Code)
Specifies whether or not the magnifying glass is allowed to be displayed on this component. Calling this method with the value false will hide the magnifying glass, delete the choice "Display magnifying glass" from the contextual menu and lead to all calls to ZoomPane.setMagnifierVisible setMagnifierVisible (true) being ignored.



setMagnifierGlass
public void setMagnifierGlass(Paint color)(Code)
Set the color with which to tint magnifying glass.



setMagnifierVisible
public void setMagnifierVisible(boolean visible)(Code)
Displays or hides the magnifying glass. If the magnifying glass is not visible and this method is called with the argument true , the magnifying glass will appear at the centre of the window.



setPaintingWhileAdjusting
public void setPaintingWhileAdjusting(boolean flag)(Code)
Defines whether or not this ZoomPane object should repaint the map when the user moves the scrollbar slider. A fast computer is recommended if this flag is to be set to true .



setPreferredArea
final public void setPreferredArea(Rectangle2D area)(Code)
Specifies the logical coordinates of the region that we want to see displayed the first time that ZoomPane appears on the screen. This region will also be displayed the first time that the method {link #reset} is called.



setResetPolicy
protected void setResetPolicy(boolean fill)(Code)
Set the policy for the zoom when the content is initially drawn or when the user resets the zoom. Value true means that the panel should initially be completely filled, even if the content partially falls outside the panel's bounds. Value false means that the full content should appear in the panel, even if some space is not used. Default value is false .



setVisibleArea
public void setVisibleArea(Rectangle2D logicalBounds) throws IllegalArgumentException(Code)
Defines the limits of the visible part, in logical coordinates. This method will modify the zoom and the translation in order to display the specified region. If ZoomPane.zoom contains a rotation, this rotation will not be modified.
Parameters:
  logicalBounds - Logical coordinates of the region to be displayed.
throws:
  IllegalArgumentException - if source is empty.



tieModels
public void tieModels(BoundedRangeModel x, BoundedRangeModel y)(Code)
Synchronises the position and the range of the models x and y with the position of the zoom. The models x and y are generally associated with horizontal and vertical scrollbars. When the position of a scrollbar is adjusted, the zoom is consequently adjusted. Inversely, when the zoom is modified, the positions and ranges of the scrollbars are consequently adjusted.
Parameters:
  x - Model of the horizontal scrollbar or null if there isn't one.
Parameters:
  y - Model of the vertical scrollbar or null if there isn't one.



transform
public void transform(AffineTransform change)(Code)
Changes the by applying an affine transform. The change transform must express a change in logical units, for example, a translation in metres. This method is conceptually similar to the following code:
ZoomPane.zoom .
AffineTransform.concatenate(AffineTransform) concatenate (change);
ZoomPane.fireZoomChanged(AffineTransform) fireZoomChanged (change);
ZoomPane.repaint() repaint (
ZoomPane.getZoomableBounds getZoomableBounds (null));
 

Parameters:
  change - The zoom change, as an affine transform in logical coordinates. If change is the identity transform, then this method does nothing andlisteners are not notified.



transformPixels
public void transformPixels(AffineTransform change)(Code)
Changes the by applying an affine transform. The change transform must express a change in pixel units, for example, a scrolling of 6 pixels toward right. This method is conceptually similar to the following code:
ZoomPane.zoom .
AffineTransform.preConcatenate(AffineTransform) preConcatenate (change);
ZoomPane.fireZoomChanged(AffineTransform) fireZoomChanged (change translated in logical units);
ZoomPane.repaint() repaint (
ZoomPane.getZoomableBounds getZoomableBounds (null));
 

Parameters:
  change - The zoom change, as an affine transform in pixel coordinates. If change is the identity transform, then this method does nothingand listeners are not notified.
since:
   2.1



untieModels
public void untieModels(BoundedRangeModel x, BoundedRangeModel y)(Code)
Cancels the synchronisation between the specified x and y models and the zoom of this ZoomPane object. The ChangeListener and ZoomChangeListener objects that were created are deleted.
Parameters:
  x - Model of the horizontal scrollbar or null if there isn't one.
Parameters:
  y - Model of the vertical scrollbar or null if there isn't one.



updateUI
public void updateUI()(Code)
Informs ZoomPane that the GUI has changed. The user doesn't have to call this method directly.



Fields inherited from javax.swing.JComponent
final public static String TOOL_TIP_TEXT_KEY(Code)(Java Doc)
final public static int UNDEFINED_CONDITION(Code)(Java Doc)
final public static int WHEN_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
final public static int WHEN_FOCUSED(Code)(Java Doc)
final public static int WHEN_IN_FOCUSED_WINDOW(Code)(Java Doc)
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected EventListenerList listenerList(Code)(Java Doc)
protected transient ComponentUI ui(Code)(Java Doc)

Methods inherited from javax.swing.JComponent
public void addAncestorListener(AncestorListener listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
public void computeVisibleRect(Rectangle visibleRect)(Code)(Java Doc)
public boolean contains(int x, int y)(Code)(Java Doc)
public JToolTip createToolTip()(Code)(Java Doc)
public void disable()(Code)(Java Doc)
public void enable()(Code)(Java Doc)
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc)
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws java.beans.PropertyVetoException(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc)
final public ActionMap getActionMap()(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public AncestorListener[] getAncestorListeners()(Code)(Java Doc)
public boolean getAutoscrolls()(Code)(Java Doc)
public int getBaseline(int width, int height)(Code)(Java Doc)
public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc)
public Border getBorder()(Code)(Java Doc)
public Rectangle getBounds(Rectangle rv)(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc)
public JPopupMenu getComponentPopupMenu()(Code)(Java Doc)
public int getConditionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc)
public int getDebugGraphicsOptions()(Code)(Java Doc)
public static Locale getDefaultLocale()(Code)(Java Doc)
public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public boolean getInheritsPopupMenu()(Code)(Java Doc)
final public InputMap getInputMap(int condition)(Code)(Java Doc)
final public InputMap getInputMap()(Code)(Java Doc)
public InputVerifier getInputVerifier()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public Insets getInsets(Insets insets)(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Point getLocation(Point rv)(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Component getNextFocusableComponent()(Code)(Java Doc)
public Point getPopupLocation(MouseEvent event)(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public Dimension getSize(Dimension rv)(Code)(Java Doc)
public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public String getToolTipText(MouseEvent event)(Code)(Java Doc)
public Container getTopLevelAncestor()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc)
public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc)
public Rectangle getVisibleRect()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int getX()(Code)(Java Doc)
public int getY()(Code)(Java Doc)
public void grabFocus()(Code)(Java Doc)
public boolean isDoubleBuffered()(Code)(Java Doc)
public static boolean isLightweightComponent(Component c)(Code)(Java Doc)
public boolean isManagingFocus()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isOptimizedDrawingEnabled()(Code)(Java Doc)
final public boolean isPaintingForPrint()(Code)(Java Doc)
public boolean isPaintingTile()(Code)(Java Doc)
public boolean isRequestFocusEnabled()(Code)(Java Doc)
public boolean isValidateRoot()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
protected void paintBorder(Graphics g)(Code)(Java Doc)
protected void paintChildren(Graphics g)(Code)(Java Doc)
protected void paintComponent(Graphics g)(Code)(Java Doc)
public void paintImmediately(int x, int y, int w, int h)(Code)(Java Doc)
public void paintImmediately(Rectangle r)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printAll(Graphics g)(Code)(Java Doc)
protected void printBorder(Graphics g)(Code)(Java Doc)
protected void printChildren(Graphics g)(Code)(Java Doc)
protected void printComponent(Graphics g)(Code)(Java Doc)
protected void processComponentKeyEvent(KeyEvent e)(Code)(Java Doc)
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc)
protected void processKeyEvent(KeyEvent e)(Code)(Java Doc)
protected void processMouseEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc)
final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
public void registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc)
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc)
public void removeAncestorListener(AncestorListener listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc)
public void repaint(Rectangle r)(Code)(Java Doc)
public boolean requestDefaultFocus()(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
public boolean requestFocus(boolean temporary)(Code)(Java Doc)
public boolean requestFocusInWindow()(Code)(Java Doc)
protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc)
public void resetKeyboardActions()(Code)(Java Doc)
public void reshape(int x, int y, int w, int h)(Code)(Java Doc)
public void revalidate()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
final public void setActionMap(ActionMap am)(Code)(Java Doc)
public void setAlignmentX(float alignmentX)(Code)(Java Doc)
public void setAlignmentY(float alignmentY)(Code)(Java Doc)
public void setAutoscrolls(boolean autoscrolls)(Code)(Java Doc)
public void setBackground(Color bg)(Code)(Java Doc)
public void setBorder(Border border)(Code)(Java Doc)
public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc)
public void setDebugGraphicsOptions(int debugOptions)(Code)(Java Doc)
public static void setDefaultLocale(Locale l)(Code)(Java Doc)
public void setDoubleBuffered(boolean aFlag)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFont(Font font)(Code)(Java Doc)
public void setForeground(Color fg)(Code)(Java Doc)
public void setInheritsPopupMenu(boolean value)(Code)(Java Doc)
final public void setInputMap(int condition, InputMap map)(Code)(Java Doc)
public void setInputVerifier(InputVerifier inputVerifier)(Code)(Java Doc)
public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc)
public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc)
public void setNextFocusableComponent(Component aComponent)(Code)(Java Doc)
public void setOpaque(boolean isOpaque)(Code)(Java Doc)
public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc)
public void setRequestFocusEnabled(boolean requestFocusEnabled)(Code)(Java Doc)
public void setToolTipText(String text)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
protected void setUI(ComponentUI newUI)(Code)(Java Doc)
public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)(Code)(Java Doc)
public void setVisible(boolean aFlag)(Code)(Java Doc)
public void unregisterKeyboardAction(KeyStroke aKeyStroke)(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

Methods inherited from java.awt.Container
public Component add(Component comp)(Code)(Java Doc)
public Component add(String name, Component comp)(Code)(Java Doc)
public Component add(Component comp, int index)(Code)(Java Doc)
public void add(Component comp, Object constraints)(Code)(Java Doc)
public void add(Component comp, Object constraints, int index)(Code)(Java Doc)
public synchronized void addContainerListener(ContainerListener l)(Code)(Java Doc)
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void applyComponentOrientation(ComponentOrientation o)(Code)(Java Doc)
public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc)
public int countComponents()(Code)(Java Doc)
public void deliverEvent(Event e)(Code)(Java Doc)
public void doLayout()(Code)(Java Doc)
public Component findComponentAt(int x, int y)(Code)(Java Doc)
public Component findComponentAt(Point p)(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public Component getComponent(int n)(Code)(Java Doc)
public Component getComponentAt(int x, int y)(Code)(Java Doc)
public Component getComponentAt(Point p)(Code)(Java Doc)
public int getComponentCount()(Code)(Java Doc)
public int getComponentZOrder(Component comp)(Code)(Java Doc)
public Component[] getComponents()(Code)(Java Doc)
public synchronized ContainerListener[] getContainerListeners()(Code)(Java Doc)
public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc)
public FocusTraversalPolicy getFocusTraversalPolicy()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public LayoutManager getLayout()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Point getMousePosition(boolean allowChildren) throws HeadlessException(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public Insets insets()(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isAncestorOf(Component c)(Code)(Java Doc)
public boolean isFocusCycleRoot(Container container)(Code)(Java Doc)
public boolean isFocusCycleRoot()(Code)(Java Doc)
final public boolean isFocusTraversalPolicyProvider()(Code)(Java Doc)
public boolean isFocusTraversalPolicySet()(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
public Component locate(int x, int y)(Code)(Java Doc)
public Dimension minimumSize()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void paintComponents(Graphics g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public Dimension preferredSize()(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printComponents(Graphics g)(Code)(Java Doc)
protected void processContainerEvent(ContainerEvent e)(Code)(Java Doc)
protected void processEvent(AWTEvent e)(Code)(Java Doc)
public void remove(int index)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public synchronized void removeContainerListener(ContainerListener l)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setComponentZOrder(Component comp, int index)(Code)(Java Doc)
public void setFocusCycleRoot(boolean focusCycleRoot)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFocusTraversalPolicy(FocusTraversalPolicy policy)(Code)(Java Doc)
final public void setFocusTraversalPolicyProvider(boolean provider)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setLayout(LayoutManager mgr)(Code)(Java Doc)
public void transferFocusDownCycle()(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void validate()(Code)(Java Doc)
protected void validateTree()(Code)(Java Doc)

Fields inherited from java.awt.Component
final public static float BOTTOM_ALIGNMENT(Code)(Java Doc)
final public static float CENTER_ALIGNMENT(Code)(Java Doc)
final public static float LEFT_ALIGNMENT(Code)(Java Doc)
final public static float RIGHT_ALIGNMENT(Code)(Java Doc)
final public static float TOP_ALIGNMENT(Code)(Java Doc)

Methods inherited from java.awt.Component
public boolean action(Event evt, Object what)(Code)(Java Doc)
public void add(PopupMenu popup)(Code)(Java Doc)
public synchronized void addComponentListener(ComponentListener l)(Code)(Java Doc)
public synchronized void addFocusListener(FocusListener l)(Code)(Java Doc)
public void addHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc)
public void addHierarchyListener(HierarchyListener l)(Code)(Java Doc)
public synchronized void addInputMethodListener(InputMethodListener l)(Code)(Java Doc)
public synchronized void addKeyListener(KeyListener l)(Code)(Java Doc)
public synchronized void addMouseListener(MouseListener l)(Code)(Java Doc)
public synchronized void addMouseMotionListener(MouseMotionListener l)(Code)(Java Doc)
public synchronized void addMouseWheelListener(MouseWheelListener l)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void applyComponentOrientation(ComponentOrientation orientation)(Code)(Java Doc)
public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc)
public Rectangle bounds()(Code)(Java Doc)
public int checkImage(Image image, ImageObserver observer)(Code)(Java Doc)
public int checkImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
protected AWTEvent coalesceEvents(AWTEvent existingEvent, AWTEvent newEvent)(Code)(Java Doc)
public boolean contains(int x, int y)(Code)(Java Doc)
public boolean contains(Point p)(Code)(Java Doc)
public Image createImage(ImageProducer producer)(Code)(Java Doc)
public Image createImage(int width, int height)(Code)(Java Doc)
public VolatileImage createVolatileImage(int width, int height)(Code)(Java Doc)
public VolatileImage createVolatileImage(int width, int height, ImageCapabilities caps) throws AWTException(Code)(Java Doc)
public void deliverEvent(Event e)(Code)(Java Doc)
public void disable()(Code)(Java Doc)
final protected void disableEvents(long eventsToDisable)(Code)(Java Doc)
final public void dispatchEvent(AWTEvent e)(Code)(Java Doc)
public void doLayout()(Code)(Java Doc)
public void enable()(Code)(Java Doc)
public void enable(boolean b)(Code)(Java Doc)
final protected void enableEvents(long eventsToEnable)(Code)(Java Doc)
public void enableInputMethods(boolean enable)(Code)(Java Doc)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc)
protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, short oldValue, short newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public int getBaseline(int width, int height)(Code)(Java Doc)
public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public Rectangle getBounds(Rectangle rv)(Code)(Java Doc)
public ColorModel getColorModel()(Code)(Java Doc)
public Component getComponentAt(int x, int y)(Code)(Java Doc)
public Component getComponentAt(Point p)(Code)(Java Doc)
public synchronized ComponentListener[] getComponentListeners()(Code)(Java Doc)
public ComponentOrientation getComponentOrientation()(Code)(Java Doc)
public Cursor getCursor()(Code)(Java Doc)
public synchronized DropTarget getDropTarget()(Code)(Java Doc)
public Container getFocusCycleRootAncestor()(Code)(Java Doc)
public synchronized FocusListener[] getFocusListeners()(Code)(Java Doc)
public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc)
public boolean getFocusTraversalKeysEnabled()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public GraphicsConfiguration getGraphicsConfiguration()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public synchronized HierarchyBoundsListener[] getHierarchyBoundsListeners()(Code)(Java Doc)
public synchronized HierarchyListener[] getHierarchyListeners()(Code)(Java Doc)
public boolean getIgnoreRepaint()(Code)(Java Doc)
public InputContext getInputContext()(Code)(Java Doc)
public synchronized InputMethodListener[] getInputMethodListeners()(Code)(Java Doc)
public InputMethodRequests getInputMethodRequests()(Code)(Java Doc)
public synchronized KeyListener[] getKeyListeners()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public Point getLocation()(Code)(Java Doc)
public Point getLocation(Point rv)(Code)(Java Doc)
public Point getLocationOnScreen()(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public synchronized MouseListener[] getMouseListeners()(Code)(Java Doc)
public synchronized MouseMotionListener[] getMouseMotionListeners()(Code)(Java Doc)
public Point getMousePosition() throws HeadlessException(Code)(Java Doc)
public synchronized MouseWheelListener[] getMouseWheelListeners()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Container getParent()(Code)(Java Doc)
public ComponentPeer getPeer()(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc)
public synchronized PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc)
public Dimension getSize()(Code)(Java Doc)
public Dimension getSize(Dimension rv)(Code)(Java Doc)
public Toolkit getToolkit()(Code)(Java Doc)
final public Object getTreeLock()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int getX()(Code)(Java Doc)
public int getY()(Code)(Java Doc)
public boolean gotFocus(Event evt, Object what)(Code)(Java Doc)
public boolean handleEvent(Event evt)(Code)(Java Doc)
public boolean hasFocus()(Code)(Java Doc)
public void hide()(Code)(Java Doc)
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code)(Java Doc)
public boolean inside(int x, int y)(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isBackgroundSet()(Code)(Java Doc)
public boolean isCursorSet()(Code)(Java Doc)
public boolean isDisplayable()(Code)(Java Doc)
public boolean isDoubleBuffered()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusCycleRoot(Container container)(Code)(Java Doc)
public boolean isFocusOwner()(Code)(Java Doc)
public boolean isFocusTraversable()(Code)(Java Doc)
public boolean isFocusable()(Code)(Java Doc)
public boolean isFontSet()(Code)(Java Doc)
public boolean isForegroundSet()(Code)(Java Doc)
public boolean isLightweight()(Code)(Java Doc)
public boolean isMaximumSizeSet()(Code)(Java Doc)
public boolean isMinimumSizeSet()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isPreferredSizeSet()(Code)(Java Doc)
public boolean isShowing()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public boolean keyDown(Event evt, int key)(Code)(Java Doc)
public boolean keyUp(Event evt, int key)(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public void list()(Code)(Java Doc)
public void list(PrintStream out)(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
public Component locate(int x, int y)(Code)(Java Doc)
public Point location()(Code)(Java Doc)
public boolean lostFocus(Event evt, Object what)(Code)(Java Doc)
public Dimension minimumSize()(Code)(Java Doc)
public boolean mouseDown(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseDrag(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseEnter(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseExit(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseMove(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseUp(Event evt, int x, int y)(Code)(Java Doc)
public void move(int x, int y)(Code)(Java Doc)
public void nextFocus()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void paintAll(Graphics g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public boolean postEvent(Event e)(Code)(Java Doc)
public Dimension preferredSize()(Code)(Java Doc)
public boolean prepareImage(Image image, ImageObserver observer)(Code)(Java Doc)
public boolean prepareImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printAll(Graphics g)(Code)(Java Doc)
protected void processComponentEvent(ComponentEvent e)(Code)(Java Doc)
protected void processEvent(AWTEvent e)(Code)(Java Doc)
protected void processFocusEvent(FocusEvent e)(Code)(Java Doc)
protected void processHierarchyBoundsEvent(HierarchyEvent e)(Code)(Java Doc)
protected void processHierarchyEvent(HierarchyEvent e)(Code)(Java Doc)
protected void processInputMethodEvent(InputMethodEvent e)(Code)(Java Doc)
protected void processKeyEvent(KeyEvent e)(Code)(Java Doc)
protected void processMouseEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseWheelEvent(MouseWheelEvent e)(Code)(Java Doc)
public void remove(MenuComponent popup)(Code)(Java Doc)
public synchronized void removeComponentListener(ComponentListener l)(Code)(Java Doc)
public synchronized void removeFocusListener(FocusListener l)(Code)(Java Doc)
public void removeHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc)
public void removeHierarchyListener(HierarchyListener l)(Code)(Java Doc)
public synchronized void removeInputMethodListener(InputMethodListener l)(Code)(Java Doc)
public synchronized void removeKeyListener(KeyListener l)(Code)(Java Doc)
public synchronized void removeMouseListener(MouseListener l)(Code)(Java Doc)
public synchronized void removeMouseMotionListener(MouseMotionListener l)(Code)(Java Doc)
public synchronized void removeMouseWheelListener(MouseWheelListener l)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void repaint()(Code)(Java Doc)
public void repaint(long tm)(Code)(Java Doc)
public void repaint(int x, int y, int width, int height)(Code)(Java Doc)
public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
protected boolean requestFocus(boolean temporary)(Code)(Java Doc)
public boolean requestFocusInWindow()(Code)(Java Doc)
protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc)
public void reshape(int x, int y, int width, int height)(Code)(Java Doc)
public void resize(int width, int height)(Code)(Java Doc)
public void resize(Dimension d)(Code)(Java Doc)
public void setBackground(Color c)(Code)(Java Doc)
public void setBounds(int x, int y, int width, int height)(Code)(Java Doc)
public void setBounds(Rectangle r)(Code)(Java Doc)
public void setComponentOrientation(ComponentOrientation o)(Code)(Java Doc)
public void setCursor(Cursor cursor)(Code)(Java Doc)
public synchronized void setDropTarget(DropTarget dt)(Code)(Java Doc)
public void setEnabled(boolean b)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFocusTraversalKeysEnabled(boolean focusTraversalKeysEnabled)(Code)(Java Doc)
public void setFocusable(boolean focusable)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setForeground(Color c)(Code)(Java Doc)
public void setIgnoreRepaint(boolean ignoreRepaint)(Code)(Java Doc)
public void setLocale(Locale l)(Code)(Java Doc)
public void setLocation(int x, int y)(Code)(Java Doc)
public void setLocation(Point p)(Code)(Java Doc)
public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc)
public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc)
public void setSize(int width, int height)(Code)(Java Doc)
public void setSize(Dimension d)(Code)(Java Doc)
public void setVisible(boolean b)(Code)(Java Doc)
public void show()(Code)(Java Doc)
public void show(boolean b)(Code)(Java Doc)
public Dimension size()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void transferFocus()(Code)(Java Doc)
public void transferFocusBackward()(Code)(Java Doc)
public void transferFocusUpCycle()(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void validate()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.