Map Graphic

Identifier:
net.refractions.udig.mapgraphic.mapgraphic

Since:
uDig 1.0

Description:
Provide visual feedback in the form of a map decoration (such as a scalebar or north arrow) where the visual does not do any data access. Also useful to visualisation of an in memory domain model - but please be careful to avoid any synchronization - it is often better to render from a cache then directly from object oriented code in active use.

Configuration Markup:

<!ELEMENT extension (mapGraphic+)>

<!ATTLIST extension

point CDATA #REQUIRED

>


<!ELEMENT mapGraphic EMPTY>

<!ATTLIST mapGraphic

icon  CDATA #IMPLIED

name  CDATA #IMPLIED

id    CDATA #REQUIRED

class CDATA #REQUIRED

>


Examples:
Please review the source code for scalebar and grid mapgraphics.

API Information:
Extend MapGraphic to provide a draw method for your visual. A context provides access to the viewport model and anything else you need.