|
|||||||||
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_DHDN
public class GridPanelFormatter_DHDN
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 |
---|
public GridPanelFormatter_DHDN()
crs
- the CRS the formatter can format
FactoryException
NoSuchAuthorityCodeException
Method Detail |
---|
public double determineGridDistance(GridPanel panel, double mapMinCoord, double mapMaxCoord, int panelSize)
GridPanelFormatter
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 pixelspublic String formatCoordinate(GridPanel panel, double coord)
GridPanelFormatter
formatCoordinate
in class GridPanelFormatter
coord
- the coordinate
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 |