|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjview.AbstractFormattingTransform
jview.BasicTransform
jview.SelectTransform
public class SelectTransform
A simple transform that let you define user-space coordinate indices that should be used in calculating the transform.
| Field Summary | |
|---|---|
private int |
x
The index in the VectorG mapping to the x-coordinate. |
static int |
XINDEX
The default x index. |
private int |
y
The index in the VectorG mapping to the y-coordinate. |
static int |
YINDEX
The default x index. |
| Constructor Summary | |
|---|---|
SelectTransform(Rectangle2D bounds)
Constructs a new selectable transform with default inidces zero and one. |
|
SelectTransform(Rectangle2D bounds,
int xindex,
int yindex)
Constructs a new selectable transform with sepecified indices. |
|
| Method Summary | |
|---|---|
Point2D |
toNormalizedSpace(VectorG xy)
We re-arrange the argument and call the super method. |
VectorG |
toUserSpace(Point2D ab)
We call the super method and return a vector of dimension equal to the maximum of x and y. |
| Methods inherited from class jview.BasicTransform |
|---|
estimateX, estimateY, getDefiningRectangle, invertUserXY, setDateX, setDateY, setFlipX, setFlipY, setLogarithmicX, setLogarithmicY, toNormalizedDistance, toString, toUserDistance, useEstimatedFormats |
| Methods inherited from class jview.AbstractFormattingTransform |
|---|
deltaFormatUserSpaceX, deltaFormatUserSpaceY, formatUserCoordinates, formatUserSpaceX, formatUserSpaceY, getFormatUserX, getFormatUserY, setDeltaFormatUserX, setDeltaFormatUserY, setFormatUserX, setFormatUserY |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int XINDEX
public static final int YINDEX
private int x
private int y
| Constructor Detail |
|---|
public SelectTransform(Rectangle2D bounds)
public SelectTransform(Rectangle2D bounds,
int xindex,
int yindex)
| Method Detail |
|---|
public Point2D toNormalizedSpace(VectorG xy)
toNormalizedSpace in interface CoordinateTransformingtoNormalizedSpace in class BasicTransformxy - A vector of user coordinates.
public VectorG toUserSpace(Point2D ab)
x and y.
toUserSpace in interface CoordinateTransformingtoUserSpace in class BasicTransformab - A pixel in normalized coordinates.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||