public class HyperbolicShapeTransformer extends HyperbolicTransformer implements ShapeFlatnessTransformer
LensTransformer.ComponentListenerImpl
lensShape, magnification
delegate
Constructor and Description |
---|
HyperbolicShapeTransformer(Component component)
Create an instance, setting values from the passed component
and registering to listen for size changes on the component.
|
HyperbolicShapeTransformer(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 |
transform(Shape shape)
Transform the supplied shape with the overridden transform
method so that the shape is distorted by the hyperbolic
transform.
|
Shape |
transform(Shape shape,
float flatness)
map a shape from graph coordinate system to the
screen coordinate system
|
inverseTransform, transform
getDistanceFromCenter, getLensShape, getMagnification, getRatio, getViewCenter, getViewRadius, setLensShape, setMagnification, setToIdentity, setViewCenter, setViewRadius
addChangeListener, concatenate, fireStateChanged, getChangeListeners, getDelegate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, removeChangeListener, rotate, rotate, scale, setDelegate, setScale, setTranslate, shear, translate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
inverseTransform, transform
concatenate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, rotate, rotate, scale, setScale, setToIdentity, setTranslate, shear, translate
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
public HyperbolicShapeTransformer(Component component)
component
- the component in which rendering takes placepublic HyperbolicShapeTransformer(Component component, MutableTransformer delegate)
delegate
.component
- the component in which rendering takes placedelegate
- the transformer to usepublic Shape transform(Shape shape)
transform
in interface ShapeTransformer
transform
in class LensTransformer
shape
- a shape to transformpublic Shape transform(Shape shape, float flatness)
ShapeFlatnessTransformer
transform
in interface ShapeFlatnessTransformer
shape
- the shape to be transformedflatness
- used to break the supplied shape into segmentspublic Shape inverseTransform(Shape shape)
LensTransformer
inverseTransform
in interface ShapeTransformer
inverseTransform
in class LensTransformer
Copyright © 2015. All rights reserved.