| java.lang.Object com.jgoodies.forms.util.AbstractUnitConverter com.jeta.swingbuilder.gui.utils.Units
Method Summary | |
public String | getAverageCharacterWidthTestString() Returns the string used to compute the average character width. | public Font | getDefaultDialogFont() Lazily creates and returns the dialog font used to compute the dialog
base units. | protected double | getDialogBaseUnitsX(Component component) Answers the cached or computed horizontal dialog base units. | protected double | getDialogBaseUnitsY(Component component) Answers the cached or computed vertical dialog base units for the given
component. | public static Units | getInstance() Lazily instantiates and returns the sole instance. | public double | pixelAsCentimeter(int pixels, Component component) | final protected double | pixelAsCentimeter(int pixels, int dpi) | public int | pixelAsDialogUnitX(int pixels, Component c) | protected int | pixelAsDialogUnitX(int pixels, double dialogBaseUnitsX) | public int | pixelAsDialogUnitY(int pixels, Component c) | protected int | pixelAsDialogUnitY(int pixels, double dialogBaseUnitsY) | public double | pixelAsInch(int pixels, Component component) | final protected double | pixelAsInch(int pixels, int dpi) | public double | pixelAsMillimeter(int pixels, Component component) | final protected double | pixelAsMillimeter(int pixels, int dpi) | public int | pixelAsPoint(int pixels, Component component) | final protected int | pixelAsPoint(int pixels, int dpi) | public void | setDefaultDialogFont(Font newFont) Sets a dialog font that will be used to compute the dialog base units. |
getAverageCharacterWidthTestString | public String getAverageCharacterWidthTestString()(Code) | | Returns the string used to compute the average character width. By
default it is initialized to "X".
the test string used to compute the average character width |
getDefaultDialogFont | public Font getDefaultDialogFont()(Code) | | Lazily creates and returns the dialog font used to compute the dialog
base units.
the font used to compute the dialog base units |
getDialogBaseUnitsX | protected double getDialogBaseUnitsX(Component component)(Code) | | Answers the cached or computed horizontal dialog base units.
Parameters: component - a Component that provides the font and graphics the horizontal dialog base units |
getDialogBaseUnitsY | protected double getDialogBaseUnitsY(Component component)(Code) | | Answers the cached or computed vertical dialog base units for the given
component.
Parameters: component - a Component that provides the font and graphics the vertical dialog base units |
getInstance | public static Units getInstance()(Code) | | Lazily instantiates and returns the sole instance.
|
pixelAsCentimeter | public double pixelAsCentimeter(int pixels, Component component)(Code) | | |
pixelAsCentimeter | final protected double pixelAsCentimeter(int pixels, int dpi)(Code) | | |
pixelAsDialogUnitX | public int pixelAsDialogUnitX(int pixels, Component c)(Code) | | |
pixelAsDialogUnitX | protected int pixelAsDialogUnitX(int pixels, double dialogBaseUnitsX)(Code) | | |
pixelAsDialogUnitY | public int pixelAsDialogUnitY(int pixels, Component c)(Code) | | |
pixelAsDialogUnitY | protected int pixelAsDialogUnitY(int pixels, double dialogBaseUnitsY)(Code) | | |
pixelAsInch | public double pixelAsInch(int pixels, Component component)(Code) | | |
pixelAsInch | final protected double pixelAsInch(int pixels, int dpi)(Code) | | |
pixelAsMillimeter | public double pixelAsMillimeter(int pixels, Component component)(Code) | | |
pixelAsMillimeter | final protected double pixelAsMillimeter(int pixels, int dpi)(Code) | | |
pixelAsPoint | final protected int pixelAsPoint(int pixels, int dpi)(Code) | | |
setDefaultDialogFont | public void setDefaultDialogFont(Font newFont)(Code) | | Sets a dialog font that will be used to compute the dialog base units.
Parameters: newFont - the default dialog font to be set |
Methods inherited from com.jgoodies.forms.util.AbstractUnitConverter | public int centimeterAsPixel(double cm, Component component)(Code)(Java Doc) final protected int centimeterAsPixel(double cm, int dpi)(Code)(Java Doc) protected double computeAverageCharWidth(FontMetrics metrics, String testString)(Code)(Java Doc) public int dialogUnitXAsPixel(int dluX, Component c)(Code)(Java Doc) protected int dialogUnitXAsPixel(int dluX, double dialogBaseUnitsX)(Code)(Java Doc) public int dialogUnitYAsPixel(int dluY, Component c)(Code)(Java Doc) protected int dialogUnitYAsPixel(int dluY, double dialogBaseUnitsY)(Code)(Java Doc) protected int getDefaultScreenResolution()(Code)(Java Doc) abstract protected double getDialogBaseUnitsX(Component component)(Code)(Java Doc) abstract protected double getDialogBaseUnitsY(Component component)(Code)(Java Doc) protected int getScreenResolution(Component c)(Code)(Java Doc) public int inchAsPixel(double in, Component component)(Code)(Java Doc) final protected int inchAsPixel(double in, int dpi)(Code)(Java Doc) public int millimeterAsPixel(double mm, Component component)(Code)(Java Doc) final protected int millimeterAsPixel(double mm, int dpi)(Code)(Java Doc) public int pointAsPixel(int pt, Component component)(Code)(Java Doc) final protected int pointAsPixel(int pt, int dpi)(Code)(Java Doc)
|
|
|