ilog.views.maps.projection
Class IlvProjectionDictionary

java.lang.Object
  extended by ilog.views.maps.projection.IlvProjectionDictionary
All Implemented Interfaces:
Serializable

public class IlvProjectionDictionary
extends Object
implements Serializable

This class implements a dictionary providing facilities to retrieve the name of the available projections as well as instances of these projections.

See Also:
Serialized Form

Constructor Summary
IlvProjectionDictionary()
          Creates an instance of the projection dictionary and initializes it with the projections in the package.
 
Method Summary
 IlvProjection getProjection(String name)
          Returns the projection corresponding to the string passed as argument.
 Enumeration getProjectionNames()
          Returns a list of the projections supported by the dictionary.
 void registerProjection(String name, Class projectionClass)
          Registers a new projection.
 boolean unregisterProjection(String name)
          Removes a projection from the dictionary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvProjectionDictionary

public IlvProjectionDictionary()
Creates an instance of the projection dictionary and initializes it with the projections in the package.

Method Detail

getProjection

public IlvProjection getProjection(String name)
Returns the projection corresponding to the string passed as argument.
Returns null if the projection is not known.


getProjectionNames

public Enumeration getProjectionNames()
Returns a list of the projections supported by the dictionary.
The elements in the enumeration are instances of the class String.


registerProjection

public void registerProjection(String name,
                               Class projectionClass)
Registers a new projection.

Parameters:
name - the name of the projection
projectionClass - the class that defines the projection. This projection class must inherit from the class IlvProjection and have a constructor without argument.

unregisterProjection

public boolean unregisterProjection(String name)
Removes a projection from the dictionary.

Returns:
true if the projection was in the dictionary


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.