|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nwoods.jgo.JGoGlobal
This class is used to hold information and routines that may be needed throughout the JGo system and/or that need to be constant across views.
In particular, this class maintains the current primary and secondary selection colors, routines to access what version of Java is running, and others.
| Method Summary | |
static java.awt.Component |
getComponent()
Return a default Component that can be used to measure text, if no view is available at the time. |
static java.awt.Graphics2D |
getGraphics2D()
The Graphics2D used to measure text without using any JGoView. |
static double |
getJavaVersion()
Return the version of Java under which this program is running. |
static double |
getJGoVersion()
Return the version of JGo in this package. |
static java.awt.Toolkit |
getToolkit()
Return a Toolkit. |
static boolean |
isAtLeastJavaVersion(double version)
Return true if this program is running under Java version "version" or greater. |
static boolean |
isAtLeastJGoVersion(double version)
Return true if this program is using JGo version "version" or greater. |
static boolean |
isJavaVersion(double version)
Test whether or not this program is running under exactly this version of Java. |
static boolean |
isJGoVersion(double version)
Test whether or not this program is using a particular version of JGo. |
static void |
setComponent(java.awt.Component c)
Save a Component that can be used to measure text in documents independent of any view. |
static void |
setup()
Make sure a Component exists that can be used to measure text. |
static void |
TRACE(java.lang.String msg)
This method just prints a line to System.err. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void TRACE(java.lang.String msg)
public static double getJGoVersion()
public static boolean isJGoVersion(double version)
version - the version
public static boolean isAtLeastJGoVersion(double version)
version - the minimum version underwhich to run.
public static double getJavaVersion()
public static boolean isJavaVersion(double version)
version - the minimum version
public static boolean isAtLeastJavaVersion(double version)
version - the minimum version underwhich to run.
public static java.awt.Component getComponent()
public static void setComponent(java.awt.Component c)
public static java.awt.Graphics2D getGraphics2D()
This Graphics2D should not be disposed. Initially the rendering hints are set to favor quality.
public static void setup()
public static java.awt.Toolkit getToolkit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||