| prefuse.action.distortion.Distortion prefuse.action.distortion.BifocalDistortion
BifocalDistortion | public class BifocalDistortion extends Distortion (Code) | |
Computes a bifocal distortion of space, magnifying a focus region of space
and uniformly demagnifying the rest of the space. The affect is akin to
passing a magnifying glass over the data.
For more details on this form of transformation, see Y. K. Leung and
M. D. Apperley, "A Review and Taxonomy of Distortion-Oriented Presentation
Techniques", in Transactions of Computer-Human Interaction (TOCHI),
1(2): 126-160 (1994). Available online at
portal.acm.org/citation.cfm?id=180173&dl=ACM.
author: jeffrey heer |
Constructor Summary | |
public | BifocalDistortion() Create a new BifocalDistortion with default range and magnification. | public | BifocalDistortion(double range, double mag) Create a new BifocalDistortion with the specified range and
magnification. | public | BifocalDistortion(double xrange, double xmag, double yrange, double ymag) Create a new BifocalDistortion with the specified range and
magnification along both axes.
NOTE:if the range value times the magnification
value is greater than 1, the resulting distortion can exceed the
display bounds.
Parameters: xrange - the range around the focus that should be magnified alongthe x direction. |
BifocalDistortion | public BifocalDistortion()(Code) | | Create a new BifocalDistortion with default range and magnification.
|
BifocalDistortion | public BifocalDistortion(double range, double mag)(Code) | | Create a new BifocalDistortion with the specified range and
magnification. The same range and magnification is used for both
axes.
NOTE:if the range value times the magnification
value is greater than 1, the resulting distortion can exceed the
display bounds.
Parameters: range - the range around the focus that should be magnified. Thisspecifies the size of the magnified focus region, and should be in therange of 0 to 1, 0 being no magnification range and 1 being the wholedisplay. Parameters: mag - how much magnification should be used in the focal area |
BifocalDistortion | public BifocalDistortion(double xrange, double xmag, double yrange, double ymag)(Code) | | Create a new BifocalDistortion with the specified range and
magnification along both axes.
NOTE:if the range value times the magnification
value is greater than 1, the resulting distortion can exceed the
display bounds.
Parameters: xrange - the range around the focus that should be magnified alongthe x direction. This specifies the horizontal size of the magnified focus region, and should be a value between 0 and 1, 0 indicating nofocus region and 1 indicating the whole display. Parameters: xmag - how much magnification along the x direction should be usedin the focal area Parameters: yrange - the range around the focus that should be magnified alongthe y direction. This specifies the vertical size of the magnified focus region, and should be a value between 0 and 1, 0 indicating nofocus region and 1 indicating the whole display. Parameters: ymag - how much magnification along the y direction should be usedin the focal area |
getXMagnification | public double getXMagnification()(Code) | | Returns the magnification factor for the x-axis.
Returns the magnification factor for the x-axis. |
getXRange | public double getXRange()(Code) | | Returns the range of the focal area along the x-axis.
Returns the range of the focal area along the x-axis. |
getYMagnification | public double getYMagnification()(Code) | | Returns the magnification factor for the y-axis.
Returns the magnification factor for the y-axis. |
getYRange | public double getYRange()(Code) | | Returns the range of the focal area along the y-axis.
Returns the range of the focal area along the y-axis. |
setXMagnification | public void setXMagnification(double mx)(Code) | | Sets the magnification factor for the x-axis.
Parameters: mx - The magnification factor for the x-axis. |
setXRange | public void setXRange(double rx)(Code) | | Sets the range of the focal area along the x-axis.
Parameters: rx - The focal range for the x-axis, a value between 0 and 1. |
setYMagnification | public void setYMagnification(double my)(Code) | | Sets the magnification factor for the y-axis.
Parameters: my - The magnification factor for the y-axis. |
setYRange | public void setYRange(double ry)(Code) | | Sets the range of the focal area along the y-axis.
Parameters: ry - The focal range for the y-axis, a value between 0 and 1. |
|
|