On Saturday 22 Mar 2003 7:37 am, Martin Desruisseaux wrote:
> Cameron Shorter a =E9crit:
> > You may be right in that the transform in DotToCoorinateTransformImpl
> > should be moved into MapPaneImpl. I moved it out into it's own class
> > because I anticipated that Renderer eventually should used this trans=
> > too and by moving it into its own class I can ensure that Renderer
> > doesn't need to depend on MapPaneImpl.
> Sure, the Renderer will needs to know the 'dotToCoordinateSystem'. But
> instead of querying the MapPane for that, what about the opposite way:
> MapPane invokes Renderer.setDotToCoordinateSystem(AffineTransform) when
> needed (mostly just before to invokes Renderer.paint(Graphics2D))?
Yes, you are right, that was the other way I thought about writing it, ho=
I thought creating a seperate class would be cleaner.