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


01:        /*
02:         * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
03:         * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
04:         * under the terms of the GNU Lesser General Public License as published by the Free Software
05:         * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
06:         * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
07:         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
08:         */
09:        package net.refractions.udig.project.ui.commands;
10:
11:        import java.awt.Rectangle;
12:
13:        import net.refractions.udig.project.command.MapCommand;
14:        import net.refractions.udig.project.render.displayAdapter.IMapDisplay;
15:        import net.refractions.udig.ui.graphics.ViewportGraphics;
16:
17:        /**
18:         * Draw commands do not change the model, rather they simply draw on the top-most layer. They are
19:         * primarily used to provide user feedback. For example the rubber-banding box drawn by the victim
20:         * selection tool is drawn using a DrawCommand. The rubber-banding box is a decoration for the user,
21:         * other commands employed byt the tool change the model. One class of commands that modifies the
22:         * models are the EditCommands. They edit the features themselves. Because draw commands are
23:         * executed every paint, instead of once like other types of commands, each DrawCommand has a valid
24:         * flag which is set false when the lifetime of the command is up. Once the valid flag is set to
25:         * false the command will be removed from the command stack the next update. The command must be
26:         * resent if the command is to be drawn again.
27:         * 
28:         * @author jeichar
29:         * @since 0.3
30:         * @see MapCommand
31:         */
32:        public interface IDrawCommand extends MapCommand {
33:            /**
34:             * Sets the graphics2D that this command will draw on. Will be called before execution of
35:             * command
36:             * 
37:             * @param graphics the graphics2D that this command will draw on
38:             * @param display The display area that will be draw on.
39:             * @see ViewportGraphics
40:             * @see IMapDisplay
41:             */
42:            public void setGraphics(ViewportGraphics graphics,
43:                    IMapDisplay display);
44:
45:            /**
46:             * Returns the rectangle where this command is valid.  Ie The area that this command draws to.
47:             * Null may be returned if the valid area is unknown or is the entire screen.
48:             *
49:             * @return Returns the rectangle where this command is valid.  Ie The area that this command draws to.
50:             * Null may be returned if the valid area is unknown or is the entire screen.
51:             */
52:            public Rectangle getValidArea();
53:
54:            /**
55:             * Sets whether the current command should be drawn. If not then it will be removed from the
56:             * draw stack. Default value is true;
57:             * 
58:             * @param valid true if the command should be drawn.
59:             */
60:            public void setValid(boolean valid);
61:
62:            /**
63:             * Returns whether the current command should be drawn. If not then it will be removed from the
64:             * draw stack. Default value is true;
65:             * 
66:             * @return true if the command should be drawn.
67:             */
68:            public boolean isValid();
69:
70:            /**
71:             * Disposes of any resources that need to be disposed of.
72:             * 
73:             * Called by the framework when draw command is removed from the viewport pane.
74:             */
75:            public void dispose();
76:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.