Interface ShapeTransformer

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

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

    • transform

      Shape transform(Shape shape)
      map a shape from graph coordinate system to the screen coordinate system
      Parameters:
      shape - the Shape to transform
      Returns:
      a GeneralPath (Shape) representing the screen points of the shape
    • inverseTransform

      Shape inverseTransform(Shape shape)