I found my mistake!
Now i made a new class extending a OMPoly object and overwrote the paint( Graphics ) method.
In this method a do the stuff you mailed - and it works pretty!
Thank you
Ruediger
> -----Ursprüngliche Nachricht-----
> Von: "Gubler, Rüdiger" [mailto:rgubler@init-ka.de]
> Gesendet: Donnerstag, 13. Juni 2002 08:25
> An: Don Dietrick
> Cc: Openmap-Users (E-Mail)
> Betreff: AW: Antialiasing of OMPoly
>
>
>
> I do
>
> _renderHints = new HashMap();
> _renderHints.put( RenderingHints.KEY_ANTIALIASING,
> RenderingHints.VALUE_ANTIALIAS_ON );
> ((Graphics2D)omGraphic).addRenderingHints( _renderHints );
>
> and got
>
> "AbstractLayer.java": Error #: 364 :
> cannot cast com.bbn.openmap.omGraphics.OMGraphic to
> java.awt.Graphics2D at line 442, column 6
>
>
>
> Yours Ruediger
>
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: Don Dietrick [mailto:dietrick@bbn.com]
> > Gesendet: Mittwoch, 12. Juni 2002 23:40
> > An: "Gubler, Rüdiger"
> > Cc: Openmap-Users (E-Mail)
> > Betreff: Re: Antialiasing of OMPoly
> >
> >
> > Hi Rüdiger,
> >
> > I think you can call a method on the Graphics object to turn
> > anti-aliasing on, after casting it to a Graphics2D object.
> > You can do
> > this in your paint() method. You might want to create() your
> > own copy
> > of the Graphics object to do this on.
> >
> > Map map = new HashMap();
> > map.put(Graphics2D. KEY_ANTIALIASING, Graphics2D.
> VALUE_ANTIALIAS_ON);
> > ((Graphics2D)g).addRenderingHints(map);
> >
> > Cheers,
> >
> > Don
> >
> > On Wednesday, June 12, 2002, at 08:06 AM, Gubler, Rüdiger wrote:
> >
> > >
> > > Hello,
> > >
> > > in which way can i do an antialiasing of ompoly-objects in
> > OpenMap 4.5.
> > > They are viewed with some unaesthetic steps in it.
> > >
> > >
> > > Yours Rüdiger
> > >
> > >
> >
> >
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > Don Dietrick, BBN Technologies, dietrick@bbn.com
> > 10 Moulton Street, Cambridge, MA 02138
> > 617-873-3031 [fax]-2794
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >
>
> --
> [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"]
>
-- [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 Thu Jun 13 04:52:44 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT