Java Doc for AbstractCursorTool.java in  » GIS » openjump » com » vividsolutions » jump » workbench » ui » cursortool » 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 » openjump » com.vividsolutions.jump.workbench.ui.cursortool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool

All known Subclasses:   org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool,  org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedDragTool,  com.vividsolutions.jump.workbench.ui.cursortool.DragTool,  com.vividsolutions.jump.workbench.ui.snap.SnapIndicatorTool,  com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool,
AbstractCursorTool
abstract public class AbstractCursorTool implements CursorTool(Code)
A tool that draws an XOR visual indicator. Subclasses need not keep track of the XOR state of the indicator -- that logic is all handled by this class. Even if the LayerViewPanel is repainted while the XOR indicator is on-screen.

Inner Class :public static interface Listener


Constructor Summary
public  AbstractCursorTool()
    

Method Summary
public  voidactivate(LayerViewPanel layerViewPanel)
    
public  voidadd(Listener listener)
    
public  voidallowSnapping()
     Makes this CursorTool obey the snapping settings in the Options dialog.
public  voidcancelGesture()
    
protected  booleancheck(EnableCheck check)
    
protected  voidcleanup(Graphics2D graphics)
    
protected  voidclearShape()
    
public static  CursorcreateCursor(Image image)
     The cursor will look best if the image is a 32 x 32 transparent GIF.
public static  CursorcreateCursor(Image image, Point hotSpot)
    
public static  ListcreateStandardSnappingPolicies(Blackboard blackboard)
    
public  voiddeactivate()
    
protected  voiddrawShapeXOR(Graphics2D g)
    
protected  voiddrawShapeXOR(Shape shape, Graphics2D graphics)
    
protected  voidexecute(UndoableCommand command)
     Optional means of execution, with undoability.
protected  voidfireGestureFinished()
    
abstract protected  voidgestureFinished()
    
public  ColorgetColor()
    
public  CursorgetCursor()
    
public  StringgetName()
    
protected  LayerViewPanelgetPanel()
    
abstract protected  ShapegetShape()
    
public  SnapManagergetSnapManager()
    
protected  TaskFramegetTaskFrame()
    
public  JUMPWorkbenchgetWorkbench()
    
public  booleanisGestureInProgress()
     Used by OrCompositeTool to determine whether a CursorTool is busy interacting with the user.
public  booleanisRightMouseButtonUsed()
    
protected  booleanisRollingBackInvalidEdits()
    
public  booleanisShapeOnScreen()
     Important for XOR drawing.
public  voidmouseClicked(MouseEvent e)
    
public  voidmouseDragged(MouseEvent e)
    
public  voidmouseEntered(MouseEvent e)
    
public  voidmouseExited(MouseEvent e)
    
public  voidmouseMoved(MouseEvent e)
    
public  voidmousePressed(MouseEvent e)
    
public  voidmouseReleased(MouseEvent e)
    
public static  Stringname(CursorTool tool)
    
protected  voidredrawShape()
    
protected  voidreportNothingToUndoYet()
     Notifies the UndoManager that this PlugIn did not modify any model states, and therefore the undo history should remain unchanged.
public  voidsetColor(Color color)
    
protected  voidsetFilling(boolean filling)
    
protected  voidsetStroke(Stroke stroke)
    
protected  voidsetStrokeWidth(int strokeWidth)
    
protected  voidsetup(Graphics2D graphics)
    
protected  Coordinatesnap(Point2D viewPoint)
    
protected  Coordinatesnap(Coordinate modelCoordinate)
    
public  StringtoString()
    
protected  booleanwasControlPressed()
    
protected  booleanwasShiftPressed()
    
public static  JUMPWorkbenchworkbench(LayerViewPanel panel)
    
public static  WorkbenchFrameworkbenchFrame(LayerViewPanel layerViewPanel)
    


Constructor Detail
AbstractCursorTool
public AbstractCursorTool()(Code)




Method Detail
activate
public void activate(LayerViewPanel layerViewPanel)(Code)



add
public void add(Listener listener)(Code)



allowSnapping
public void allowSnapping()(Code)
Makes this CursorTool obey the snapping settings in the Options dialog.



cancelGesture
public void cancelGesture()(Code)



check
protected boolean check(EnableCheck check)(Code)



cleanup
protected void cleanup(Graphics2D graphics)(Code)



clearShape
protected void clearShape()(Code)



createCursor
public static Cursor createCursor(Image image)(Code)
The cursor will look best if the image is a 32 x 32 transparent GIF.



createCursor
public static Cursor createCursor(Image image, Point hotSpot)(Code)



createStandardSnappingPolicies
public static List createStandardSnappingPolicies(Blackboard blackboard)(Code)



deactivate
public void deactivate()(Code)



drawShapeXOR
protected void drawShapeXOR(Graphics2D g) throws Exception(Code)



drawShapeXOR
protected void drawShapeXOR(Shape shape, Graphics2D graphics)(Code)



execute
protected void execute(UndoableCommand command)(Code)
Optional means of execution, with undoability.



fireGestureFinished
protected void fireGestureFinished() throws Exception(Code)



gestureFinished
abstract protected void gestureFinished() throws Exception(Code)



getColor
public Color getColor()(Code)



getCursor
public Cursor getCursor()(Code)



getName
public String getName()(Code)



getPanel
protected LayerViewPanel getPanel()(Code)



getShape
abstract protected Shape getShape() throws Exception(Code)
null if nothing should be drawn



getSnapManager
public SnapManager getSnapManager()(Code)



getTaskFrame
protected TaskFrame getTaskFrame()(Code)
null if the LayerViewPanel is not inside a TaskFrame



getWorkbench
public JUMPWorkbench getWorkbench()(Code)



isGestureInProgress
public boolean isGestureInProgress()(Code)
Used by OrCompositeTool to determine whether a CursorTool is busy interacting with the user.



isRightMouseButtonUsed
public boolean isRightMouseButtonUsed()(Code)



isRollingBackInvalidEdits
protected boolean isRollingBackInvalidEdits()(Code)



isShapeOnScreen
public boolean isShapeOnScreen()(Code)
Important for XOR drawing. Even if #getShape returns null, this method will return true between calls of #redrawShape and #clearShape.



mouseClicked
public void mouseClicked(MouseEvent e)(Code)



mouseDragged
public void mouseDragged(MouseEvent e)(Code)



mouseEntered
public void mouseEntered(MouseEvent e)(Code)



mouseExited
public void mouseExited(MouseEvent e)(Code)



mouseMoved
public void mouseMoved(MouseEvent e)(Code)



mousePressed
public void mousePressed(MouseEvent e)(Code)



mouseReleased
public void mouseReleased(MouseEvent e)(Code)



name
public static String name(CursorTool tool)(Code)



redrawShape
protected void redrawShape() throws Exception(Code)



reportNothingToUndoYet
protected void reportNothingToUndoYet()(Code)
Notifies the UndoManager that this PlugIn did not modify any model states, and therefore the undo history should remain unchanged. Call this method inside #execute(PlugInContext).



setColor
public void setColor(Color color)(Code)



setFilling
protected void setFilling(boolean filling)(Code)



setStroke
protected void setStroke(Stroke stroke)(Code)



setStrokeWidth
protected void setStrokeWidth(int strokeWidth)(Code)



setup
protected void setup(Graphics2D graphics)(Code)



snap
protected Coordinate snap(Point2D viewPoint) throws NoninvertibleTransformException(Code)



snap
protected Coordinate snap(Coordinate modelCoordinate)(Code)



toString
public String toString()(Code)



wasControlPressed
protected boolean wasControlPressed()(Code)



wasShiftPressed
protected boolean wasShiftPressed()(Code)



workbench
public static JUMPWorkbench workbench(LayerViewPanel panel)(Code)



workbenchFrame
public static WorkbenchFrame workbenchFrame(LayerViewPanel layerViewPanel)(Code)



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.