| java.lang.Object it.businesslogic.ireport.util.Unit
Unit | public class Unit (Code) | | author: Administrator |
Constructor Summary | |
public | Unit(String unitName, double conversionValue) | public | Unit(String unitName, double conversionValue, String keyName) |
CENTIMETERS | final public static double CENTIMETERS(Code) | | |
INCHES | final public static double INCHES(Code) | | |
MILLIMETERS | final public static double MILLIMETERS(Code) | | |
PIXEL | final public static double PIXEL(Code) | | |
Unit | public Unit(String unitName, double conversionValue)(Code) | | Creates a new instance of Unit
|
convertCentimetersToPixels | public static long convertCentimetersToPixels(double centimeters)(Code) | | |
convertInchesToPixels | public static long convertInchesToPixels(double inches)(Code) | | |
convertMillimetersToPixels | public static long convertMillimetersToPixels(double millimeters)(Code) | | |
convertPixelsToCentimeters | public static double convertPixelsToCentimeters(long pixels)(Code) | | |
convertPixelsToInches | public static double convertPixelsToInches(long pixels)(Code) | | |
convertPixelsToMillimeters | public static double convertPixelsToMillimeters(long pixels)(Code) | | |
convertToPixels | public static long convertToPixels(double value, double convert)(Code) | | |
getConversionValue | public double getConversionValue()(Code) | | Getter for property conversionValue.
Value of property conversionValue. |
getStandardUnits | public static Unit[] getStandardUnits()(Code) | | |
getUnitIndex | public static int getUnitIndex(String unitName)(Code) | | |
getUnitName | public String getUnitName()(Code) | | Getter for property unitName.
Value of property unitName. |
setConversionValue | public void setConversionValue(double conversionValue)(Code) | | Setter for property conversionValue.
Parameters: conversionValue - New value of property conversionValue. |
setUnitName | public void setUnitName(String unitName)(Code) | | Setter for property unitName.
Parameters: unitName - New value of property unitName. |
|
|