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


net.refractions.udig.ui.ZoomingDialog

ZoomingDialog
public class ZoomingDialog extends Dialog (Code)
A dialog that, on opening, will zoom from the start location/size the location of the provided dialog.

IMPORTANT: Since there is no way for ZoomingDialog to determine whether setBlockOnOpen is set on the wrapped/decorated Dialog setBlockOnOpen MUST be set on ZoomingDialog


author:
   Jesse
since:
   1.1.0


Field Summary
final public static  intFAST
    
final public static  intMEDIUM
    
final public static  intSLOW
    

Constructor Summary
public  ZoomingDialog(Shell parentShell, Dialog delegate, Rectangle start)
     Creates a new instance.
public  ZoomingDialog(Shell parentShell, Dialog dialog, int x, int y, int width, int height)
     Create new instance.

Method Summary
public static  RectanglecalculateBounds(Control control)
     Calculates the bounds of the Control in Display coordinates (Required by ZoomingDialog constructor).
public static  RectanglecalculateBounds(TreeItem item, int columnIndex)
     Calculates the bounds of the Control in Display coordinates (Required by ZoomingDialog constructor).
Parameters:
  item - TreeItem to use as the starting position
Parameters:
  columnIndex - the index of the column to find the bounds for.
public  booleanclose()
    
public  voidcreate()
    
protected  ControlcreateButtonBar(Composite parent)
    
protected  PointgetInitialLocation(Point initialSize)
    
protected  PointgetInitialSize()
    
public  intgetReturnCode()
    
public  intopen()
     Opens the dialog.
public static  voidopenErrorMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)
    
public static  voidopenInformationMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)
    
public static  intopenMessageDialog(Rectangle start, Shell parentShell, String dialogTitle, Image dialogImage, String dialogMessage, int dialogImageType, String[] buttonLabels, int defaultIndex)
     Create a message dialog.
public static  booleanopenQuestionMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)
    
public static  voidopenWarningMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)
    
public  voidsetBlockOnOpen(boolean shouldBlock)
    
public  voidsetZoomSpeed(int speed)
     Sets how long it takes for the Dialog to open, default is ZoomingDialog.FAST .
public  StringtoString()
    

Field Detail
FAST
final public static int FAST(Code)



MEDIUM
final public static int MEDIUM(Code)



SLOW
final public static int SLOW(Code)




Constructor Detail
ZoomingDialog
public ZoomingDialog(Shell parentShell, Dialog delegate, Rectangle start)(Code)
Creates a new instance.
Parameters:
  parentShell - shell to use as a parent
Parameters:
  delegate - The dialog to open
Parameters:
  start - the rectangle, in Display coordinates, to zoom from when opening.



ZoomingDialog
public ZoomingDialog(Shell parentShell, Dialog dialog, int x, int y, int width, int height)(Code)
Create new instance. Will zoom from the provided rectangle to the dialog location.
Parameters:
  parentShell - shell to use as a parent
Parameters:
  dialog - dialog to open
Parameters:
  x -
Parameters:
  y -
Parameters:
  width -
Parameters:
  height -




Method Detail
calculateBounds
public static Rectangle calculateBounds(Control control)(Code)
Calculates the bounds of the Control in Display coordinates (Required by ZoomingDialog constructor).
Parameters:
  control - control to use as the starting position the bounds of the Control in Display coordinates



calculateBounds
public static Rectangle calculateBounds(TreeItem item, int columnIndex)(Code)
Calculates the bounds of the Control in Display coordinates (Required by ZoomingDialog constructor).
Parameters:
  item - TreeItem to use as the starting position
Parameters:
  columnIndex - the index of the column to find the bounds for. If -1 bounds of entire item are found the bounds of the Control in Display coordinates



close
public boolean close()(Code)



create
public void create()(Code)



createButtonBar
protected Control createButtonBar(Composite parent)(Code)



getInitialLocation
protected Point getInitialLocation(Point initialSize)(Code)



getInitialSize
protected Point getInitialSize()(Code)



getReturnCode
public int getReturnCode()(Code)



open
public int open()(Code)
Opens the dialog.

IMPORTANT: Since there is no way for ZoomingDialog to determine whether setBlockOnOpen is set on the wrapped/decorated Dialog setBlockOnOpen MUST be set on ZoomingDialog




openErrorMessage
public static void openErrorMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)(Code)



openInformationMessage
public static void openInformationMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)(Code)



openMessageDialog
public static int openMessageDialog(Rectangle start, Shell parentShell, String dialogTitle, Image dialogImage, String dialogMessage, int dialogImageType, String[] buttonLabels, int defaultIndex)(Code)
Create a message dialog. Notethat the dialog will have no visual representation (no widgets) until it is told to open.

The labels of the buttons to appear in the button bar are supplied in this constructor as an array. The open method will return the index of the label in this array corresponding to the button that was pressed to close the dialog. If the dialog was dismissed without pressing a button (ESC, etc.) then -1 is returned. Note that the open method blocks.


Parameters:
  start - the location to zoom from.
Parameters:
  parentShell - the parent shell
Parameters:
  dialogTitle - the dialog title, or null if none
Parameters:
  dialogTitleImage - the dialog title image, or null if none
Parameters:
  dialogMessage - the dialog message
Parameters:
  dialogImageType - one of the following values:
  • MessageDialog.NONE for a dialog with noimage
  • MessageDialog.ERROR for a dialog with anerror image
  • MessageDialog.INFORMATION for a dialogwith an information image
  • MessageDialog.QUESTION for a dialog with aquestion image
  • MessageDialog.WARNING for a dialog with awarning image

Parameters:
  dialogButtonLabels - an array of labels for the buttons in the button bar
Parameters:
  defaultIndex - the index in the button label array of the default button



openQuestionMessage
public static boolean openQuestionMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)(Code)



openWarningMessage
public static void openWarningMessage(Rectangle start, Shell parentShell, String dialogTitle, String dialogMessage)(Code)



setBlockOnOpen
public void setBlockOnOpen(boolean shouldBlock)(Code)



setZoomSpeed
public void setZoomSpeed(int speed)(Code)
Sets how long it takes for the Dialog to open, default is ZoomingDialog.FAST . Is one of ZoomingDialog.FASTZoomingDialog.MEDIUMZoomingDialog.SLOW
Parameters:
  speed - a constant indicating the speed at which the dialog zooms



toString
public String toString()(Code)



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