edu.uci.ics.jung.visualization.jai
Class AbstractPerspectiveTransformSupport<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.jai.AbstractPerspectiveTransformSupport<V,E>
All Implemented Interfaces:
PerspectiveTransformSupport
Direct Known Subclasses:
PerspectiveImageLensSupport, PerspectiveLayoutTransformSupport, PerspectiveViewTransformSupport

public abstract class AbstractPerspectiveTransformSupport<V,E>
extends Object
implements PerspectiveTransformSupport

A class to make it easy to add a perspective projection examining lens to a jung graph application. See PerspectiveTransformerDemo for an example of how to use it.

Author:
Tom Nelson

Nested Class Summary
static class AbstractPerspectiveTransformSupport.Lens
          the background for the perspective projection
 
Field Summary
protected  String defaultToolTipText
           
protected static String instructions
           
protected  AbstractPerspectiveTransformSupport.Lens lens
           
protected  PerspectiveShapeTransformer perspectiveTransformer
           
protected  VisualizationViewer<V,E> vv
           
 
Constructor Summary
AbstractPerspectiveTransformSupport(VisualizationViewer<V,E> vv)
          create the base class, setting common members and creating a custom GraphMouse
 
Method Summary
 void activate(boolean state)
           
 PerspectiveShapeTransformer getPerspectiveTransformer()
           
 void setPerspectiveTransformer(PerspectiveShapeTransformer perspectiveTransformer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.visualization.jai.PerspectiveTransformSupport
activate, deactivate
 

Field Detail

vv

protected VisualizationViewer<V,E> vv

perspectiveTransformer

protected PerspectiveShapeTransformer perspectiveTransformer

lens

protected AbstractPerspectiveTransformSupport.Lens lens

defaultToolTipText

protected String defaultToolTipText

instructions

protected static final String instructions
See Also:
Constant Field Values
Constructor Detail

AbstractPerspectiveTransformSupport

public AbstractPerspectiveTransformSupport(VisualizationViewer<V,E> vv)
create the base class, setting common members and creating a custom GraphMouse

Parameters:
vv - the VisualizationViewer to work on
Method Detail

activate

public void activate(boolean state)
Specified by:
activate in interface PerspectiveTransformSupport

getPerspectiveTransformer

public PerspectiveShapeTransformer getPerspectiveTransformer()
Specified by:
getPerspectiveTransformer in interface PerspectiveTransformSupport

setPerspectiveTransformer

public void setPerspectiveTransformer(PerspectiveShapeTransformer perspectiveTransformer)


Copyright © 2009. All Rights Reserved.