Class ViewTransform

java.lang.Object
  |
  +--java.awt.geom.AffineTransform
        |
        +--ViewTransform
All Implemented Interfaces:
Aligner, AlignmentListener, java.lang.Cloneable, java.io.Serializable, ViewOperator
Direct Known Subclasses:
FixedAligner

public class ViewTransform
extends java.awt.geom.AffineTransform
implements ViewOperator, Aligner

See Also:
Serialized Form

Field Summary
(package private) static int ABSOLUTE
           
 ViewTransform aligner
           
(package private)  int alignmentmask
           
(package private)  double angle
           
(package private)  SavableWeakHashMap listeners
           
(package private)  int mode
           
 java.lang.String name
           
(package private)  int num
           
(package private)  java.awt.geom.AffineTransform oldalignment
           
(package private)  double oldangle
           
(package private)  double oldscale
           
(package private)  double oldx
           
(package private)  double oldy
           
(package private) static int PARENT
           
(package private) static int POSTMULTIPLY
           
(package private) static int PREMULTIPLY
           
(package private)  double scale
           
private static long serialVersionUID
           
 
Fields inherited from class java.awt.geom.AffineTransform
TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE
 
Fields inherited from interface Aligner
absolute, datum, floating
 
Constructor Summary
ViewTransform()
           
ViewTransform(double x, double y)
           
ViewTransform(double scale, double rotation, double x, double y)
           
ViewTransform(double scale, double rotation, java.awt.geom.Point2D translation)
           
ViewTransform(int mode)
           
ViewTransform(java.awt.geom.Point2D translation)
           
 
Method Summary
 void addAlignmentListener(AlignmentListener target)
           
 void alignAll(java.util.Vector targets, Alignment params)
           
 void alignmentChanged()
           
 void apply(View v)
           
 boolean checkDepend(ViewTransform target)
           
 void clearAlignment()
           
 Aligner defaultAligner()
           
 double distance(double x, double y)
           
 double distance(java.awt.geom.Point2D to)
           
 ViewTransform getAlignTransform()
           
 ViewTransform getAlignView()
           
 java.awt.geom.Point2D.Double getTranslation()
           
 boolean hasAlignment()
           
 void listListeners()
          Print list of AlignmentListeners
to standard output.
 void notifyChange()
           
 void removeAlignmentListener(Aligner target)
           
 void setLocation(double x, double y)
           
 void setLocation(java.awt.geom.Point2D newpos)
           
 void setRotation(double angle)
           
 void setRotation(double angle, double x, double y)
           
 void setScale(double scale)
           
 void setScale(double scale, double x, double y)
           
 void setTransform(double scale, double rotation, double x, double y)
           
 void showAlignee(View view)
           
 java.awt.geom.Point2D showAligner(View view)
           
 void strip(View v)
           
 java.lang.String toString()
           
 void track(ViewTransform master, int mask)
           
 java.awt.geom.Point2D transformOrigin(java.awt.geom.AffineTransform trans, java.awt.geom.Point2D res)
           
 
Methods inherited from class java.awt.geom.AffineTransform
clone, concatenate, createInverse, createTransformedShape, deltaTransform, deltaTransform, equals, getDeterminant, getMatrix, getRotateInstance, getRotateInstance, getScaleInstance, getScaleX, getScaleY, getShearInstance, getShearX, getShearY, getTranslateInstance, getTranslateX, getTranslateY, getType, hashCode, inverseTransform, inverseTransform, isIdentity, preConcatenate, rotate, rotate, scale, setToIdentity, setToRotation, setToRotation, setToScale, setToShear, setToTranslation, setTransform, setTransform, shear, transform, transform, transform, transform, transform, transform, translate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

PARENT

static int PARENT

ABSOLUTE

static int ABSOLUTE

PREMULTIPLY

static int PREMULTIPLY

POSTMULTIPLY

static int POSTMULTIPLY

mode

int mode

scale

double scale

angle

double angle

listeners

SavableWeakHashMap listeners

aligner

public ViewTransform aligner

alignmentmask

int alignmentmask

oldscale

double oldscale

oldangle

double oldangle

oldx

double oldx

oldy

double oldy

oldalignment

java.awt.geom.AffineTransform oldalignment

name

public java.lang.String name

num

int num
Constructor Detail

ViewTransform

public ViewTransform(int mode)

ViewTransform

public ViewTransform()

ViewTransform

public ViewTransform(double scale,
                     double rotation,
                     double x,
                     double y)

ViewTransform

public ViewTransform(double scale,
                     double rotation,
                     java.awt.geom.Point2D translation)

ViewTransform

public ViewTransform(java.awt.geom.Point2D translation)

ViewTransform

public ViewTransform(double x,
                     double y)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.geom.AffineTransform

setTransform

public void setTransform(double scale,
                         double rotation,
                         double x,
                         double y)

transformOrigin

public java.awt.geom.Point2D transformOrigin(java.awt.geom.AffineTransform trans,
                                             java.awt.geom.Point2D res)

distance

public double distance(java.awt.geom.Point2D to)

distance

public double distance(double x,
                       double y)

getTranslation

public java.awt.geom.Point2D.Double getTranslation()

setLocation

public void setLocation(java.awt.geom.Point2D newpos)

setLocation

public void setLocation(double x,
                        double y)

defaultAligner

public Aligner defaultAligner()

apply

public void apply(View v)
Specified by:
apply in interface ViewOperator

strip

public void strip(View v)
Specified by:
strip in interface ViewOperator

setScale

public void setScale(double scale,
                     double x,
                     double y)

setScale

public void setScale(double scale)

setRotation

public void setRotation(double angle,
                        double x,
                        double y)

setRotation

public void setRotation(double angle)

hasAlignment

public boolean hasAlignment()

getAlignTransform

public ViewTransform getAlignTransform()
Specified by:
getAlignTransform in interface Aligner

clearAlignment

public void clearAlignment()

checkDepend

public boolean checkDepend(ViewTransform target)

alignAll

public void alignAll(java.util.Vector targets,
                     Alignment params)

track

public void track(ViewTransform master,
                  int mask)

listListeners

public void listListeners()
Print list of AlignmentListeners
to standard output. For debuggung purposes.


addAlignmentListener

public void addAlignmentListener(AlignmentListener target)

removeAlignmentListener

public void removeAlignmentListener(Aligner target)

getAlignView

public ViewTransform getAlignView()

alignmentChanged

public void alignmentChanged()
Specified by:
alignmentChanged in interface AlignmentListener

notifyChange

public void notifyChange()

showAlignee

public void showAlignee(View view)
Specified by:
showAlignee in interface AlignmentListener

showAligner

public java.awt.geom.Point2D showAligner(View view)
Specified by:
showAligner in interface Aligner