|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Globals
This class stores global info that is needed by all Editors. For example, it aids in communication between the various Palette's and Editor's by holding the next global Mode.
Field Summary | |
protected static java.applet.Applet |
_applet
|
protected static Editor |
_curEditor
The Editor that most recently contained the mouse. |
protected static Mode |
_mode
The next global mode. |
protected static java.util.Hashtable |
_pcListeners
A global dictionary of PropertyChangeListeners for Figs. |
protected static Prefs |
_prefs
The user's preferences for various editor features. |
static IStatusBar |
_StatusBar
The place where status messages will be written. |
protected static boolean |
_sticky
True if the next global Mode should remain as the next global mode even after it has been given to one editor. |
protected static java.awt.MediaTracker |
_tracker
|
static java.util.Vector |
clipBoard
Until jdk 1.2, this will be our clipboard TODO we have now gone beyond JDK1.2 |
static java.lang.String |
defaultStatus
String to display when nothing important is being displayed. |
static java.lang.String |
LastDirectory
The directory most recently used in an open or save dialog |
static int |
MAX_LISTENERS
The most listeners a Fig can have, 4. |
static boolean |
pastable
|
static java.lang.String |
REMOVE
|
static boolean |
ShowFigTips
Determines if tool tips be are shown on Figs in diagrams, including ToDoItem headlines. |
protected static java.beans.PropertyChangeListener |
universalListener
|
Constructor Summary | |
Globals()
|
Method Summary | |
static void |
addPropertyChangeListener(java.lang.Object src,
java.beans.PropertyChangeListener l)
Add a listener to a Fig. |
static void |
addUniversalPropertyChangeListener(java.beans.PropertyChangeListener pcl)
|
static void |
clearStatus()
Sets the status to its default (blank) string. |
static Editor |
curEditor()
Reply the Editor that most recently contained the mouse. |
static void |
curEditor(Editor ce)
Set the current Editor. |
protected static Mode |
defaultMode()
What mode should Editor's go into if the Palette is not requesting a specific mode? |
static void |
firePropChange(java.lang.Object src,
java.lang.String propName,
boolean oldV,
boolean newV)
Send a property change event to listeners of the src Fig. |
static void |
firePropChange(java.lang.Object src,
java.lang.String propName,
int oldV,
int newV)
Send a property change event to listeners of the src Fig. |
static void |
firePropChange(java.lang.Object src,
java.lang.String propName,
java.lang.Object oldValue,
java.lang.Object newValue)
Send a property change event to listeners of the src Fig. |
static java.applet.Applet |
getApplet()
|
static java.applet.AppletContext |
getAppletContext()
|
static java.awt.Image |
getImage(java.lang.String urlStr)
Get an image from the given URL (usually a gif file). |
static java.awt.Image |
getImage(java.net.URL url)
Get an image from the given URL (usually a gif file). |
static java.lang.String |
getLastDirectory()
|
static Prefs |
getPrefs()
Reply the user's preferences. |
static boolean |
getShowFigTips()
|
static boolean |
getSticky()
|
static Mode |
mode()
Reply the next global mode. |
static void |
mode(Mode m)
Set the next global mode. |
static void |
mode(Mode m,
boolean s)
Set the next global mode, and set it's stickiness. |
static Mode |
nextMode()
Determine the next global mode. |
static void |
quit()
Try to exit the applet or application. |
static void |
removePropertyChangeListener(java.lang.Object s,
java.beans.PropertyChangeListener listener)
|
static void |
removeUniversalPropertyChangeListener()
|
static void |
setApplet(java.applet.Applet a)
If we are running as an applet, Store the Applet and AppletContext in a well known place. |
static void |
setLastDirectory(java.lang.String s)
|
static void |
setShowFigTips(boolean b)
|
static void |
setStatusBar(IStatusBar sb)
Sets the place where status messages will be written. |
static void |
setSticky(boolean b)
Set whether the next global mode should remain as the next global mode even after it has been given to one editor. |
static void |
showDocument(java.lang.String urlString)
If we are running as an applet, ask the browser to display the given URL. |
static void |
showDocument(java.net.URL url)
If we are running as an applet, ask the browser to display the given URL. |
static void |
showDocument(java.net.URL url,
java.lang.String target)
If we are running as an applet, ask the browser to display the given URL. |
static void |
showStatus(java.lang.String s)
Show a string on the some status bar, or print a message on the console. |
static java.awt.Frame |
someFrame()
Return an exisiting instance of class Frame. |
static void |
startPropertySheet()
Open the property sheet. |
static void |
waitForImages()
Wait for all images to download. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String REMOVE
protected static java.applet.Applet _applet
protected static java.awt.MediaTracker _tracker
public static java.lang.String defaultStatus
public static java.util.Vector clipBoard
public static boolean pastable
public static java.lang.String LastDirectory
public static boolean ShowFigTips
public static IStatusBar _StatusBar
protected static Prefs _prefs
protected static boolean _sticky
protected static Mode _mode
protected static Editor _curEditor
protected static java.util.Hashtable _pcListeners
Note: It is important that all listeners eventually remove themselves by calling removePropertyChangeListener. Otherwise this table will keep pointers that can reduce grabage collection.
protected static java.beans.PropertyChangeListener universalListener
public static int MAX_LISTENERS
Constructor Detail |
public Globals()
Method Detail |
public static void setApplet(java.applet.Applet a)
public static java.applet.AppletContext getAppletContext()
public static java.applet.Applet getApplet()
public static java.lang.String getLastDirectory()
public static void setLastDirectory(java.lang.String s)
public static boolean getShowFigTips()
public static void setShowFigTips(boolean b)
public static void setStatusBar(IStatusBar sb)
public static void showStatus(java.lang.String s)
public static void clearStatus()
public static void showDocument(java.net.URL url)
public static void showDocument(java.net.URL url, java.lang.String target)
public static void showDocument(java.lang.String urlString)
public static java.awt.Image getImage(java.net.URL url)
public static java.awt.Image getImage(java.lang.String urlStr)
public static void waitForImages()
public static void quit()
public static Prefs getPrefs()
public static void startPropertySheet()
public static java.awt.Frame someFrame()
public static void setSticky(boolean b)
public static boolean getSticky()
protected static Mode defaultMode()
public static void mode(Mode m)
public static void mode(Mode m, boolean s)
public static Mode mode()
public static Mode nextMode()
Mode.done()
public static void curEditor(Editor ce)
public static Editor curEditor()
public static void addPropertyChangeListener(java.lang.Object src, java.beans.PropertyChangeListener l)
public static void addUniversalPropertyChangeListener(java.beans.PropertyChangeListener pcl)
public static void removeUniversalPropertyChangeListener()
public static void removePropertyChangeListener(java.lang.Object s, java.beans.PropertyChangeListener listener)
public static void firePropChange(java.lang.Object src, java.lang.String propName, boolean oldV, boolean newV)
public static void firePropChange(java.lang.Object src, java.lang.String propName, int oldV, int newV)
public static void firePropChange(java.lang.Object src, java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |