net.refractions.udig.mapgraphic.scalebar
Class ScalebarMapGraphic

java.lang.Object
  extended by net.refractions.udig.mapgraphic.scalebar.ScalebarMapGraphic
All Implemented Interfaces:
MapGraphic

public class ScalebarMapGraphic
extends java.lang.Object
implements MapGraphic

Provides a decorator object that represents a typical Scalebar

Since:
0.6.0
Author:
Richard Gould

Field Summary
static int KILOMETRE
           
static int METRE
           
 
Fields inherited from interface net.refractions.udig.mapgraphic.MapGraphic
XPID
 
Constructor Summary
ScalebarMapGraphic()
           
 
Method Summary
 void draw(MapGraphicContext context)
          Draws the graphic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KILOMETRE

public static final int KILOMETRE
See Also:
Constant Field Values

METRE

public static final int METRE
See Also:
Constant Field Values
Constructor Detail

ScalebarMapGraphic

public ScalebarMapGraphic()
Method Detail

draw

public void draw(MapGraphicContext context)
Description copied from interface: MapGraphic
Draws the graphic. Check the clip area of the ViewportGraphics object to determine what area needs to be refreshed.

Specified by:
draw in interface MapGraphic
Parameters:
context - The drawing context.