com.partnersoft.geometry.projection
Class NullProjection

java.lang.Object
  extended by com.partnersoft.geometry.projection.Projection
      extended by com.partnersoft.geometry.projection.NullProjection
All Implemented Interfaces:
Coggable

public class NullProjection
extends Projection

A do-nothing projection, surprisingly handy.

Copyright 2004-2009 Partner Software, Inc.

Version:
$Id: NullProjection.java 2328 2010-01-06 15:38:22Z paul $
Author:
Paul Reavis

Constructor Summary
NullProjection()
           
NullProjection(Cog newState)
           
 
Method Summary
 void project(Point point)
          Project from latlong to xy.
 void reverse(Point point)
          Reverse project from xy to latlong.
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 
Methods inherited from class com.partnersoft.geometry.projection.Projection
getName, project, project, project, project, projectFeet, projectFeet, projectFeet, projectFeet, projectFeet, reverse, reverse, reverse, reverse, reverseFeet, reverseFeet, reverseFeet, reverseFeet, reverseFeet, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullProjection

public NullProjection(Cog newState)

NullProjection

public NullProjection()
Method Detail

project

public void project(Point point)
Description copied from class: Projection
Project from latlong to xy. Modifies the input Point. Remember that Point.x is longitude, Point.y is latitude.

Specified by:
project in class Projection

reverse

public void reverse(Point point)
Description copied from class: Projection
Reverse project from xy to latlong. Results are returned with point.x = long, point.y = lat. Modifies input.

Specified by:
reverse in class Projection

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Returns:
Cog representing the internal state of this object