|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdirk_krause.tools.DkGuiTool
public class DkGuiTool
GUI configuration tool. The constructor of the first instance changes the GUI configuration. Settings are read from the DkTool instance provided to the constructor. First we choose a look-and-feel, either system (default) or cross-platform look-and-feel. Next we inspect all fonts and font resources. If there are font sizes in use less than a specified minimum we correct the font size. Sometimes we want to replace all fonts of a family (i.e. Dialog) by another family (i.e. Verdana). These replacements are also done here.
Constructor Summary | |
---|---|
DkGuiTool(DkTool d)
Convenience constructor. |
|
DkGuiTool(DkTool d,
boolean useToolkit)
Constructor. |
Method Summary | |
---|---|
int |
getComponentBorder()
Get space between components. |
java.lang.String |
getFontsAfterReplacement()
Get list of fonts (family+size) used after replacement. |
java.lang.String |
getFontsBeforeReplacement()
Get list of fonts (family+size) used before replacement. |
int |
getLafIndex()
Get index of current look-and-feel (0=system LAF, 1=cross-platform LAF). |
int |
getMinimumFontSize()
Get minimum font size. |
java.lang.String |
getNewFont()
Get replacement font family name. |
java.lang.String |
getOldFont()
Get font family name to replace. |
boolean |
getReplaceFonts()
Get the replace-fonts flag. |
void |
save(int stage)
Save settings (i.e. |
void |
setComponentBorder(int i)
Set space between components. |
void |
setLafIndex(int i)
Set index of look-and-feel. |
void |
setMinimumFontSize(int i)
Set minimum font size (0 for no minimum size required). |
void |
setNewFont(java.lang.String s)
Set replacement font family name. |
void |
setOldFont(java.lang.String s)
Set font family name to replace. |
void |
setReplaceFonts(boolean b)
Enable/disable font replacement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DkGuiTool(DkTool d, boolean useToolkit)
d
- General tool.useToolkit
- Flag: Allowed to find minimum font size automatically.public DkGuiTool(DkTool d)
d
- General tool.Method Detail |
---|
public int getComponentBorder()
public void setComponentBorder(int i)
i
- New space between components in pixels.public int getLafIndex()
public void setLafIndex(int i)
i
- Index of new look-and-feel.public int getMinimumFontSize()
public void setMinimumFontSize(int i)
i
- New minimum font size.public void setOldFont(java.lang.String s)
s
- Name of font family to replace.public void setNewFont(java.lang.String s)
s
- The replacement font family name.public java.lang.String getOldFont()
public java.lang.String getNewFont()
public boolean getReplaceFonts()
public void setReplaceFonts(boolean b)
b
- New replacement flag value.public java.lang.String getFontsBeforeReplacement()
public java.lang.String getFontsAfterReplacement()
public void save(int stage)
stage
- 0=application, 1=+group, 2=+all.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |