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


net.refractions.udig.project.ui.tool.SimpleTool
   net.refractions.udig.tools.edit.AbstractEditTool

All known Subclasses:   net.refractions.udig.tools.edit.impl.SelectionTool,  net.refractions.udig.tools.edit.impl.AddVertexTool,  net.refractions.udig.tools.edit.impl.PointTool,  net.refractions.udig.tools.edit.impl.FillDifferenceTool,  net.refractions.udig.tools.edit.impl.RemoveVertexTool,  net.refractions.udig.tools.edit.impl.RectangleTool,  net.refractions.udig.tools.edit.impl.LineTool,  net.refractions.udig.tools.edit.impl.PolygonTool,  net.refractions.udig.tools.edit.impl.HoleTool,  net.refractions.udig.tools.edit.impl.FreeHandTool,  net.refractions.udig.tools.edit.impl.SplitTool,
AbstractEditTool
abstract public class AbstractEditTool extends SimpleTool (Code)
Super class for edit tools. This class delegates to the EditToolHandler which must be initialized by the subclass during construction.
author:
   jones
since:
   1.1.0


Field Summary
protected  EditToolHandlerhandler
    

Constructor Summary
public  AbstractEditTool()
    

Method Summary
abstract protected  StringgetExtensionID()
     Returns the ID of the tool as declared in the plugin.xml.
public  EditToolHandlergetHandler()
    
abstract protected  voidinitAcceptBehaviours(List<Behaviour> acceptBehaviours)
     Initializes the list of Behaviours to run when the current edit has been accepted.
abstract protected  voidinitActivators(Set<Activator> activators)
     Initializes the list of Activators that are ran when the tool is activated and deactivated.
abstract protected  voidinitCancelBehaviours(List<Behaviour> cancelBehaviours)
     Initializes the behaviours that are ran when a cancel signal is received (the ESC key).
abstract protected  voidinitEnablementBehaviours(List<EnablementBehaviour> enablementBehaviours)
     Initializes the list of EnablementBehaviour s that are ran to determine if the tool is enabled given an event.
abstract protected  voidinitEventBehaviours(EditToolConfigurationHelper helper)
     Initializes the Event Behaviours that are run when an event occurs.
protected  voidonMouseDoubleClicked(MapMouseEvent e)
    
protected  voidonMouseDragged(MapMouseEvent e)
    
protected  voidonMouseEntered(MapMouseEvent e)
    
protected  voidonMouseExited(MapMouseEvent e)
    
protected  voidonMouseHovered(MapMouseEvent e)
    
protected  voidonMouseMoved(MapMouseEvent e)
    
protected  voidonMousePressed(MapMouseEvent e)
    
protected  voidonMouseReleased(MapMouseEvent e)
    
protected  voidonMouseWheelMoved(MapMouseWheelEvent e)
    
public  voidsetActive(boolean active)
    
public  voidsetContext(IToolContext context)
    
public  voidsetHandler(EditToolHandler handler)
    
public  voidtestinitAcceptBehaviours(List<Behaviour> acceptBehaviours)
     Called only by unit tests.
public  voidtestinitActivators(Set<Activator> activators)
     Called only by unit tests.
public  voidtestinitCancelBehaviours(List<Behaviour> cancelBehaviours)
     Called only by unit tests.
public  voidtestinitEventBehaviours(EditToolConfigurationHelper helper)
     Called only by unit tests.

Field Detail
handler
protected EditToolHandler handler(Code)




Constructor Detail
AbstractEditTool
public AbstractEditTool()(Code)




Method Detail
getExtensionID
abstract protected String getExtensionID()(Code)
Returns the ID of the tool as declared in the plugin.xml. The plugin's id must be appended to the id. For example if the id of the tool is "polygon" and the id of the containing plugin is "net.refractions.udig.tool" then the id this method will return is "net.refractions.udig.tool.polygon" the ID of the tool as declared in the plugin.xml



getHandler
public EditToolHandler getHandler()(Code)
Returns the handler.



initAcceptBehaviours
abstract protected void initAcceptBehaviours(List<Behaviour> acceptBehaviours)(Code)
Initializes the list of Behaviours to run when the current edit has been accepted. Acceptance is signalled by a double click or the Enter key
Parameters:
  acceptBehaviours - an empty list



initActivators
abstract protected void initActivators(Set<Activator> activators)(Code)
Initializes the list of Activators that are ran when the tool is activated and deactivated.
Parameters:
  activators - an empty list.



initCancelBehaviours
abstract protected void initCancelBehaviours(List<Behaviour> cancelBehaviours)(Code)
Initializes the behaviours that are ran when a cancel signal is received (the ESC key).
Parameters:
  cancelBehaviours - an empty list



initEnablementBehaviours
abstract protected void initEnablementBehaviours(List<EnablementBehaviour> enablementBehaviours)(Code)
Initializes the list of EnablementBehaviour s that are ran to determine if the tool is enabled given an event. For example if the mouse cursor is outside the valid bounds of a CRS for a layer an EnablementBehaviour might signal that editing is illegal and provide a message for the user indicating why.
Parameters:
  enablementBehaviours - an empty list



initEventBehaviours
abstract protected void initEventBehaviours(EditToolConfigurationHelper helper)(Code)
Initializes the Event Behaviours that are run when an event occurs. Since this can be complex a helper class is provided to build the complex datastructure of Behaviours.
See Also:   EditToolConfigurationHelper
Parameters:
  helper - a helper for constructing the complicated structure of EventBehaviours.



onMouseDoubleClicked
protected void onMouseDoubleClicked(MapMouseEvent e)(Code)



onMouseDragged
protected void onMouseDragged(MapMouseEvent e)(Code)



onMouseEntered
protected void onMouseEntered(MapMouseEvent e)(Code)



onMouseExited
protected void onMouseExited(MapMouseEvent e)(Code)



onMouseHovered
protected void onMouseHovered(MapMouseEvent e)(Code)



onMouseMoved
protected void onMouseMoved(MapMouseEvent e)(Code)



onMousePressed
protected void onMousePressed(MapMouseEvent e)(Code)



onMouseReleased
protected void onMouseReleased(MapMouseEvent e)(Code)



onMouseWheelMoved
protected void onMouseWheelMoved(MapMouseWheelEvent e)(Code)



setActive
public void setActive(boolean active)(Code)



setContext
public void setContext(IToolContext context)(Code)



setHandler
public void setHandler(EditToolHandler handler)(Code)

Parameters:
  handler - The handler to set.



testinitAcceptBehaviours
public void testinitAcceptBehaviours(List<Behaviour> acceptBehaviours)(Code)
Called only by unit tests. Has no effect on state of tool.



testinitActivators
public void testinitActivators(Set<Activator> activators)(Code)
Called only by unit tests. Has no effect on state of tool.



testinitCancelBehaviours
public void testinitCancelBehaviours(List<Behaviour> cancelBehaviours)(Code)
Called only by unit tests. Has no effect on state of tool.



testinitEventBehaviours
public void testinitEventBehaviours(EditToolConfigurationHelper helper)(Code)
Called only by unit tests. Has no effect on state of tool.



Methods inherited from net.refractions.udig.project.ui.tool.SimpleTool
final public void mouseDoubleClicked(MapMouseEvent e)(Code)(Java Doc)
final public void mouseDragged(MapMouseEvent e)(Code)(Java Doc)
final public void mouseEntered(MapMouseEvent e)(Code)(Java Doc)
final public void mouseExited(MapMouseEvent e)(Code)(Java Doc)
final public void mouseHovered(MapMouseEvent e)(Code)(Java Doc)
final public void mouseMoved(MapMouseEvent e)(Code)(Java Doc)
final public void mousePressed(MapMouseEvent e)(Code)(Java Doc)
final public void mouseReleased(MapMouseEvent e)(Code)(Java Doc)
final public void mouseWheelMoved(MapMouseWheelEvent e)(Code)(Java Doc)
protected void onMouseDoubleClicked(MapMouseEvent e)(Code)(Java Doc)
protected void onMouseDragged(MapMouseEvent e)(Code)(Java Doc)
protected void onMouseEntered(MapMouseEvent e)(Code)(Java Doc)
protected void onMouseExited(MapMouseEvent e)(Code)(Java Doc)
protected void onMouseHovered(MapMouseEvent e)(Code)(Java Doc)
protected void onMouseMoved(MapMouseEvent e)(Code)(Java Doc)
protected void onMousePressed(MapMouseEvent e)(Code)(Java Doc)
protected void onMouseReleased(MapMouseEvent e)(Code)(Java Doc)
protected void onMouseWheelMoved(MapMouseWheelEvent e)(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.