/** * Converts Centimeters and returns pixels using the resolution of the * given component's graphics object. * * @param cm Centimeters * @param component the component that provides the graphics object * @return the given Centimeters as pixels */ public static int centimeterAsPixel(double cm, Component component) { return cm == 0d ? 0 : getUnitConverter().centimeterAsPixel(cm, component); }
/** * Converts Centimeters and returns pixels using the resolution of the * given component's graphics object. * * @param cm Centimeters * @param component the component that provides the graphics object * @return the given Centimeters as pixels */ public static int centimeterAsPixel(double cm, Component component) { return cm == 0d ? 0 : getUnitConverter().centimeterAsPixel(cm, component); }
/** * Converts Centimeters and returns pixels using the resolution of the given * component's graphics object. * * @param cm * Centimeters * @param component * the component that provides the graphics object * @return the given Centimeters as pixels */ public static int centimeterAsPixel(double cm, Component component) { return cm == 0d ? 0 : getUnitConverter().centimeterAsPixel(cm, component); }