|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormattedTransforming
Allows the retrieval of formatted description of the user space coordinates. This is useful for adding labels to drawings. In most cases, this will only work for two-dimensional user spaces with a more or less direct mapping of screen coordinates to user space coordinates.
| Method Summary | |
|---|---|
Format |
estimateX(double sx)
From the step-size in user space, estimate a format. |
Format |
estimateY(double sy)
From the step-size in user space, estimate a format. |
List |
formatUserCoordinates(Point2D norm)
Formats all user-space coordinates and returns them as a list. |
String |
formatUserSpaceX(Point2D norm)
Formats the x-coordinate in user space given a pixel in normalized screen coordinates. |
String |
formatUserSpaceY(Point2D norm)
Formats the y-coordinate in user space given a pixel in normalized screen coordinates. |
Format |
getFormatUserX()
For direct access this method retrieves the formatting instance used to fromat the user-space x coordinate. |
Format |
getFormatUserY()
For direct access this method retrieves the formatting instance used to fromat the user-space x coordinate. |
void |
useEstimatedFormats(Rectangle2D view,
int nx,
int ny)
Asks the transform to recalculate its x/y axis formatter for user space, giving the new view and the number of points in the axis. |
| Methods inherited from interface jview.CoordinateTransforming |
|---|
toNormalizedSpace, toUserSpace |
| Method Detail |
|---|
String formatUserSpaceX(Point2D norm)
norm - The screen coordinate in normalized form.
String formatUserSpaceY(Point2D norm)
norm - The screen coordinate in normalized form.
List formatUserCoordinates(Point2D norm)
norm - The screen coordinate in normalized form.
Format getFormatUserX()
Format getFormatUserY()
Format estimateX(double sx)
Format estimateY(double sy)
void useEstimatedFormats(Rectangle2D view,
int nx,
int ny)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||