|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.visualization.transform.AffineTransformer
public class AffineTransformer
Provides methods to map points from one coordinate system to another, by delegating to a wrapped AffineTransform (uniform) and its inverse.
Field Summary | |
---|---|
protected AffineTransform |
inverse
|
protected AffineTransform |
transform
the AffineTransform to use. |
Constructor Summary | |
---|---|
AffineTransformer()
create an instance that does not transform points |
|
AffineTransformer(AffineTransform transform)
Create an instance with the supplied transform |
Method Summary | |
---|---|
AffineTransform |
getInverse()
|
double |
getRotation()
|
double |
getScale()
|
double |
getScaleX()
getter for scalex |
double |
getScaleY()
getter for scaley |
double |
getShearX()
getter for shear in x axis |
double |
getShearY()
getter for shear in y axis |
AffineTransform |
getTransform()
|
double |
getTranslateX()
get the translate x value |
double |
getTranslateY()
get the translate y value |
Point2D |
inverseTransform(Point2D p)
applies the inverse transform to the supplied point |
Shape |
inverseTransform(Shape shape)
transform the supplied shape from graph coordinates to screen coordinates |
void |
setTransform(AffineTransform transform)
|
String |
toString()
|
Point2D |
transform(Point2D p)
applies the transform to the supplied point |
Shape |
transform(Shape shape)
transform the supplied shape from graph coordinates to screen coordinates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AffineTransform inverse
protected AffineTransform transform
Constructor Detail |
---|
public AffineTransformer()
public AffineTransformer(AffineTransform transform)
Method Detail |
---|
public AffineTransform getTransform()
public void setTransform(AffineTransform transform)
transform
- The transform to set.public Point2D inverseTransform(Point2D p)
inverseTransform
in interface BidirectionalTransformer
p
-
public AffineTransform getInverse()
public double getScaleX()
public double getScaleY()
public double getScale()
public double getShearX()
public double getShearY()
public double getTranslateX()
public double getTranslateY()
public Point2D transform(Point2D p)
transform
in interface BidirectionalTransformer
p
- graph point to convert
public Shape transform(Shape shape)
transform
in interface BidirectionalTransformer
transform
in interface ShapeTransformer
public Shape inverseTransform(Shape shape)
inverseTransform
in interface BidirectionalTransformer
inverseTransform
in interface ShapeTransformer
public double getRotation()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |