Haven't tried. I'll look into it.
Have you ever seen a PRException?
jeff
At 02:38 PM 1/30/2002 -0500, Don Dietrick wrote:
>Hi Jeff,
>
>Do you get this output if you comment out the g2.setRenderingHint() line?
>
>- Don
>
>On Wednesday, January 30, 2002, at 01:41 PM, Jeff Mathis wrote:
>
>>Hi Don,
>>
>>I just got a tremendously huge stacktrace using the 4.2.1 release. I
>>created a series of OMRects, and was trying to zoom into a very, very
>>small region on the map to see them. My class, PrettyRect, simply
>>overrides the render method of OMRect to turn anti-aliasing on:
>>
>>public void render(Graphics g) {
>> Graphics2D g2 = (Graphics2D) g;
>> g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
>> RenderingHints.VALUE_ANTIALIAS_ON);
>> super.render(g);
>>}
>>
>>This stack trace repeatedly cycled for nearly 8 Mb of output. It
>>eventually stopped, and the map displayed the zoomed region. Below is one
>>of the loops. Question is, what might be going on here?
>>
>>Jeff
>>
>>sun.dc.pr.PRException: endPath: bad path
>> at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:540)
>> at
>> sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRenderer.java:
>>296)
>> at
>> sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRenderer.java:59)
>> at
>> sun.java2d.pipe.DuctusShapeRenderer.fill(DuctusShapeRenderer.java:52)
>> at
>> sun.java2d.pipe.PixelToShapeConverter.fillRect(PixelToShapeConverter.java:
>>47)
>> at sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:1560)
>> at com.bbn.openmap.omGraphics.OMRect.render(OMRect.java:441)
>> at com.biosgroup.alac.gui.map.PrettyRect.render(PrettyRect.java:103)
>> at
>> com.bbn.openmap.layer.location.Location.renderLocation(Location.java:585)
>> at
>> com.bbn.openmap.layer.location.LocationLayer.paint(LocationLayer.java:485)
>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>> at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:712)
>> at
>> com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:141)
>> at
>> com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:105)
>> at javax.swing.JComponent.paint(JComponent.java:696)
>>at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>at javax.swing.JComponent.paint(JComponent.java:696)
>>at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
>>at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
>>at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
>>at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
>>at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run
>>(SystemEventQueueUtilities.)
>>at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
>>at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
>>at java.awt.EventDispatchThread.pumpOneEventForHierarchy
>>(EventDispatchThread.java:131)
>>at
>>java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
>>98)
>>at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>>at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
>>
>
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Don Dietrick, dietrick@bbn.com
>BBN Technologies, Cambridge, MA
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Wed Jan 30 14:41:57 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT