|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.util.UiUtil
public class UiUtil
User interface utilities and constants.
Field Summary | |
---|---|
static int |
DLG_HGAP
Horizontal gap between content and dialog border. |
static int |
DLG_VGAP
Vertical gap between content and dialog border. |
static int |
HGAP
Horizontal gap between components/controls. |
static java.lang.String |
LABEL_COLON
Text that follows a label. |
static java.lang.Object |
TEXT_ANTIALIAS_HINT
Best looking anti-aliasing setting for text from experimental results on several systems. |
static int |
VGAP
Vertical gap between components/controls. |
Constructor Summary | |
---|---|
UiUtil()
|
Method Summary | |
---|---|
static java.lang.String |
addLabelSuffix(com.moneydance.apps.md.view.resources.MDResourceProvider resources,
java.lang.String label)
Add a colon prompt after a text label if it does not have a colon. |
static java.lang.String |
getLabelText(com.moneydance.apps.md.view.resources.MDResourceProvider resources,
java.lang.String key)
Get a label from resources, and if it does not have a colon, add it. |
static java.awt.Point |
moveOnScreen(java.awt.Point point,
java.awt.Rectangle rectangle)
Move the point in screen coordinates so the specified rectangle fits on screen. |
static void |
runOnUIThread(java.lang.Runnable runnable)
Runs the specified code on the Event Dispatch thread (the UI thread). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HGAP
public static final int VGAP
public static final int DLG_HGAP
public static final int DLG_VGAP
public static final java.lang.String LABEL_COLON
public static java.lang.Object TEXT_ANTIALIAS_HINT
Constructor Detail |
---|
public UiUtil()
Method Detail |
---|
public static void runOnUIThread(java.lang.Runnable runnable)
runnable
- Code to run on the UI thread.public static java.awt.Point moveOnScreen(java.awt.Point point, java.awt.Rectangle rectangle)
point
- The point in screen coordinates.rectangle
- The rectangle to fit.
public static java.lang.String getLabelText(com.moneydance.apps.md.view.resources.MDResourceProvider resources, java.lang.String key)
resources
- Resource provider.key
- String key to look up in the resources
public static java.lang.String addLabelSuffix(com.moneydance.apps.md.view.resources.MDResourceProvider resources, java.lang.String label)
resources
- Resource provider.label
- String to add the colon to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |