com.touchgraph.graphlayout
Class TGLensSet

java.lang.Object
  extended by com.touchgraph.graphlayout.TGLensSet

public class TGLensSet
extends Object

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

Version:
1.21 $Id: TGLensSet.java,v 3.0 2004/07/24 13:21:12 altheim Exp $
Author:
Alexander Shapiro

Constructor Summary
TGLensSet()
           
 
Method Summary
 void addLens(TGAbstractLens lens)
           
 void applyLens(Point2D.Double p)
           
 Point2D.Double convDrawToReal(double x, double y)
          Convert real position to draw position.
 Point2D.Double convDrawToReal(Point2D.Double p)
          Convert real position to draw position.
 Point2D.Double convRealToDraw(double x, double y)
          Convert draw position to real position.
 Point2D.Double convRealToDraw(Point2D.Double p)
          Convert draw position to real position.
 void undoLens(Point2D.Double 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 lens)

applyLens

public void applyLens(Point2D.Double p)

undoLens

public void undoLens(Point2D.Double p)

convRealToDraw

public Point2D.Double convRealToDraw(Point2D.Double p)
Convert draw position to real position.


convRealToDraw

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


convDrawToReal

public Point2D.Double convDrawToReal(Point2D.Double p)
Convert real position to draw position.


convDrawToReal

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



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.