Class LensTransformer

java.lang.Object
edu.uci.ics.jung.visualization.transform.MutableTransformerDecorator
edu.uci.ics.jung.visualization.transform.LensTransformer
All Implemented Interfaces:
BidirectionalTransformer, MutableTransformer, ShapeTransformer, ChangeEventSupport
Direct Known Subclasses:
HyperbolicTransformer, MagnifyTransformer

public abstract class LensTransformer extends MutableTransformerDecorator implements MutableTransformer
LensTransformer wraps a MutableAffineTransformer and modifies the transform and inverseTransform methods so that they create a projection of the graph points within an elliptical lens. LensTransformer uses an affine transform to cause translation, scaling, rotation, and shearing while applying a possibly non-affine filter in its transform and inverseTransform methods.
  • Field Details

    • lensShape

      protected RectangularShape lensShape
      the area affected by the transform
    • magnification

      protected float magnification
  • Constructor Details

    • LensTransformer

      public LensTransformer(Component component, MutableTransformer delegate)
      Create an instance with a possibly shared transform.
      Parameters:
      component - the component used for rendering
      delegate - the transformer to use
  • Method Details