| prefuse.action.layout.Layout prefuse.action.distortion.Distortion
All known Subclasses: prefuse.action.distortion.FisheyeDistortion, prefuse.action.distortion.BifocalDistortion,
Distortion | abstract public class Distortion extends Layout (Code) | | Abstract base class providing a structure for space-distortion techniques.
version: 1.0 author: jeffrey heer |
Constructor Summary | |
public | Distortion() Create a new Distortion instance. | public | Distortion(String group) Create a new Distortion instance that processes the given data group. |
Method Summary | |
protected Point2D | correct(Point2D anchor, Rectangle2D bounds) Corrects the anchor position, such that if the anchor is outside the
layout bounds, the anchor is adjusted to be the nearest point on the
edge of the bounds. | abstract protected double | distortSize(Rectangle2D bbox, double x, double y, Point2D anchor, Rectangle2D bounds) Returns the scaling factor by which to transform the size of an item. | abstract protected double | distortX(double x, Point2D anchor, Rectangle2D bounds) Distorts an item's x-coordinate. | abstract protected double | distortY(double y, Point2D anchor, Rectangle2D bounds) Distorts an item's y-coordinate. | public boolean | isSizeDistorted() Indicates whether the item sizes are distorted along with the item
locations. | public void | run(double frac) | public void | setSizeDistorted(boolean s) Controls whether item sizes are distorted along with the item locations. |
m_distortSize | protected boolean m_distortSize(Code) | | |
m_distortX | protected boolean m_distortX(Code) | | |
m_distortY | protected boolean m_distortY(Code) | | |
Distortion | public Distortion()(Code) | | Create a new Distortion instance.
|
Distortion | public Distortion(String group)(Code) | | Create a new Distortion instance that processes the given data group.
Parameters: group - the data group processed by this Distortion instance |
correct | protected Point2D correct(Point2D anchor, Rectangle2D bounds)(Code) | | Corrects the anchor position, such that if the anchor is outside the
layout bounds, the anchor is adjusted to be the nearest point on the
edge of the bounds.
Parameters: anchor - the un-corrected anchor point Parameters: bounds - the layout bounds the corrected anchor point |
distortSize | abstract protected double distortSize(Rectangle2D bbox, double x, double y, Point2D anchor, Rectangle2D bounds)(Code) | | Returns the scaling factor by which to transform the size of an item.
Parameters: bbox - the bounding box of the undistorted item Parameters: x - the x-coordinate of the distorted item Parameters: y - the y-coordinate of the distorted item Parameters: anchor - the anchor or focus point of the display Parameters: bounds - the layout bounds the scaling factor by which to change the size |
distortX | abstract protected double distortX(double x, Point2D anchor, Rectangle2D bounds)(Code) | | Distorts an item's x-coordinate.
Parameters: x - the undistorted x coordinate Parameters: anchor - the anchor or focus point of the display Parameters: bounds - the layout bounds the distorted x-coordinate |
distortY | abstract protected double distortY(double y, Point2D anchor, Rectangle2D bounds)(Code) | | Distorts an item's y-coordinate.
Parameters: y - the undistorted y coordinate Parameters: anchor - the anchor or focus point of the display Parameters: bounds - the layout bounds the distorted y-coordinate |
isSizeDistorted | public boolean isSizeDistorted()(Code) | | Indicates whether the item sizes are distorted along with the item
locations.
true if item sizes are distorted by this action, false otherwise |
setSizeDistorted | public void setSizeDistorted(boolean s)(Code) | | Controls whether item sizes are distorted along with the item locations.
Parameters: s - true to distort size, false to distort positions only |
|
|