public class MagnifyShapeTransformer extends MagnifyTransformer implements ShapeFlatnessTransformer
LensTransformer.ComponentListenerImpllensShape, magnificationdelegate| Constructor and Description |
|---|
MagnifyShapeTransformer(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 transform
delegate. |
| Modifier and Type | Method and Description |
|---|---|
Shape |
inverseTransform(Shape shape)
Returns the supplied shape, translated to the coordinates
that result from calling inverseTransform on its center.
|
Shape |
magnify(Shape shape)
Magnify the shape, without considering the Lens.
|
Shape |
magnify(Shape shape,
float flatness) |
Shape |
transform(Shape shape)
Transform the supplied shape with the overridden transform
method so that the shape is distorted by the magnify
transform.
|
Shape |
transform(Shape shape,
float flatness)
map a shape from graph coordinate system to the
screen coordinate system
|
inverseTransform, magnify, transformgetDistanceFromCenter, getLensShape, getMagnification, getRatio, getViewCenter, getViewRadius, setLensShape, setMagnification, setToIdentity, setViewCenter, setViewRadiusaddChangeListener, concatenate, fireStateChanged, getChangeListeners, getDelegate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, removeChangeListener, rotate, rotate, scale, setDelegate, setScale, setTranslate, shear, translateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinverseTransform, transformconcatenate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, rotate, rotate, scale, setScale, setToIdentity, setTranslate, shear, translateaddChangeListener, fireStateChanged, getChangeListeners, removeChangeListenerpublic MagnifyShapeTransformer(Component component)
component - the component used for renderingpublic MagnifyShapeTransformer(Component component, MutableTransformer delegate)
delegate.component - the component used for renderingdelegate - the transformer to usepublic Shape transform(Shape shape)
transform in interface ShapeTransformertransform in class LensTransformershape - a shape to transformpublic Shape transform(Shape shape, float flatness)
ShapeFlatnessTransformertransform in interface ShapeFlatnessTransformershape - the shape to be transformedflatness - used to break the supplied shape into segmentspublic Shape inverseTransform(Shape shape)
LensTransformerinverseTransform in interface ShapeTransformerinverseTransform in class LensTransformerpublic Shape magnify(Shape shape)
shape - the shape to magnifyCopyright © 2016. All rights reserved.