Re: scrollable map component

"Brian Duff" <[email protected]> Fri, 2 Nov 2001 18:05:59 -0000
Newsgroups gmane.games.freeciv.java
Message-ID <[email protected]>
Thanks Luke,

This is exceptionally useful code. I'm in the process of merging it with
what I had already written (a good sign is that the code I had started to
write was designed in the same general direction as the code you provided -
I guess there aren't that many unique ways of implementing a map component
in java :) ).

I may send some specific questions on the code as I get into it more; hope
that's OK.

Thanks,

Brian

-----Original Message-----
From: freeciv-java-bounce-0/[email protected]
[mailto:freeciv-java-bounce-0/[email protected]]On Behalf Of Luke Lindsay
Sent: 01 November 2001 20:05
To: Brian Duff
Cc: freeciv-java-0/[email protected]
Subject: [FreeCiv-Java] scrollable map component


I've attached a simple test program I wrote that isolates the scrolling
classes from jfreerails.

To see what it does, compile and run TestScrolling.java

Overriding paintBufferRectangle in TiledBackgroundPainter would allow you to
use the scrolling code and still have alot of flexibility over how the
painting gets done.

Luke