T
Thijs Muizelaar
For a my PhD project I'm programming a simulator in which a road network
is displayed on a small map. This happens inside an extended JPanel. The
size of the road network is larger than the size of this JPanel, so I
applied an AffineTransform, such that the road network is displayed
correctly inside the JPanel. In this network the origin and destination
of a trip is also displayed (with the letters O and D).
However, because of the large scaling, the stroke use for the lines is
too thin. The same applies to the fontsize used for O and D. Is it
possible to use the fontsize and the BasicStroke I defined in my code,
without applying the AffineTransform? I can't think of a way, because
the coordinates still have to be scaled and transformed properly. This
would make the code independent from the size of the road network that I
will use.
Thanks in advance!
Thijs
is displayed on a small map. This happens inside an extended JPanel. The
size of the road network is larger than the size of this JPanel, so I
applied an AffineTransform, such that the road network is displayed
correctly inside the JPanel. In this network the origin and destination
of a trip is also displayed (with the letters O and D).
However, because of the large scaling, the stroke use for the lines is
too thin. The same applies to the fontsize used for O and D. Is it
possible to use the fontsize and the BasicStroke I defined in my code,
without applying the AffineTransform? I can't think of a way, because
the coordinates still have to be scaled and transformed properly. This
would make the code independent from the size of the road network that I
will use.
Thanks in advance!
Thijs