/** * 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 static int inchAsPixel(double in, Component component) { return in == 0d ? 0 : getUnitConverter().inchAsPixel(in, 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 static int pointAsPixel(int pt, Component component) { return pt == 0 ? 0 : getUnitConverter().pointAsPixel(pt, component); }
/** * Converts vertical dialog units and returns pixels. * Honors the resolution, dialog font size, platform, and l&f. * * @param dluY the vertical dialog units * @param component the component that provides the graphics object * @return the given vertical dialog units as pixels */ public static int dialogUnitYAsPixel(int dluY, Component component) { return dluY == 0 ? 0 : getUnitConverter().dialogUnitYAsPixel(dluY, 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 static int inchAsPixel(double in, Component component) { return in == 0d ? 0 : getUnitConverter().inchAsPixel(in, 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 static int inchAsPixel(double in, Component component) { return in == 0d ? 0 : getUnitConverter().inchAsPixel(in, component); }
/** * Converts horizontal dialog units and returns pixels. * Honors the resolution, dialog font size, platform, and l&f. * * @param dluX the horizontal dialog units * @param component the component that provides the graphics object * @return the given horizontal dialog units as pixels */ public static int dialogUnitXAsPixel(int dluX, Component component) { return dluX == 0 ? 0 : getUnitConverter().dialogUnitXAsPixel(dluX, 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 horizontal dialog units and returns pixels. Honors the * resolution, dialog font size, platform, and l&f. * * @param dluX * the horizontal dialog units * @param component * the component that provides the graphics object * @return the given horizontal dialog units as pixels */ public static int dialogUnitXAsPixel(int dluX, Component component) { return dluX == 0 ? 0 : getUnitConverter().dialogUnitXAsPixel(dluX, 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 vertical dialog units and returns pixels. * Honors the resolution, dialog font size, platform, and l&f. * * @param dluY the vertical dialog units * @param component the component that provides the graphics object * @return the given vertical dialog units as pixels */ public static int dialogUnitYAsPixel(int dluY, Component component) { return dluY == 0 ? 0 : getUnitConverter().dialogUnitYAsPixel(dluY, 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 static int millimeterAsPixel(double mm, Component component) { return mm == 0d ? 0 : getUnitConverter().millimeterAsPixel(mm, 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 static int millimeterAsPixel(double mm, Component component) { return mm == 0d ? 0 : getUnitConverter().millimeterAsPixel(mm, 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 static int millimeterAsPixel(double mm, Component component) { return mm == 0d ? 0 : getUnitConverter().millimeterAsPixel(mm, 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 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 static int pointAsPixel(int pt, Component component) { return pt == 0 ? 0 : getUnitConverter().pointAsPixel(pt, component); }
/** * Converts horizontal dialog units and returns pixels. * Honors the resolution, dialog font size, platform, and l&f. * * @param dluX the horizontal dialog units * @param component the component that provides the graphics object * @return the given horizontal dialog units as pixels */ public static int dialogUnitXAsPixel(int dluX, Component component) { return dluX == 0 ? 0 : getUnitConverter().dialogUnitXAsPixel(dluX, 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 static int pointAsPixel(int pt, Component component) { return pt == 0 ? 0 : getUnitConverter().pointAsPixel(pt, component); }
/** * Converts vertical dialog units and returns pixels. Honors the resolution, * dialog font size, platform, and l&f. * * @param dluY * the vertical dialog units * @param component * the component that provides the graphics object * @return the given vertical dialog units as pixels */ public static int dialogUnitYAsPixel(int dluY, Component component) { return dluY == 0 ? 0 : getUnitConverter().dialogUnitYAsPixel(dluY, component); }