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.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Constructor Summary
Simple()
           
 
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
 Cog getState()
           
 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
 void setState(Cog newState)
           
 
Methods inherited from class com.partnersoft.geometry.projection.Projection
project, project, projectFeet, projectFeet, projectFeet, reverse, reverse, reverseFeet, reverseFeet, reverseFeet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Simple

public Simple()
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

getState

public Cog getState()

setState

public void setState(Cog newState)

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