|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormattingMorphing
Extends the Morphing interface to allow proper formatting of the
pixel coordinates. Formatting does not include transformation of a
pixel. Thus, if you want to get the string version from your primary
point p1 in the secondary system, first call Morphing.toSecondary(java.awt.geom.Point2D) from
p1, and then pipe the resulting point p2 to the formatting methods, e.g.
formatSecondaryX(double)(ps.getX()).
| Method Summary | |
|---|---|
String |
formatPrimaryX(double xprimary)
Formats the x-coordinate of a primary x-coordinate. |
String |
formatPrimaryY(double yprimary)
Formats the y-coordinate of a primary y-coordinate. |
String |
formatSecondaryX(double xsecondary)
Formats the x-coordinate of a secondary x-coordinate. |
String |
formatSecondaryY(double ysecondary)
Formats the y-coordinate of a secondary y-coordinate. |
| Methods inherited from interface view.Morphing |
|---|
toPrimary, toSecondary |
| Method Detail |
|---|
String formatSecondaryX(double xsecondary)
Point2D#getX from the Morphing.toSecondary(java.awt.geom.Point2D)
return.
String formatSecondaryY(double ysecondary)
Point2D#getY from the Morphing.toSecondary(java.awt.geom.Point2D)
return.
String formatPrimaryX(double xprimary)
Point2D#getX from the Morphing.toPrimary(java.awt.geom.Point2D)
return.
String formatPrimaryY(double yprimary)
Point2D#getY from the Morphing.toPrimary(java.awt.geom.Point2D)
return.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||