schmitzm.geotools.gui
Class GridPanelFormatter_DHDN

java.lang.Object
  extended by schmitzm.geotools.gui.GridPanelFormatter
      extended by schmitzm.geotools.gui.GridPanelFormatter_DHDN

public class GridPanelFormatter_DHDN
extends GridPanelFormatter


Field Summary
 
Fields inherited from class schmitzm.geotools.gui.GridPanelFormatter
crs, FORMATTERS, RESOURCE
 
Constructor Summary
GridPanelFormatter_DHDN()
          Creates a new formatter with DHDN / 3-degree Gauss zone 1 as CRS
 
Method Summary
 double determineGridDistance(GridPanel panel, double mapMinCoord, double mapMaxCoord, int panelSize)
          Determines a "fitting" fragmentation for the grid.
 String formatCoordinate(GridPanel panel, double coord)
          Formats a coordinate for the grid CRS.
 Font getFont()
           
 String getId()
          A String ID that can be used to identify a Formatter-class.
 String getTitle()
          A human readable title
 int getWidthForVertical(GridPanel panel)
          Returns the default width for a vertical Grid
 
Methods inherited from class schmitzm.geotools.gui.GridPanelFormatter
getCRS, getFormatterByID, getHeightForHorizontal, getTooltip, setCRS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridPanelFormatter_DHDN

public GridPanelFormatter_DHDN()
Creates a new formatter with DHDN / 3-degree Gauss zone 1 as CRS

Parameters:
crs - the CRS the formatter can format
Throws:
FactoryException
NoSuchAuthorityCodeException
Method Detail

determineGridDistance

public double determineGridDistance(GridPanel panel,
                                    double mapMinCoord,
                                    double mapMaxCoord,
                                    int panelSize)
Description copied from class: GridPanelFormatter
Determines a "fitting" fragmentation for the grid.

Specified by:
determineGridDistance in class GridPanelFormatter
mapMinCoord - minimal coordinate to show in the grid (in the grid CRS)
mapMaxCoord - maximal coordinate to show in the grid (in the grid CRS)
panelSize - size of the grid panel in pixels

formatCoordinate

public String formatCoordinate(GridPanel panel,
                               double coord)
Description copied from class: GridPanelFormatter
Formats a coordinate for the grid CRS.

Specified by:
formatCoordinate in class GridPanelFormatter
coord - the coordinate
Returns:

getFont

public Font getFont()
Overrides:
getFont in class GridPanelFormatter

getId

public String getId()
Description copied from class: GridPanelFormatter
A String ID that can be used to identify a Formatter-class. Take care, that the string is compatible with XML and doesn't containg freaky chars.

Specified by:
getId in class GridPanelFormatter

getTitle

public String getTitle()
Description copied from class: GridPanelFormatter
A human readable title

Specified by:
getTitle in class GridPanelFormatter

getWidthForVertical

public int getWidthForVertical(GridPanel panel)
Description copied from class: GridPanelFormatter
Returns the default width for a vertical Grid

Specified by:
getWidthForVertical in class GridPanelFormatter