pedviz.view.effects
Class FisheyeEffect

java.lang.Object
  extended by pedviz.view.effects.Effect
      extended by pedviz.view.effects.FisheyeEffect

public class FisheyeEffect
extends Effect

This class implements the FishEyeEffect.

Author:
Luki

Constructor Summary
FisheyeEffect(float dx, float dy, float sz)
          Creates a new FishEyeEffect with the given values.
 
Method Summary
 float getMinSize()
          Returns the minimum size of a node.
 void setMinSize(float minSize)
          Sets the minimum size of a node.
 java.awt.geom.Point2D.Float transformPoint(float x, float y)
          Transforms the given points.
 float transformSize(float size, float x, float y, float newX, float newY)
          Transforms the given size. x,y are untransformed and newX, newY are the transformed coordinates.
 
Methods inherited from class pedviz.view.effects.Effect
getBounds, getFocus, getSpeed, isAutoUpdateOnDrag, isAutoUpdateOnMove, moveFocus, setAutoUpdateOnDrag, setAutoUpdateOnMove, setBounds, setFocus, setSpeed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FisheyeEffect

public FisheyeEffect(float dx,
                     float dy,
                     float sz)
Creates a new FishEyeEffect with the given values.

Parameters:
dx -
dy -
sz -
Method Detail

transformPoint

public java.awt.geom.Point2D.Float transformPoint(float x,
                                                  float y)
Description copied from class: Effect
Transforms the given points.

Overrides:
transformPoint in class Effect
Returns:

transformSize

public float transformSize(float size,
                           float x,
                           float y,
                           float newX,
                           float newY)
Description copied from class: Effect
Transforms the given size. x,y are untransformed and newX, newY are the transformed coordinates.

Overrides:
transformSize in class Effect
Parameters:
size - size
x - untransformed x coord.
y - untransformed y coord.
newX - transformed x coord.
newY - transformed y coord.
Returns:

getMinSize

public float getMinSize()
Returns the minimum size of a node.

Returns:
the minimum size of a node.

setMinSize

public void setMinSize(float minSize)
Sets the minimum size of a node.

Parameters:
minSize - the minimum size of a node.