Reproduce:
1) Run Convey
2) New Canvas...
3) Draw a Freehand Graphic and one other Graphic
4) Select All
5) Group
6) Select mode
7) Scale the Group to zero area.
8) Try to click the single control handle and expand to a
nonzero area.
It looks like FrehandGraphic collapses to the origin.
On Mac OS X JVM 1.3.1, there is no stack trace.
On Windows 2000, JVM 1.4.1-b21:
sun.dc.pr.PRException: endPath: bad path
at sun.dc.pr.Rasterizer.endPath
(Rasterizer.java:537)
at
sun.java2d.pipe.DuctusRenderer.createShapeRasterizer
(DuctusRenderer.java:374)
at
sun.java2d.pipe.DuctusShapeRenderer.renderPath
(DuctusShapeRenderer.java:57)
at sun.java2d.pipe.DuctusShapeRenderer.draw
(DuctusShapeRenderer.java:45)
at sun.java2d.pipe.ValidatePipe.draw
(ValidatePipe.java:114)
at sun.java2d.SunGraphics2D.draw
(SunGraphics2D.java:2182)
at org.convey.ShapeGraphic.paint
(ShapeGraphic.java:203)
at org.convey.GroupGraphic.paint
(GroupGraphic.java:33)
at org.convey.GraphicPanel.paintComponent
(GraphicPanel.java:188)
at javax.swing.JComponent.paint
(JComponent.java:808)
at
javax.swing.JComponent.paintWithOffscreenBuffer
(JComponent.java:4771)
at javax.swing.JComponent.paintDoubleBuffered
(JComponent.java:4724)
at javax.swing.JComponent._paintImmediately
(JComponent.java:4668)
at javax.swing.JComponent.paintImmediately
(JComponent.java:4477)
at
javax.swing.RepaintManager.paintDirtyRegions
(RepaintManager.java:410)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkR
equest.run(SystemEventQueueUtilities.java:117)
at java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent
(EventQueue.java:448)
at
java.awt.EventDispatchThread.pumpOneEventForHierarch
y(EventDispatchThread.java:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run
(EventDispatchThread.java:99)
Logged In: YES
user_id=265818
This is no longer applicable. However, other Graphic suffer the
zero area problem still: RectangleGraphic and EllipseGraphic,
to name a few.