Interface BidirectionalTransformer
-
- All Known Subinterfaces:
MultiLayerTransformer,MutableTransformer,ShapeFlatnessTransformer,ShapeTransformer
- All Known Implementing Classes:
AffineTransformer,DefaultTransformer,HyperbolicShapeTransformer,HyperbolicTransformer,LensTransformer,LensTransformSupport,MagnifyShapeTransformer,MagnifyTransformer,MutableAffineTransformer,MutableTransformerDecorator,TransformSupport
public interface BidirectionalTransformerProvides methods to map points from one coordinate system to another: graph to screen and screen to graph.- Author:
- Tom Nelson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Point2DinverseTransform(double x, double y)Point2DinverseTransform(Point2D p)convert the supplied screen coordinate to the graph coordinate.Point2Dtransform(double x, double y)Point2Dtransform(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
-
transform
Point2D transform(double x, double y)
-
inverseTransform
Point2D inverseTransform(Point2D p)
convert the supplied screen coordinate to the graph coordinate.- Parameters:
p- screen point to convert- Returns:
- the graph point
-
inverseTransform
Point2D inverseTransform(double x, double y)
-
-