/** * Converts DTP Points and returns pixels using the resolution of the * given component's graphics object. * * @param pt DTP Points * @param component the component that provides the graphics object * @return the given Points as pixels */ public int pointAsPixel(int pt, Component component) { return pointAsPixel(pt, getScreenResolution(component)); }
/** * Converts DTP Points and returns pixels using the resolution of the given * component's graphics object. * * @param pt * DTP Points * @param component * the component that provides the graphics object * @return the given Points as pixels */ public int pointAsPixel(int pt, Component component) { return pointAsPixel(pt, getScreenResolution(component)); }
/** * Converts Inches and returns pixels using the specified resolution. * * @param in the Inches * @param component the component that provides the graphics object * @return the given Inches as pixels */ public int inchAsPixel(double in, Component component) { return inchAsPixel(in, getScreenResolution(component)); }
/** * Converts Millimeters and returns pixels using the resolution of the * given component's graphics object. * * @param mm Millimeters * @param component the component that provides the graphics object * @return the given Millimeters as pixels */ public int millimeterAsPixel(double mm, Component component) { return millimeterAsPixel(mm, 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)); }
/** * Converts Inches and returns pixels using the specified resolution. * * @param in * the Inches * @param component * the component that provides the graphics object * @return the given Inches as pixels */ public int inchAsPixel(double in, Component component) { return inchAsPixel(in, 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 DTP Points and returns pixels using the resolution of the * given component's graphics object. * * @param pt DTP Points * @param component the component that provides the graphics object * @return the given Points as pixels */ @Override public int pointAsPixel(int pt, Component component) { return pointAsPixel(pt, getScreenResolution(component)); }
/** * Converts Inches and returns pixels using the specified resolution. * * @param in the Inches * @param component the component that provides the graphics object * @return the given Inches as pixels */ @Override public int inchAsPixel(double in, Component component) { return inchAsPixel(in, getScreenResolution(component)); }
/** * Converts Millimeters and returns pixels using the resolution of the * given component's graphics object. * * @param mm Millimeters * @param component the component that provides the graphics object * @return the given Millimeters as pixels */ @Override public int millimeterAsPixel(double mm, Component component) { return millimeterAsPixel(mm, getScreenResolution(component)); }
/** * Converts Millimeters and returns pixels using the resolution of the given * component's graphics object. * * @param mm * Millimeters * @param component * the component that provides the graphics object * @return the given Millimeters as pixels */ public int millimeterAsPixel(double mm, Component component) { return millimeterAsPixel(mm, 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)); }