edu.ucla.stat.SOCR.touchgraph.graphlayout
Class TGLensSet

java.lang.Object
  extended by edu.ucla.stat.SOCR.touchgraph.graphlayout.TGLensSet

public class TGLensSet
extends java.lang.Object

TGLensSet: A collection of lenses, where each lens is a function that warps 2D space.

Version:
1.22-jre1.1 $Id: TGLensSet.java,v 1.1 2010/01/20 20:38:32 jiecui Exp $
Author:
Alexander Shapiro

Constructor Summary
TGLensSet()
           
 
Method Summary
 void addLens(TGAbstractLens l)
           
 void applyLens(TGPoint2D p)
           
 TGPoint2D convDrawToReal(double x, double y)
          Convert real position to draw position.
 TGPoint2D convDrawToReal(TGPoint2D p)
          Convert real position to draw position.
 TGPoint2D convRealToDraw(double x, double y)
          Convert draw position to real position.
 TGPoint2D convRealToDraw(TGPoint2D p)
          Convert draw position to real position.
 void undoLens(TGPoint2D p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGLensSet

public TGLensSet()
Method Detail

addLens

public void addLens(TGAbstractLens l)

applyLens

public void applyLens(TGPoint2D p)

undoLens

public void undoLens(TGPoint2D p)

convRealToDraw

public TGPoint2D convRealToDraw(TGPoint2D p)
Convert draw position to real position.


convRealToDraw

public TGPoint2D convRealToDraw(double x,
                                double y)
Convert draw position to real position.


convDrawToReal

public TGPoint2D convDrawToReal(TGPoint2D p)
Convert real position to draw position.


convDrawToReal

public TGPoint2D convDrawToReal(double x,
                                double y)
Convert real position to draw position.