|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.geotools.gui.GridPanelFormatter
schmitzm.geotools.gui.GridPanelFormatter_LatLon1
public class GridPanelFormatter_LatLon1
This class defines a GridPanelFormatter
for the WGS84
CoordinateReferenceSystem
. The coordinates are formated in degrees
and minutes along with the wind direction abbreviation (E/W, N/S). grid and
the coordinates. * @author Martin
Schmitz
Field Summary |
---|
Fields inherited from class schmitzm.geotools.gui.GridPanelFormatter |
---|
crs, FORMATTERS, RESOURCE |
Constructor Summary | |
---|---|
GridPanelFormatter_LatLon1()
Creates a new formatter. |
Method Summary | |
---|---|
double |
determineGridDistance(GridPanel panel,
double mapMin_LL,
double mapMax_LL,
int panelSize)
Determines a "fitting" fragmentation for the grid. |
String |
formatCoordinate(GridPanel panel,
double coord)
Formats a coordinate to degrees and minutes. |
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 |
---|
public GridPanelFormatter_LatLon1()
crs
- the CRS the formatter can formatMethod Detail |
---|
public double determineGridDistance(GridPanel panel, double mapMin_LL, double mapMax_LL, int panelSize)
determineGridDistance
in class GridPanelFormatter
mapMin_LL
- minimal Lat/Lon coordinate to show in the gridmapMax_LL
- maximal Lat/Lon coordinate to show in the gridpanelSize
- size of the grid panel in pixelspublic String formatCoordinate(GridPanel panel, double coord)
formatCoordinate
in class GridPanelFormatter
coord
- the lat/lon coordinategridPanel
- indicates (amongst others) the grid orientation
public Font getFont()
getFont
in class GridPanelFormatter
public String getId()
GridPanelFormatter
getId
in class GridPanelFormatter
public String getTitle()
GridPanelFormatter
getTitle
in class GridPanelFormatter
public int getWidthForVertical(GridPanel panel)
GridPanelFormatter
getWidthForVertical
in class GridPanelFormatter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |