| com.jgoodies.forms.util.UnitConverter
All known Subclasses: com.jgoodies.forms.util.AbstractUnitConverter,
Method Summary | |
public int | centimeterAsPixel(double cm, Component component) Converts Centimeters and returns pixels using the resolution of the given
component's graphics object. | public int | dialogUnitXAsPixel(int dluX, Component component) Converts horizontal dialog units and returns pixels. | public int | dialogUnitYAsPixel(int dluY, Component component) Converts vertical dialog units and returns pixels. | public int | inchAsPixel(double in, Component component) Converts Inches and returns pixels using the specified resolution. | public int | millimeterAsPixel(double mm, Component component) Converts Millimeters and returns pixels using the resolution of the given
component's graphics object. | public int | pointAsPixel(int pt, Component component) Converts DTP Points and returns pixels using the resolution of the given
component's graphics object. |
centimeterAsPixel | public int centimeterAsPixel(double cm, Component component)(Code) | | Converts Centimeters and returns pixels using the resolution of the given
component's graphics object.
Parameters: cm - Centimeters Parameters: component - the component that provides the graphics object the given Centimeters as pixels |
dialogUnitXAsPixel | public int dialogUnitXAsPixel(int dluX, Component component)(Code) | | Converts horizontal dialog units and returns pixels. Honors the
resolution, dialog font size, platform and look&feel.
Parameters: dluX - the horizontal dialog units Parameters: component - a component that provides the font and graphics the given horizontal dialog units as pixels |
dialogUnitYAsPixel | public int dialogUnitYAsPixel(int dluY, Component component)(Code) | | Converts vertical dialog units and returns pixels. Honors the resolution,
dialog font size, platform and look&feel.
Parameters: dluY - the vertical dialog units Parameters: component - a component that provides the font and graphics the given vertical dialog units as pixels |
inchAsPixel | public int inchAsPixel(double in, Component component)(Code) | | Converts Inches and returns pixels using the specified resolution.
Parameters: in - the Inches Parameters: component - the component that provides the graphics object the given Inches as pixels |
millimeterAsPixel | public int millimeterAsPixel(double mm, Component component)(Code) | | Converts Millimeters and returns pixels using the resolution of the given
component's graphics object.
Parameters: mm - Millimeters Parameters: component - the component that provides the graphics object the given Millimeters as pixels |
pointAsPixel | public int pointAsPixel(int pt, Component component)(Code) | | Converts DTP Points and returns pixels using the resolution of the given
component's graphics object.
Parameters: pt - DTP Points Parameters: component - the component that provides the graphics object the given Points as pixels |
|
|