public class EditorUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static Color |
ACTIVE_CAPTION |
static Color |
ACTIVE_CAPTION_TEXT |
static Color |
CONTROL |
static Color |
CONTROL_DARKSHADOW |
static Color |
CONTROL_HIGHLIGHT |
static Color |
CONTROL_LIGHT |
static Color |
CONTROL_SHADOW |
static Color |
CONTROL_TEXT |
static Color |
TEXT_HIGHLIGHT |
static Color |
TEXT_HIGHLIGHT_TEXT |
static Color |
TEXT_TEXT |
static Color |
TOOLTIP_BACKGROUND |
static Color |
TOOLTIP_TEXT |
static Color |
WINDOW |
static Color |
WINDOW_BORDER |
static Color |
WINDOW_TEXT |
static Color |
XP_BORDER_COLOR |
static Color |
XP_HIGHLIGHT_COLOR |
static Color |
XP_HIGHLIGHT_SELECTED_COLOR |
static Color |
XP_HIGHLIGHT_TOGGLE_COLOR |
| Constructor and Description |
|---|
EditorUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static Process |
browse(String strURL) |
static String |
buildFunctionIntellisenseString(boolean bFeatureLiteralCompletion,
IFunctionType functionType) |
static void |
centerWindowInFrame(Component window,
Window frame) |
static void |
convertRectangleToScreen(Rectangle rectangle,
Component component) |
static JButton |
createArrowButton() |
static Image |
createSystemColorImage(Image i) |
static void |
delete(File fileOrDir) |
static void |
displayError(String strMsg) |
static void |
displayError(Throwable e) |
static void |
displayInformation(String strMsg) |
static void |
displayMessageBox(String strMsg,
int iType,
boolean bWrapText) |
static void |
displayWarning(String strMsg) |
static void |
doBackgroundOp(Runnable run) |
static List<String> |
filterStrings(Collection<? extends CharSequence> collection,
String filter) |
static <T> T |
findAncestor(Component start,
Class<T> aClass)
Finds the first widget above the passed in widget of the given class
|
static <T> T |
findAtOrAbove(Component start,
Class<T> aClass)
Finds the first widget at or above the passed in widget of the given class
|
static File |
findExperimentFile(File dir) |
static Icon |
findIcon(ClassType classType) |
static Icon |
findIcon(File fileOrDir) |
static Icon |
findIcon(IType type) |
static Frame |
frameForComponent(Component comp) |
static Clipboard |
getClipboard() |
static Rectangle |
getPrimaryMonitorScreenRect() |
static List<File> |
getStockExampleExperiments() |
static File |
getStockExamplesDir() |
static File |
getStockExperimentsDir() |
static File |
getUserFile(GosuPanel gosuPanel) |
static File |
getUserGosuEditorDir() |
static Window |
getWindow() |
static void |
handleUncaughtException(String s,
Throwable e) |
static void |
handleUncaughtException(Throwable e) |
static void |
hideToolTip(JComponent c) |
static void |
invokeInDispatchThread(Runnable task) |
static ImageIcon |
loadIcon(String strRes) |
static ImageIcon |
loadLabIcon() |
static Experiment |
loadRecentExperiment(GosuPanel gosuPanel) |
static void |
openFileOrDir(File file) |
static void |
removePopupBorder(Container c) |
static JRootPane |
rootPaneForComponent(Component comp) |
static void |
saveLayoutState(Experiment experiment) |
static void |
settleBackgroundOps()
Pumps through all current events in the background operation queue.
|
static void |
settleEventQueue() |
static String |
wrapText(String strText) |
static String |
wrapText(String strText,
int iLineLen) |
public static final Color ACTIVE_CAPTION
public static final Color ACTIVE_CAPTION_TEXT
public static final Color CONTROL
public static final Color CONTROL_DARKSHADOW
public static final Color CONTROL_HIGHLIGHT
public static final Color CONTROL_LIGHT
public static final Color CONTROL_SHADOW
public static final Color CONTROL_TEXT
public static final Color TOOLTIP_BACKGROUND
public static final Color TOOLTIP_TEXT
public static final Color WINDOW
public static final Color WINDOW_TEXT
public static final Color WINDOW_BORDER
public static final Color TEXT_HIGHLIGHT
public static final Color TEXT_HIGHLIGHT_TEXT
public static final Color TEXT_TEXT
public static final Color XP_BORDER_COLOR
public static final Color XP_HIGHLIGHT_TOGGLE_COLOR
public static final Color XP_HIGHLIGHT_COLOR
public static final Color XP_HIGHLIGHT_SELECTED_COLOR
public static void doBackgroundOp(Runnable run)
public static void settleBackgroundOps()
public static void removePopupBorder(Container c)
public static Rectangle getPrimaryMonitorScreenRect()
public static void handleUncaughtException(Throwable e)
public static void settleEventQueue()
public static Clipboard getClipboard()
public static String buildFunctionIntellisenseString(boolean bFeatureLiteralCompletion, IFunctionType functionType)
public static JButton createArrowButton()
public static Window getWindow()
public static void displayInformation(String strMsg)
public static void displayError(Throwable e)
public static void displayError(String strMsg)
public static void displayWarning(String strMsg)
public static void displayMessageBox(String strMsg, int iType, boolean bWrapText)
public static void convertRectangleToScreen(Rectangle rectangle, Component component)
public static List<String> filterStrings(Collection<? extends CharSequence> collection, String filter)
public static void hideToolTip(JComponent c)
public static void invokeInDispatchThread(Runnable task)
public static Process browse(String strURL) throws IOException
IOExceptionpublic static <T> T findAncestor(Component start, Class<T> aClass)
public static <T> T findAtOrAbove(Component start, Class<T> aClass)
public static Experiment loadRecentExperiment(GosuPanel gosuPanel)
public static void saveLayoutState(Experiment experiment)
public static File getUserGosuEditorDir()
public static File getStockExperimentsDir()
public static File getStockExamplesDir()
public static void openFileOrDir(File file)
public static void delete(File fileOrDir)
public static ImageIcon loadLabIcon()
Copyright © 2018. All rights reserved.