edu.uci.ics.jung.visualization.transform
Interface ViewTransformer

All Known Implementing Classes:
SatelliteVisualizationViewer, VisualizationViewer

public interface ViewTransformer

Provides methods to map points from one coordinate system to another: graph to screen and screen to graph.

Author:
Tom Nelson - RABA Technologies

Method Summary
 Point2D inverseViewTransform(Point2D p)
          convert the supplied screen coordinate to the graph coordinate.
 Point2D viewTransform(Point2D p)
          convert the supplied graph coordinate to the screen coordinate
 

Method Detail

viewTransform

Point2D viewTransform(Point2D p)
convert the supplied graph coordinate to the screen coordinate

Parameters:
p - graph point to convert
Returns:
screen point

inverseViewTransform

Point2D inverseViewTransform(Point2D p)
convert the supplied screen coordinate to the graph coordinate.

Parameters:
p - screen point to convert
Returns:
the graph point