Interface BidirectionalTransformer

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

public interface BidirectionalTransformer
Provides methods to map points from one coordinate system to another: graph to screen and screen to graph.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert the supplied screen coordinate to the graph coordinate.
    convert the supplied graph coordinate to the screen coordinate
  • Method Details

    • 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