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

All Known Subinterfaces:
MutableTransformer, ShapeTransformer
All Known Implementing Classes:
AffineTransformer, HyperbolicShapeTransformer, HyperbolicTransformer, LensTransformer, MagnifyShapeTransformer, MagnifyTransformer, MutableAffineTransformer, MutableTransformerDecorator, SatelliteVisualizationViewer, VisualizationViewer

public interface Transformer

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 inverseTransform(Point2D p)
          convert the supplied screen coordinate to the graph coordinate.
 Point2D transform(Point2D p)
          convert the supplied graph coordinate to the screen coordinate
 

Method Detail

transform

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

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

inverseTransform

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

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