Difference: JHotDrawNotes (3 vs. 4)

Revision 412 May 2005 - TobyCabot

Line: 1 to 1
 
META TOPICPARENT name="JavaNotes"
JHotDraw is a framework for building Swing drawing applications. It's descended from a toolkit written in SmallTalk by one of the "gang of four" patterns gurus so it's heavily pattern-intensive.
Line: 22 to 22
  Keyboard/mouse events start in the DrawingView (it's a JPanel) and then get propagated to the tool that the DrawingEditor returns from a call to tool().
Added:
>
>
What happens when the mouse is dragged?

	  [java]	  at reva.manager.view.editor.AntennaFigure.basicMoveBy(AntennaFigure.java:274)
	  [java]	  at org.jhotdraw.standard.AbstractFigure.moveBy(AbstractFigure.java:70)
	  [java]	  at org.jhotdraw.standard.DragTracker.mouseDrag(DragTracker.java:64)
	  [java]	  at org.jhotdraw.util.UndoableTool.mouseDrag(UndoableTool.java:72)
	  [java]	  at org.jhotdraw.standard.SelectionTool.mouseDrag(SelectionTool.java:95)
	  [java]	  at org.jhotdraw.contrib.CustomSelectionTool.mouseDrag(CustomSelectionTool.java:74)
	  [java]	  at org.jhotdraw.standard.StandardDrawingView$DrawingViewMouseMotionListener.mouseDragged(StandardDrawingView.java:1001)
	  [java]	  at org.jhotdraw.contrib.zoom.ZoomDrawingView$2.mouseDragged(ZoomDrawingView.java:367)
	  [java]	  at java.awt.Component.processMouseMotionEvent(Component.java:5148)
	  [java]	  at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:2779)
	  [java]	  at java.awt.Component.processEvent(Component.java:4901)
View topic | History: r4 < r3 < r2 < r1 | More topic actions...
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback