[josm-dev] Reworked virtual nodes

Dirk Stöcker openstreetmap at dstoecker.de
Sun Aug 24 18:29:18 BST 2008


On Sun, 24 Aug 2008, Robin Rattay wrote:

> However there is one bug: the stroke thickness isn't drawn anymore.

Fixed.

> BTW, you can get the real size of the string with
>
> g.getFontMetrics().stringWidth(...) and g.getFontMetrics().getHeight()
>
> (if performance allows it). IMHO that's better than guesstimating using
> segmentNumberSpace.

That's not the string size. Only the minimum size of the way length. This 
is not equal to string size, but probably a size test can be included as 
well.

> And while your at it, there's another irritating "feature": Selected
> areas are filled solid blue, thus overpainting anything inside. Could

Red for me :-)

I fixed that as well. Now areas are always drawn with Alpha channel. And 
also area borders are always drawn. Code is easier and it seems to be 
more logical.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)




More information about the josm-dev mailing list