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

All Known Subinterfaces:
MultiLayerTransformer, MutableTransformer, ShapeFlatnessTransformer, ShapeTransformer
All Known Implementing Classes:
AffineTransformer, BasicTransformer, HyperbolicShapeTransformer, HyperbolicTransformer, LensTransformer, MagnifyShapeTransformer, MagnifyTransformer, MutableAffineTransformer, MutableTransformerDecorator, PerspectiveShapeTransformer, PerspectiveTransformer

public interface BidirectionalTransformer

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

Author:
Tom Nelson

Method Summary
 Point2D inverseTransform(Point2D p)
          convert the supplied screen coordinate to the graph coordinate.
 Shape inverseTransform(Shape shape)
           
 Point2D transform(Point2D p)
          convert the supplied graph coordinate to the screen coordinate
 Shape transform(Shape shape)
           
 

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

transform

Shape transform(Shape shape)
Parameters:
shape -
Returns:

inverseTransform

Shape inverseTransform(Shape shape)
Parameters:
shape -
Returns:


Copyright © 2009. All Rights Reserved.