com.partnersoft.geometry.projection
Class Simple

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

public class Simple
extends Projection

A simple scaling/offsetting projection.

Copyright 2003 Partner Software, Inc.

Version:
$Id: Simple.java 2046 2009-08-25 05:28:53Z paul $
Author:
Paul Reavis

Constructor Summary
Simple(Cog newState)
           
 
Method Summary
 double getOffsetX()
          Gets the value of offsetX
 double getOffsetY()
          Gets the value of offsetY
 double getScaleX()
          Gets the value of scaleX
 double getScaleY()
          Gets the value of scaleY
 void project(Point point)
          Project from latlong to xy.
 void reverse(Point point)
          Reverse project from xy to latlong.
 void setOffsetX(double argOffsetX)
          Sets the value of offsetX
 void setOffsetY(double argOffsetY)
          Sets the value of offsetY
 void setScaleX(double argScaleX)
          Sets the value of scaleX
 void setScaleY(double argScaleY)
          Sets the value of scaleY
 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

Simple

public Simple(Cog newState)
Method Detail

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

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

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

getOffsetX

public double getOffsetX()
Gets the value of offsetX

Returns:
the value of offsetX

setOffsetX

public void setOffsetX(double argOffsetX)
Sets the value of offsetX

Parameters:
argOffsetX - Value to assign to this.offsetX

getOffsetY

public double getOffsetY()
Gets the value of offsetY

Returns:
the value of offsetY

setOffsetY

public void setOffsetY(double argOffsetY)
Sets the value of offsetY

Parameters:
argOffsetY - Value to assign to this.offsetY

getScaleX

public double getScaleX()
Gets the value of scaleX

Returns:
the value of scaleX

setScaleX

public void setScaleX(double argScaleX)
Sets the value of scaleX

Parameters:
argScaleX - Value to assign to this.scaleX

getScaleY

public double getScaleY()
Gets the value of scaleY

Returns:
the value of scaleY

setScaleY

public void setScaleY(double argScaleY)
Sets the value of scaleY

Parameters:
argScaleY - Value to assign to this.scaleY