view
Interface FormattingMorphing

All Superinterfaces:
Morphing
All Known Implementing Classes:
BasicMorpher

public interface FormattingMorphing
extends Morphing

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

formatSecondaryX

String formatSecondaryX(double xsecondary)
Formats the x-coordinate of a secondary x-coordinate. Should be called with the Point2D#getX from the Morphing.toSecondary(java.awt.geom.Point2D) return.

Returns:
A formatted version of the argument.

formatSecondaryY

String formatSecondaryY(double ysecondary)
Formats the y-coordinate of a secondary y-coordinate. Should be called with the Point2D#getY from the Morphing.toSecondary(java.awt.geom.Point2D) return.

Returns:
A formatted version of the argument.

formatPrimaryX

String formatPrimaryX(double xprimary)
Formats the x-coordinate of a primary x-coordinate. Should be called with the Point2D#getX from the Morphing.toPrimary(java.awt.geom.Point2D) return.

Returns:
A formatted version of the argument.

formatPrimaryY

String formatPrimaryY(double yprimary)
Formats the y-coordinate of a primary y-coordinate. Should be called with the Point2D#getY from the Morphing.toPrimary(java.awt.geom.Point2D) return.

Returns:
A formatted version of the argument.