edu.uci.ics.jung.visualization.transform.shape
Class HyperbolicShapeTransformer
java.lang.Object
  
edu.uci.ics.jung.visualization.transform.MutableTransformerDecorator
      
edu.uci.ics.jung.visualization.transform.LensTransformer
          
edu.uci.ics.jung.visualization.transform.HyperbolicTransformer
              
edu.uci.ics.jung.visualization.transform.shape.HyperbolicShapeTransformer
- All Implemented Interfaces: 
 - BidirectionalTransformer, MutableTransformer, ShapeFlatnessTransformer, ShapeTransformer, ChangeEventSupport
 
public class HyperbolicShapeTransformer
- extends HyperbolicTransformer
- implements ShapeFlatnessTransformer
  
HyperbolicShapeTransformer extends HyperbolicTransformer and
 adds implementations for methods in ShapeFlatnessTransformer.
 It modifies the shapes (Vertex, Edge, and Arrowheads) so that
 they are distorted by the hyperbolic transformation
- Author:
 
  - Tom Nelson
 
 
 
 
 
 
 
| 
Method Summary | 
 Shape | 
inverseTransform(Shape shape)
 
          return the supplied shape, translated to the coordinates
 that result from calling inverseTransform on its center | 
 Shape | 
transform(Shape shape)
 
          Transform the supplied shape with the overridden transform
 method so that the shape is distorted by the hyperbolic 
 transform. | 
 Shape | 
transform(Shape shape,
          float flatness)
 
          map a shape from graph coordinate system to the
 screen coordinate system | 
 
 
| Methods inherited from class edu.uci.ics.jung.visualization.transform.LensTransformer | 
getDistanceFromCenter, getLensShape, getMagnification, getRatio, getViewCenter, getViewRadius, setLensShape, setMagnification, setToIdentity, setViewCenter, setViewRadius | 
 
| Methods inherited from class edu.uci.ics.jung.visualization.transform.MutableTransformerDecorator | 
addChangeListener, concatenate, fireStateChanged, getChangeListeners, getDelegate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, removeChangeListener, rotate, rotate, scale, setDelegate, setScale, setTranslate, shear, translate | 
 
| 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.transform.MutableTransformer | 
concatenate, getRotation, getScale, getScaleX, getScaleY, getShearX, getShearY, getTransform, getTranslateX, getTranslateY, preConcatenate, rotate, rotate, scale, setScale, setToIdentity, setTranslate, shear, translate | 
 
 
HyperbolicShapeTransformer
public HyperbolicShapeTransformer(Component component)
- Create an instance, setting values from the passed component
 and registering to listen for size changes on the component.
 
HyperbolicShapeTransformer
public HyperbolicShapeTransformer(Component component,
                                  MutableTransformer delegate)
- Create an instance, setting values from the passed component
 and registering to listen for size changes on the component,
 with a possibly shared transform 
delegate.
 
transform
public Shape transform(Shape shape)
- Transform the supplied shape with the overridden transform
 method so that the shape is distorted by the hyperbolic 
 transform.
- Specified by:
 transform in interface BidirectionalTransformer- Specified by:
 transform in interface ShapeTransformer- Overrides:
 transform in class LensTransformer
 
- Parameters:
 shape - a shape to transform
- Returns:
 - a GeneralPath for the transformed shape
 
 
 
transform
public Shape transform(Shape shape,
                       float flatness)
- Description copied from interface: 
ShapeFlatnessTransformer 
- map a shape from graph coordinate system to the
 screen coordinate system
- Specified by:
 transform in interface ShapeFlatnessTransformer
 
flatness - used to break the supplied shape into segments
- Returns:
 - a GeneralPath (Shape) representing the screen points of the shape
 
 
 
inverseTransform
public Shape inverseTransform(Shape shape)
- Description copied from class: 
LensTransformer 
- return the supplied shape, translated to the coordinates
 that result from calling inverseTransform on its center
- Specified by:
 inverseTransform in interface BidirectionalTransformer- Specified by:
 inverseTransform in interface ShapeTransformer- Overrides:
 inverseTransform in class LensTransformer
 
- Returns:
 
 
 
Copyright © 2010 null. All Rights Reserved.