From: Erik V. <eri...@hc...> - 2005-09-25 17:36:39
|
> > I don't know if you find this idea worth further pursueing, > > but if so, I must say that there seems to be much more to > > mouse handling than meets the eye..... > > > It's an interesting idea. I'm not sure how useful it will be > to anyone other than us developers. I think it will, if we tailor the info presented for that purpose. As it is now, the tiles are rather small, and any info on the tile (revenue, location) has become unreadable. So I believe a tooltip will be a requirement. Info to be presented could include: Hex: City name (if applicable), any relevant properties. Hex location name is also very useful for PB(E)Mmers. Tile: Number, revenue, perhaps any valid upgrades. > One other way to try it is to change Mouse*Listener to Action > Listener and combine the rotation code with the tooltip code > into a single ActionEvent. Sounds good. > I think the other thing you'll have to do is adjust the > Paint() and/or Repaint() methods to redraw the area under the > mouse. Rather than drawing the whole map again, you could > getRectClip() (a rectangular clipping area) and only repaint > the hexes included in the clipping area. > > I agree with you, there's a lot more to Java's GUI system > than meets the eye. > > > ---Brett. Erik. |