mWaba.gui
Class Gui
java.lang.Object
|
+--mWaba.gui.Gui
- public class Gui
- extends java.lang.Object
Constructor Summary |
Gui()
|
Method Summary |
static Point |
centerText(waba.fx.FontMetrics fm,
java.lang.String st,
int width,
int height)
|
static void |
execFrame(mFrame f)
|
static void |
execFrame(mFrame f,
waba.ui.Container parent)
|
static void |
execFrame(mFrame f,
waba.ui.Container parent,
boolean center)
This will add the frame to the container and make it. |
static mControl |
focusedControl()
|
static waba.fx.Rect |
getAppRect(waba.ui.Control ct)
|
static waba.fx.Rect |
getAverageSize(waba.fx.FontMetrics fm,
int length,
int xGap,
int yGap)
|
static Point |
getPosInParent(waba.ui.Control c,
waba.ui.Container parent)
|
static waba.fx.Rect |
getSize(waba.fx.FontMetrics fm,
java.lang.String[] lines,
int xGap,
int yGap)
|
static waba.fx.Rect |
getSize(waba.fx.FontMetrics fm,
java.lang.String st,
int xGap,
int yGap)
|
static void |
hideFrame(mFrame f)
|
static boolean |
pressedOutsideTopFrame(mControl onWho,
Point whereOnWho)
|
static void |
refreshScreen()
|
static void |
refreshScreen(waba.ui.Control c)
|
static void |
refreshScreen(waba.fx.Rect area)
|
static void |
removeFrom(waba.ui.Container c,
waba.ui.Control ctrl)
|
static SavedScreen |
saveScreen(waba.fx.Rect area,
boolean doCapture)
|
static void |
showFrame(mFrame f,
waba.ui.Container parent)
|
static void |
showFrame(mFrame f,
waba.ui.Container parent,
boolean center)
This will add the frame to the container and make it. |
static void |
takeFocus(mControl c)
|
static mFrame |
topFrame()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
inFocus
protected static mVector inFocus
Gui
public Gui()
getSize
public static waba.fx.Rect getSize(waba.fx.FontMetrics fm,
java.lang.String st,
int xGap,
int yGap)
getSize
public static waba.fx.Rect getSize(waba.fx.FontMetrics fm,
java.lang.String[] lines,
int xGap,
int yGap)
getAverageSize
public static waba.fx.Rect getAverageSize(waba.fx.FontMetrics fm,
int length,
int xGap,
int yGap)
centerText
public static Point centerText(waba.fx.FontMetrics fm,
java.lang.String st,
int width,
int height)
topFrame
public static mFrame topFrame()
focusedControl
public static mControl focusedControl()
execFrame
public static void execFrame(mFrame f)
hideFrame
public static void hideFrame(mFrame f)
saveScreen
public static SavedScreen saveScreen(waba.fx.Rect area,
boolean doCapture)
getAppRect
public static waba.fx.Rect getAppRect(waba.ui.Control ct)
removeFrom
public static void removeFrom(waba.ui.Container c,
waba.ui.Control ctrl)
pressedOutsideTopFrame
public static boolean pressedOutsideTopFrame(mControl onWho,
Point whereOnWho)
execFrame
public static void execFrame(mFrame f,
waba.ui.Container parent,
boolean center)
- This will add the frame to the container and make it. After doing this you
should calculate its preferred size and move it to the appropriate spot
on the screen.
showFrame
public static void showFrame(mFrame f,
waba.ui.Container parent,
boolean center)
- This will add the frame to the container and make it. After doing this you
should calculate its preferred size and move it to the appropriate spot
on the screen.
execFrame
public static void execFrame(mFrame f,
waba.ui.Container parent)
showFrame
public static void showFrame(mFrame f,
waba.ui.Container parent)
getPosInParent
public static Point getPosInParent(waba.ui.Control c,
waba.ui.Container parent)
takeFocus
public static void takeFocus(mControl c)
refreshScreen
public static void refreshScreen()
refreshScreen
public static void refreshScreen(waba.fx.Rect area)
refreshScreen
public static void refreshScreen(waba.ui.Control c)