lt.monarch.chart.chart2D.engine
Interface Projector2D

All Superinterfaces:
java.lang.Cloneable, Projector
All Known Implementing Classes:
PolarProjector, SimpleProjector2D

public interface Projector2D
extends Projector

2D projector maps Point2D objects into the specified projection area by scaling.


Method Summary
Modifier and Type Method and Description
 Rectangle2D getViewableArea()
          Returns viewable area for projector.
 Point2D projectBack(java.awt.Point pt)
          Projects the specified 2-dimensional point back into normalized point.
 Point2D projectBack(java.awt.Point pt, Point2D pt2D)
          Projects the specified 2-dimensional point back into normalized point.
 void setViewableArea(Rectangle2D viewableArea)
          Sets viewable area for projector: (0.0, 0.0, 1.0, 1.0) visible full chart.
 
Methods inherited from interface lt.monarch.chart.engine.Projector
clone, getProjectionArea, getProjectionAreaReference, prepare, project, project, project, setProjectionArea
 

Method Detail

projectBack

Point2D projectBack(java.awt.Point pt)
Projects the specified 2-dimensional point back into normalized point.

Parameters:
pt - the point to project
Returns:
normalized point representing the specified point

projectBack

Point2D projectBack(java.awt.Point pt,
                    Point2D pt2D)
Projects the specified 2-dimensional point back into normalized point. A Point2D template is used to avoid unnecessary object creation.

Parameters:
pt - the point to project
pt2D - Point2D template to write back-projection results to
Returns:
the reference to the template point containing back-projection results

setViewableArea

void setViewableArea(Rectangle2D viewableArea)
Sets viewable area for projector: (0.0, 0.0, 1.0, 1.0) visible full chart.

Parameters:
viewableArea - projector viewable area

getViewableArea

Rectangle2D getViewableArea()
Returns viewable area for projector.

Returns:
projector viewable area