Class LensTransformSupport<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.transform.AffineTransformer
-
- org.jungrapht.visualization.transform.MutableAffineTransformer
-
- org.jungrapht.visualization.control.TransformSupport<V,E>
-
- org.jungrapht.visualization.control.LensTransformSupport<V,E>
-
- Type Parameters:
V
- vertex typeE
- edge type
- All Implemented Interfaces:
BidirectionalTransformer
,MutableTransformer
,ShapeTransformer
,ChangeEventSupport
public class LensTransformSupport<V,E> extends TransformSupport<V,E>
- Author:
- Tom Nelson
-
-
Field Summary
-
Fields inherited from class org.jungrapht.visualization.transform.MutableAffineTransformer
changeSupport
-
Fields inherited from class org.jungrapht.visualization.transform.AffineTransformer
inverse, transform
-
-
Constructor Summary
Constructors Constructor Description LensTransformSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point2D
inverseTransform(VisualizationServer<V,E> vv, Point2D p)
Overridden to apply lens effects to the transformation from view to layout coordinatesShape
inverseTransform(VisualizationServer<V,E> vv, Shape shape)
Overridden to perform lens effects when inverse transforming from view to layout.Point2D
transform(VisualizationServer<V,E> vv, Point2D p)
Overriden to perform lens effects when transforming from Layout to view.Point2D
transform(VisualizationServer<V,E> vv, Point2D p, MultiLayerTransformer.Layer layer)
Overriden to perform lens effects when transforming from Layout to view.Shape
transform(VisualizationServer<V,E> vv, Shape shape)
Overridden to perform lens effects when transforming from Layout to view.Shape
transform(VisualizationServer<V,E> vv, Shape shape, MultiLayerTransformer.Layer layer)
Overridden to perform lens effects when transforming from Layout to view.-
Methods inherited from class org.jungrapht.visualization.transform.MutableAffineTransformer
addChangeListener, concatenate, fireStateChanged, getChangeListeners, preConcatenate, removeChangeListener, rotate, rotate, scale, setScale, setToIdentity, setTranslate, shear, translate
-
Methods inherited from class org.jungrapht.visualization.transform.AffineTransformer
getInverse, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, inverseTransform, inverseTransform, inverseTransform, scale, setTransform, transform, transform, transform
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.transform.BidirectionalTransformer
inverseTransform, inverseTransform, transform, transform
-
Methods inherited from interface org.jungrapht.visualization.transform.MutableTransformer
getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, scale
-
Methods inherited from interface org.jungrapht.visualization.transform.shape.ShapeTransformer
inverseTransform, transform
-
-
-
-
Method Detail
-
inverseTransform
public Point2D inverseTransform(VisualizationServer<V,E> vv, Point2D p)
Overridden to apply lens effects to the transformation from view to layout coordinates- Overrides:
inverseTransform
in classTransformSupport<V,E>
- Parameters:
vv
-p
-- Returns:
-
transform
public Shape transform(VisualizationServer<V,E> vv, Shape shape)
Description copied from class:TransformSupport
Overridden to perform lens effects when transforming from Layout to view. Used when projecting the selection Lens (the rectangular area drawn with the mouse) back into the view.- Overrides:
transform
in classTransformSupport<V,E>
- Returns:
-
transform
public Shape transform(VisualizationServer<V,E> vv, Shape shape, MultiLayerTransformer.Layer layer)
Description copied from class:TransformSupport
Overridden to perform lens effects when transforming from Layout to view. Used when projecting the selection Lens (the rectangular area drawn with the mouse) back into the view.- Overrides:
transform
in classTransformSupport<V,E>
- Returns:
-
transform
public Point2D transform(VisualizationServer<V,E> vv, Point2D p)
Description copied from class:TransformSupport
Overriden to perform lens effects when transforming from Layout to view. Used when projecting the selection Lens (the rectangular area drawn with the mouse) back into the view.- Overrides:
transform
in classTransformSupport<V,E>
- Returns:
-
transform
public Point2D transform(VisualizationServer<V,E> vv, Point2D p, MultiLayerTransformer.Layer layer)
Description copied from class:TransformSupport
Overriden to perform lens effects when transforming from Layout to view. Used when projecting the selection Lens (the rectangular area drawn with the mouse) back into the view.- Overrides:
transform
in classTransformSupport<V,E>
- Returns:
-
inverseTransform
public Shape inverseTransform(VisualizationServer<V,E> vv, Shape shape)
Overridden to perform lens effects when inverse transforming from view to layout.- Overrides:
inverseTransform
in classTransformSupport<V,E>
- Parameters:
vv
-shape
-- Returns:
-
-