|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdirk_krause.jtools.GuiController
public class GuiController
Control GUI. The GUI controller controls the look-and-feel of a GUI application.
Field Summary | |
---|---|
static java.lang.String |
allApplications
Application name for all applications |
static java.lang.String |
guiPrefs
Start string of preferences name |
static java.lang.String[] |
lafNamesShort
Key values for choosing the LAF |
protected boolean |
notYetInitialized
Flag to indicate whether initialization was not yet done |
static java.lang.String[] |
pk
Preferences key |
static java.lang.String |
unknownApplication
The default application name |
Constructor Summary | |
---|---|
GuiController()
Constructor without application name. |
|
GuiController(java.lang.String applicationName)
Constructor using application name. |
Method Summary | |
---|---|
int |
getBorder()
Retrieve current space between components. |
protected boolean |
getDoFontReplace()
Check whether or not to replace fonts. |
java.lang.String |
getFontsUsed1()
|
java.lang.String |
getFontsUsed2()
|
boolean |
getHaveWindowPosition()
Check whether the current window position is known. |
protected int |
getLafIndex()
Get the LAF index. |
int |
getMinimumFontSize()
Get the minimum font size. |
protected java.lang.String |
getReplaceNewName()
Get new name for font replacement. |
protected java.lang.String |
getReplaceOldName()
Get old name for font replacement. |
int |
getWindowPositionX()
Get current window x position. |
int |
getWindowPositionY()
Get the current window y position. |
void |
initialize()
|
void |
setBorder(int bo)
Set new component space. |
protected void |
setDoFontReplace(boolean f)
Set font replacement flag. |
protected void |
setLafIndex(int n)
Set new LAF index. |
void |
setMinimumFontSize(int nfs)
Set the minimum font size. |
protected void |
setReplaceNewName(java.lang.String s)
Set new name for font replacement. |
protected void |
setReplaceOldName(java.lang.String s)
Set old name for font replacement. |
void |
setWindowPosition(int newx,
int newy)
Set the current window position |
void |
writeProperties(boolean forAll)
Write settings back to preferences. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String unknownApplication
public static final java.lang.String guiPrefs
public static final java.lang.String allApplications
public static final java.lang.String[] lafNamesShort
public static final java.lang.String[] pk
protected boolean notYetInitialized
Constructor Detail |
---|
public GuiController(java.lang.String applicationName)
applicationName
- The application name.public GuiController()
Method Detail |
---|
protected int getLafIndex()
protected void setLafIndex(int n)
n
- The new LAF index.public void writeProperties(boolean forAll)
forAll
- Flag to indicate whether or not to write preferences
for all applications.public boolean getHaveWindowPosition()
public int getWindowPositionX()
public int getWindowPositionY()
public void setWindowPosition(int newx, int newy)
newx
- The current x position.newy
- The current y position.public int getBorder()
public void setBorder(int bo)
bo
- The new space value.public int getMinimumFontSize()
public void setMinimumFontSize(int nfs)
nfs
- The new minimum font size.protected boolean getDoFontReplace()
protected void setDoFontReplace(boolean f)
f
- New value for flag.protected java.lang.String getReplaceOldName()
protected void setReplaceOldName(java.lang.String s)
s
- Name of font to replace.protected java.lang.String getReplaceNewName()
protected void setReplaceNewName(java.lang.String s)
s
- New name of the font.public java.lang.String getFontsUsed1()
public java.lang.String getFontsUsed2()
public void initialize()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |