public class GUIEnv
extends java.lang.Object
Constructor and Description |
---|
GUIEnv() |
Modifier and Type | Method and Description |
---|---|
static java.applet.Applet |
getApplet() |
static ApplicationFrame |
getApplicationFrame() |
static java.awt.Color |
getCableColour(java.lang.Class type)
Returns the colour of the cable for this class type.
|
static java.awt.Color |
getCableColour(java.lang.String type)
Returns the colour of the cable for this type.
|
static java.util.TreeMap |
getCableColours() |
static java.util.Hashtable |
getColorTable() |
static ColorTableEntry[] |
getColorTableEntries() |
static DesktopView |
getDesktopViewFor(TaskGraph group) |
static java.lang.String |
getHTMLEditorCommand() |
static java.lang.String |
getHTMLViewerCommand() |
static javax.swing.ImageIcon |
getIcon(java.lang.String file) |
static java.awt.Image |
getImage(java.lang.String file) |
static java.lang.String |
getJavaEditorCommand() |
static java.awt.event.MouseListener |
getMouseListener()
Sets the action listener to the one specified
|
static DesktopView |
getSelectedDesktopView() |
static boolean |
getTipOfTheDay()
Gets the tip of the day dialof off or on.
|
static TrianaClient |
getTrianaClientFor(Task task) |
static javax.swing.ImageIcon |
getTrianaIcon() |
static java.awt.Image |
getTrianaImage()
Returns an image to use as the icon when TrianaWindow is iconified.
|
static boolean |
isAutoConnect() |
static boolean |
isSmoothCables() |
static void |
loadDefaultColours()
loads default colours for the types from the system's type file.
|
static void |
openURL(java.lang.String url)
Static method to display an HTML page using the default web browser.
|
static void |
removeTaskGraphContainer(DesktopView cont)
Remove the specified main triana from the workspace
|
static boolean |
restoreLast() |
static void |
setApplet(boolean mode,
java.lang.String homeDir,
java.applet.Applet appl)
Called when we are running Triana as an applet.
|
static void |
setAsApplet(java.lang.String homeDir,
java.applet.Applet applet)
Called when we are running Triana as an applet.
|
static void |
setAutoConnect(boolean state)
Sets whether auto connecting of tasks is enabled
|
static void |
setCableColor(java.lang.String type,
java.awt.Color color) |
static void |
setColorTableEntry(ColorTableEntry entry)
Sets the Color Table property so it can be saved
|
static void |
setExtendedDescriptions(boolean state)
Set whether or not to display extended tool tips.
|
static void |
setHTMLEditorCommand(java.lang.String cmd)
sets the HTML editor command i.e.
|
static void |
setHTMLViewerCommand(java.lang.String cmd)
sets the HTML viewer command i.e.
|
static void |
setJavaEditorCommand(java.lang.String cmd)
sets the java editor command i.e.
|
static void |
setMouseListener(java.awt.event.MouseListener m)
Sets the mouse listener for the tools to the one specified
|
static void |
setNodeEditIcons(boolean state)
Set whether or not to display extended tool tips.
|
static void |
setPopUpDescriptions(boolean state)
Enables/disables the showing of popup desciptions
|
static void |
setRestoreLast(boolean state)
Sets whether restore from last state at startup is set
|
static void |
setSmoothCables(boolean state)
Sets whether smooth cables is enabled
|
static void |
setTipOfTheDay(boolean state)
Sets the tip of the day dialof to off or on.
|
static void |
setTipOfTheDay(int num)
Sets the tip of the day number.
|
static void |
showEditorFor(java.lang.String editor,
java.lang.String filename)
Runs the given editor (the editor string is the command-line for the editor) for the particular fileName.
|
static boolean |
showExtendedDescriptions() |
static boolean |
showNodeEditIcons() |
static boolean |
showPopUpDescriptions() |
public static ApplicationFrame getApplicationFrame()
public static DesktopView getSelectedDesktopView()
public static void removeTaskGraphContainer(DesktopView cont)
public static DesktopView getDesktopViewFor(TaskGraph group)
public static TrianaClient getTrianaClientFor(Task task)
public static void setAutoConnect(boolean state)
public static boolean isAutoConnect()
public static void setSmoothCables(boolean state)
public static boolean isSmoothCables()
public static void setRestoreLast(boolean state)
public static boolean restoreLast()
public static void setMouseListener(java.awt.event.MouseListener m)
public static java.awt.event.MouseListener getMouseListener()
public static void openURL(java.lang.String url)
public static void showEditorFor(java.lang.String editor, java.lang.String filename)
public static boolean showPopUpDescriptions()
public static void setPopUpDescriptions(boolean state)
public static boolean showExtendedDescriptions()
public static void setExtendedDescriptions(boolean state)
public static boolean showNodeEditIcons()
public static void setNodeEditIcons(boolean state)
public static java.lang.String getJavaEditorCommand()
public static void setJavaEditorCommand(java.lang.String cmd)
public static java.lang.String getHTMLEditorCommand()
public static java.lang.String getHTMLViewerCommand()
public static void setHTMLEditorCommand(java.lang.String cmd)
public static void setHTMLViewerCommand(java.lang.String cmd)
public static void setTipOfTheDay(boolean state)
public static void setColorTableEntry(ColorTableEntry entry)
entry
- public static ColorTableEntry[] getColorTableEntries()
public static java.util.Hashtable getColorTable()
public static boolean getTipOfTheDay()
public static void setTipOfTheDay(int num)
public static void setApplet(boolean mode, java.lang.String homeDir, java.applet.Applet appl)
public static void setAsApplet(java.lang.String homeDir, java.applet.Applet applet)
public static java.applet.Applet getApplet()
public static java.util.TreeMap getCableColours()
public static java.awt.Color getCableColour(java.lang.String type)
public static void setCableColor(java.lang.String type, java.awt.Color color)
public static java.awt.Color getCableColour(java.lang.Class type)
public static void loadDefaultColours()
public static javax.swing.ImageIcon getIcon(java.lang.String file)
public static java.awt.Image getImage(java.lang.String file)
public static java.awt.Image getTrianaImage()
public static javax.swing.ImageIcon getTrianaIcon()