|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CoordinateTransforming
An interface defining the capabilities to convert from user-space
coordinates to normalized 2-d coordinates. This interface is used whenever
the user provides multi-dimensional data that should be plotted onto a
component. Thus, two methods are provided, toNormalizedSpace(vec_math.VectorG) and
toUserSpace(java.awt.geom.Point2D). Note that not all coordination transformation must
be invertable, thus transformations that do not support toUserSpace(java.awt.geom.Point2D)
should throw an illegal argument exception.
| Method Summary | |
|---|---|
Point2D |
toNormalizedSpace(VectorG user)
Converts a multi-dimensional input vector defined in a user-space coordinate system into the normalized screen coordinate system. |
VectorG |
toUserSpace(Point2D norm)
Converts a pixel in normalized space back to user space. |
| Method Detail |
|---|
Point2D toNormalizedSpace(VectorG user)
user - A vector of user coordinates.
VectorG toUserSpace(Point2D norm)
norm - A pixel in normalized coordinates.
IllegalArgumentException - If the user space vector cannot be
found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||