gistoolkit.display.scalebar
Class MeterToEnglishScaleBar

java.lang.Object
  extended bygistoolkit.display.scalebar.SimpleScaleBar
      extended bygistoolkit.display.scalebar.MeterToEnglishScaleBar
All Implemented Interfaces:
ScaleBar

public class MeterToEnglishScaleBar
extends SimpleScaleBar

Class to display a scale bar on the map.


Field Summary
 
Fields inherited from class gistoolkit.display.scalebar.SimpleScaleBar
LOWER_LEFT, LOWER_RIGHT, UPPER_LEFT, UPPER_RIGHT
 
Constructor Summary
MeterToEnglishScaleBar()
           
 
Method Summary
 void drawScale(java.awt.Graphics inGraphics, Converter inConverter, int inWidth, int inHeight)
          Method to draw a scale bar on the graphics context.
 java.lang.String getDescription()
          A description to be displayed to the user that indicates what this scale bar does.
 Node getNode()
          Get the configuration information for this ScaleBar
 void setNode(Node inNode)
          Set the configuration information for this ScaleBar
 
Methods inherited from class gistoolkit.display.scalebar.SimpleScaleBar
getAlpha, getAvailableSize, getDefaultAlphaComposite, getDefaultFont, getDefaultLabelColor, getDefaultLineColor, getHorizontalOffset, getLabelGraphics, getLineGraphics, getQuadrant, getScreenPercent, getStart, getStroke, getVerticalOffset, setAlpha, setDefaultFont, setDefaultLabelColor, setDefaultLineColor, setHorizontalOffset, setQuadrant, setScreenPercent, setStroke, setVerticalOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeterToEnglishScaleBar

public MeterToEnglishScaleBar()
Method Detail

getDescription

public java.lang.String getDescription()
A description to be displayed to the user that indicates what this scale bar does. A good thing to indicates is that it takes a projection in meters and displays a scale in metric. Or that it takes a projection in feed and displays a scale in in,ft,yd,and miles.

This one returns kilometers, meters, centimters, milimeters, and micrometers

Specified by:
getDescription in interface ScaleBar
Overrides:
getDescription in class SimpleScaleBar

drawScale

public void drawScale(java.awt.Graphics inGraphics,
                      Converter inConverter,
                      int inWidth,
                      int inHeight)
Method to draw a scale bar on the graphics context.

Specified by:
drawScale in interface ScaleBar
Specified by:
drawScale in class SimpleScaleBar

getNode

public Node getNode()
Get the configuration information for this ScaleBar

Specified by:
getNode in interface ScaleBar
Overrides:
getNode in class SimpleScaleBar

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration information for this ScaleBar

Specified by:
setNode in interface ScaleBar
Overrides:
setNode in class SimpleScaleBar
Throws:
java.lang.Exception