| java.lang.Object org.jfree.report.util.geom.StrictGeomUtility
StrictGeomUtility | public strictfp class StrictGeomUtility (Code) | | This class is the heart of the alternative geometrics toolkit. It performs
the neccessary conversions from and to the AWT classes to the Strict-classes.
author: Thomas Morgner |
Method Summary | |
public static Dimension2D | createAWTDimension(long width, long height) Creates an AWT-Dimension2D object from the given strict sizes.
Parameters: width - the width in micro points. Parameters: height - the height in micro points. | public static Rectangle2D | createAWTRectangle(long x, long y, long width, long height) Creates an AWT rectangle object from the given strict sizes.
Parameters: x - the x coordinate in micro points. Parameters: y - the y coordinate in micro points. Parameters: width - the width in micro points. Parameters: height - the height in micro points. | public static StrictBounds | createBounds(double x, double y, double width, double height) Creates a StrictBounds object from the given AWT sizes.
Parameters: x - the x coordinate in points (1/72th inch). Parameters: y - the y coordinate in points (1/72th inch). Parameters: width - the width in points (1/72th inch). Parameters: height - the height in points (1/72th inch). | public static StrictDimension | createDimension(double w, double h) Creates a StrictDimension from the given AWT sizes.
Parameters: w - the width in points (1/72th inch). Parameters: h - the height in points (1/72th inch). | public static StrictPoint | createPoint(double x, double y) Creates a StrictPoint from the given AWT coordinates.
Parameters: x - the x coordinate in points (1/72th inch). Parameters: y - the y coordinate in points (1/72th inch). | public static long | multiply(long x, long y) | public static double | toExternalValue(long value) Converts the given micro point value into an AWT value.
Parameters: value - the micro point point value. | public static long | toInternalValue(double value) Converts the given AWT value into a strict value.
Parameters: value - the AWT point value. |
createAWTDimension | public static Dimension2D createAWTDimension(long width, long height)(Code) | | Creates an AWT-Dimension2D object from the given strict sizes.
Parameters: width - the width in micro points. Parameters: height - the height in micro points. the created dimension object. |
createAWTRectangle | public static Rectangle2D createAWTRectangle(long x, long y, long width, long height)(Code) | | Creates an AWT rectangle object from the given strict sizes.
Parameters: x - the x coordinate in micro points. Parameters: y - the y coordinate in micro points. Parameters: width - the width in micro points. Parameters: height - the height in micro points. the created dimension object. |
createBounds | public static StrictBounds createBounds(double x, double y, double width, double height)(Code) | | Creates a StrictBounds object from the given AWT sizes.
Parameters: x - the x coordinate in points (1/72th inch). Parameters: y - the y coordinate in points (1/72th inch). Parameters: width - the width in points (1/72th inch). Parameters: height - the height in points (1/72th inch). the created dimension object. |
createDimension | public static StrictDimension createDimension(double w, double h)(Code) | | Creates a StrictDimension from the given AWT sizes.
Parameters: w - the width in points (1/72th inch). Parameters: h - the height in points (1/72th inch). the created dimension object. |
createPoint | public static StrictPoint createPoint(double x, double y)(Code) | | Creates a StrictPoint from the given AWT coordinates.
Parameters: x - the x coordinate in points (1/72th inch). Parameters: y - the y coordinate in points (1/72th inch). the created point object. |
multiply | public static long multiply(long x, long y)(Code) | | |
toExternalValue | public static double toExternalValue(long value)(Code) | | Converts the given micro point value into an AWT value.
Parameters: value - the micro point point value. the AWT point value. |
toInternalValue | public static long toInternalValue(double value)(Code) | | Converts the given AWT value into a strict value.
Parameters: value - the AWT point value. the internal micro point value. |
|
|