Documentation of 'edu.uci.ics.jung.visualization.transform.LensTransformer' Java class
LensTransformer
edu.uci.ics.jung.visualization.transform

Class LensTransformer

    • Constructor Detail

      • LensTransformer

        public LensTransformer(java.awt.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 Detail

      • getMagnification

        public float getMagnification()
      • setMagnification

        public void setMagnification(float magnification)
      • getViewCenter

        public java.awt.geom.Point2D getViewCenter()
      • setViewCenter

        public void setViewCenter(java.awt.geom.Point2D viewCenter)
      • getViewRadius

        public double getViewRadius()
      • setViewRadius

        public void setViewRadius(double viewRadius)
      • getRatio

        public double getRatio()
        Returns:
        the ratio between the lens height and lens width
      • setLensShape

        public void setLensShape(java.awt.geom.RectangularShape ellipse)
      • getLensShape

        public java.awt.geom.RectangularShape getLensShape()
      • transform

        public abstract java.awt.geom.Point2D transform(java.awt.geom.Point2D graphPoint)
        override base class transform to project the fisheye effect
        Specified by:
        transform in interface BidirectionalTransformer
        Overrides:
        transform in class MutableTransformerDecorator
        Parameters:
        graphPoint - graph point to convert
        Returns:
        screen point
      • getDistanceFromCenter

        public double getDistanceFromCenter(java.awt.geom.Point2D p)
      • transform

        public java.awt.Shape transform(java.awt.Shape shape)
        return the supplied shape, translated to the coordinates that result from calling transform on its center
        Specified by:
        transform in interface ShapeTransformer
        Overrides:
        transform in class MutableTransformerDecorator
        Parameters:
        shape - the Shape to transform
        Returns:
        a GeneralPath (Shape) representing the screen points of the shape

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.