Class TransformSupport<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.transform.AffineTransformer
-
- org.jungrapht.visualization.transform.MutableAffineTransformer
-
- org.jungrapht.visualization.control.TransformSupport<V,E>
-
- Type Parameters:
V
- vertex typeE
- edge type
- All Implemented Interfaces:
BidirectionalTransformer
,MutableTransformer
,ShapeTransformer
,ChangeEventSupport
- Direct Known Subclasses:
LensTransformSupport
public class TransformSupport<V,E> extends MutableAffineTransformer
- 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 TransformSupport()
-
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)
Overriden 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- Parameters:
vv
-p
-- Returns:
-
transform
public Point2D transform(VisualizationServer<V,E> vv, Point2D p)
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.- Parameters:
vv
-p
-- Returns:
-
transform
public Point2D transform(VisualizationServer<V,E> vv, Point2D p, MultiLayerTransformer.Layer layer)
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.- Parameters:
vv
-p
-- Returns:
-
transform
public Shape transform(VisualizationServer<V,E> vv, Shape shape)
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.- Parameters:
vv
-shape
-- Returns:
-
transform
public Shape transform(VisualizationServer<V,E> vv, Shape shape, MultiLayerTransformer.Layer layer)
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.- Parameters:
vv
-shape
-- Returns:
-
inverseTransform
public Shape inverseTransform(VisualizationServer<V,E> vv, Shape shape)
Overriden to perform lens effects when inverse transforming from view to layout.- Parameters:
vv
-shape
-- Returns:
-
-