[josm-dev] Reworked virtual nodes
Robin Rattay
rotora at gmx.net
Sun Aug 24 17:07:43 BST 2008
Dirk Stöcker schrieb:
> Now also works for ways (Rev 860). Also segment numbers are fixed. And to
> make it nicer, they are drawn like virtual nodes only in a certain zoom
> level and on top of the way.
Great work! I was actually trying to do the same, but I have not
understood the drawing yet.
However there is one bug: the stroke thickness isn't drawn anymore.
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.
And while your at it, there's another irritating "feature": Selected
areas are filled solid blue, thus overpainting anything inside. Could
you get rid of the filling, or use a different shade "underneath" the
other ways just like unselected ways?
Robin
More information about the josm-dev
mailing list