Interface ShapeFlatnessTransformer

All Superinterfaces:
BidirectionalTransformer, ShapeTransformer
All Known Implementing Classes:
HyperbolicShapeTransformer, MagnifyShapeTransformer

public interface ShapeFlatnessTransformer extends ShapeTransformer
Provides methods to map points from one coordinate system to another: graph to screen and screen to graph. The flatness parameter is used to break a curved shape into smaller segments in order to perform a more detailed transformation.
  • Method Details

    • transform

      Shape transform(Shape shape, float flatness)
      map a shape from graph coordinate system to the screen coordinate system
      Parameters:
      shape - the shape to be transformed
      flatness - used to break the supplied shape into segments
      Returns:
      a GeneralPath (Shape) representing the screen points of the shape