/** * 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 int centimeterAsPixel(double cm, Component component) { return centimeterAsPixel(cm, getScreenResolution(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 */ @Override public int centimeterAsPixel(double cm, Component component) { return centimeterAsPixel(cm, getScreenResolution(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 int centimeterAsPixel(double cm, Component component) { return centimeterAsPixel(cm, getScreenResolution(component)); }