|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmccombe.mapping.MappingToolkit
public class MappingToolkit
MappingToolkit provides access to standard features of the mapping package by name. It is particularly useful in a GUI environment where the user needs to be able to select from lists of CoordinateSystems, Datums and Ellipsoids
| Constructor Summary | |
|---|---|
MappingToolkit()
Construct a new MappingToolkit |
|
| Method Summary | |
|---|---|
void |
add(CoordinateSystem c,
java.lang.String example)
Add a CoordinateSystem type to the toolkit |
Datum |
defaultDatum(java.lang.String classname)
Provide the default Datum for the specified CoordinateSystem |
Ellipsoid |
defaultEllipsoid(java.lang.String classname)
Provide the default Ellipsoid for the named CoordinateSystem class |
java.util.Vector<java.lang.String> |
getCoordinateSystemNames()
Create an alphabetically ordered list of CoordinateSystem names |
Datum |
getDatum(java.lang.String name)
Get an instance of a specific Datum |
java.util.Vector<Datum> |
getDatumList()
get a list of available Datum instances |
Ellipsoid |
getEllipsoid(java.lang.String name)
Get an instance of a specific Ellipsoid |
java.util.Vector<Ellipsoid> |
getEllipsoidList()
Get a list of available Ellipsoid instances |
java.lang.String |
getExample(java.lang.String classname)
Get an example of a grid reference for a specified CoordinateSystem |
java.util.Vector<java.lang.String> |
getProjectionNames()
Create an alphabetically-ordered list of Projections. |
CoordinateSystem |
makeCoordinateSystem(java.lang.String name,
java.lang.Object... args)
Make a CoordinateSystem instance from a grid reference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingToolkit()
| Method Detail |
|---|
public Ellipsoid defaultEllipsoid(java.lang.String classname)
throws java.lang.IllegalArgumentException
classname - The name of the CoordinateSystem
java.lang.IllegalArgumentException - if the CoordinateSystem cannot be found
public Datum defaultDatum(java.lang.String classname)
throws java.lang.IllegalArgumentException
classname - A String containing the name of a CoordinateSystem
java.lang.IllegalArgumentException - if the CoordinateSystem cannot be found.
public CoordinateSystem makeCoordinateSystem(java.lang.String name,
java.lang.Object... args)
throws java.lang.NoSuchMethodException,
GridFormatException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.InstantiationException
name - - the name of the CoordinateSystem to makeargs - - the argument list for the class's makePoint() method
java.lang.NoSuchMethodException
GridFormatException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationExceptionpublic java.util.Vector<java.lang.String> getCoordinateSystemNames()
public java.util.Vector<java.lang.String> getProjectionNames()
public java.util.Vector<Datum> getDatumList()
public Datum getDatum(java.lang.String name)
name - - the name of the Datum
public Ellipsoid getEllipsoid(java.lang.String name)
name - - the name of the Ellipsoid
public java.lang.String getExample(java.lang.String classname)
throws java.lang.IllegalArgumentException
classname - - the name of the CoordinateSystem
java.lang.IllegalArgumentException - if the CoordinateSystem name cannot be foundpublic java.util.Vector<Ellipsoid> getEllipsoidList()
public void add(CoordinateSystem c,
java.lang.String example)
c - a CoordinateSystem instanceexample - - a String containing a valid grid reference for this type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||