suneesh kumar a écrit :
How to show arrow showing North-South direction on Styled Map Pane?
Do you means a single arrow of fixed size in a fixed location, of many
arrows with North-South and East-West components (or in other words, a
different magnitude and a direction for each location)?
In the second case, you can creates yours own subclass of RenderedMarks.
This means that you have to creates yours subclass of MarkIterator as
well. This later class has the following methods (in addition of the
usual one):
- public Shape markShape();
Override this method in order to returns an arrow oriented toward
positive x (i.e. with an arithmetic angle of 0°). You can use an
instance of org.geotools.renderer.geom.Arrow2D for that (share a
single instance; no need to performs the 'new Arrow2D(...)' inside
the 'markShape()' method).
- public double amplitude()
The amplitude of the phenomenon represented by the arrow.
It control the arrow length.
- public double direction()
The arrow arithmetic angle in radians.
Martin.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users