Class MagnifyShapeTransformer
java.lang.Object
edu.uci.ics.jung.visualization.transform.MutableTransformerDecorator
edu.uci.ics.jung.visualization.transform.LensTransformer
edu.uci.ics.jung.visualization.transform.MagnifyTransformer
edu.uci.ics.jung.visualization.transform.shape.MagnifyShapeTransformer
- All Implemented Interfaces:
BidirectionalTransformer, MutableTransformer, ShapeFlatnessTransformer, ShapeTransformer, ChangeEventSupport
MagnifyShapeTransformer extends MagnifyTransformer and
adds implementations for methods in ShapeTransformer.
It modifies the shapes (Vertex, Edge, and Arrowheads) so that
they are enlarged by the magnify transformation.
-
Nested Class Summary
Nested classes/interfaces inherited from class LensTransformer
LensTransformer.ComponentListenerImpl -
Field Summary
Fields inherited from class LensTransformer
lensShape, magnificationFields inherited from class MutableTransformerDecorator
delegate -
Constructor Summary
ConstructorsConstructorDescriptionMagnifyShapeTransformer(Component component) Create an instance, setting values from the passed component and registering to listen for size changes on the component.MagnifyShapeTransformer(Component component, MutableTransformer delegate) Create an instance, setting values from the passed component and registering to listen for size changes on the component, with a possibly shared transformdelegate. -
Method Summary
Modifier and TypeMethodDescriptionprivate Point2D_inverseTransform(Point2D viewPoint) override base class to un-project the fisheye effectprivate Point2D_transform(Point2D graphPoint) inverseTransform(Shape shape) Returns the supplied shape, translated to the coordinates that result from calling inverseTransform on its center.Magnify the shape, without considering the Lens.Transform the supplied shape with the overridden transform method so that the shape is distorted by the magnify transform.map a shape from graph coordinate system to the screen coordinate systemMethods inherited from class MagnifyTransformer
inverseTransform, magnify, transformMethods inherited from class LensTransformer
getDistanceFromCenter, getLensShape, getMagnification, getRatio, getViewCenter, getViewRadius, setLensShape, setMagnification, setToIdentity, setViewCenter, setViewRadiusMethods inherited from class MutableTransformerDecorator
addChangeListener, concatenate, fireStateChanged, getChangeListeners, getDelegate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, removeChangeListener, rotate, rotate, scale, setDelegate, setScale, setTranslate, shear, translateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BidirectionalTransformer
inverseTransform, transformMethods inherited from interface ChangeEventSupport
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListenerMethods inherited from interface MutableTransformer
concatenate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, rotate, rotate, scale, setScale, setToIdentity, setTranslate, shear, translate
-
Constructor Details
-
MagnifyShapeTransformer
Create an instance, setting values from the passed component and registering to listen for size changes on the component.- Parameters:
component- the component used for rendering
-
MagnifyShapeTransformer
Create an instance, setting values from the passed component and registering to listen for size changes on the component, with a possibly shared transformdelegate.- Parameters:
component- the component used for renderingdelegate- the transformer to use
-
-
Method Details
-
transform
Transform the supplied shape with the overridden transform method so that the shape is distorted by the magnify transform.- Specified by:
transformin interfaceShapeTransformer- Overrides:
transformin classLensTransformer- Parameters:
shape- a shape to transform- Returns:
- a GeneralPath for the transformed shape
-
transform
Description copied from interface:ShapeFlatnessTransformermap a shape from graph coordinate system to the screen coordinate system- Specified by:
transformin interfaceShapeFlatnessTransformer- Parameters:
shape- the shape to be transformedflatness- used to break the supplied shape into segments- Returns:
- a GeneralPath (Shape) representing the screen points of the shape
-
inverseTransform
Description copied from class:LensTransformerReturns the supplied shape, translated to the coordinates that result from calling inverseTransform on its center.- Specified by:
inverseTransformin interfaceShapeTransformer- Overrides:
inverseTransformin classLensTransformer
-
_transform
-
_inverseTransform
-
magnify
-
magnify
-