|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.MAUDA
public class MAUDA
Stores global values.
At the moment only a reference to the main application frame, and
a bounds-calculator for new windows that should lie relative to the main frame.
| Constructor Summary | |
|---|---|
MAUDA()
|
|
| Method Summary | |
|---|---|
static javax.swing.JFrame |
getApplicationMainFrame()
Gets the main application frame. |
static java.awt.Rectangle |
getRelativeBounds(int w,
int h)
Returns a Rectangle-Object which contains the bounds of a newly to open window. |
static void |
setApplicationMainFrame(javax.swing.JFrame frame)
Sets the main application frame. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MAUDA()
| Method Detail |
|---|
public static void setApplicationMainFrame(javax.swing.JFrame frame)
frame - main application framepublic static javax.swing.JFrame getApplicationMainFrame()
public static java.awt.Rectangle getRelativeBounds(int w,
int h)
frame.setBounds(MAUDA.getRelativeBounds(300,100));
w - The width of the new windowh - The height of the new window
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||