Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.style.util
Class GraphicsUtils

java.lang.Object
  |
  +--oracle.cabo.style.util.GraphicsUtils

public class GraphicsUtils
extends java.lang.Object

Graphics-related utilities.


Constructor Summary
GraphicsUtils()
           
 
Method Summary
static boolean isFontName(ErrorLog errorLog, java.lang.String name)
          Tests whether the specified name is the name of a font in the current graphical environment.
static boolean isFontName(java.lang.String name)
          Deprecated. Please call isFontName(ErrorLog, String)
static boolean isGraphicalEnvironment()
          Deprecated. Please call isGraphicalEnvironment(ErrorLog)
static boolean isGraphicalEnvironment(ErrorLog errorLog)
          Tests whether the current environment supports graphical operations (ie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsUtils

public GraphicsUtils()
Method Detail

isGraphicalEnvironment

public static boolean isGraphicalEnvironment(ErrorLog errorLog)
Tests whether the current environment supports graphical operations (ie. AWT Graphics operations). Note: On Unix, this calling this method will cause a connection to the X server to be established, if the X server is available.
Parameters:
errorLog - isGraphicalEnvironment() logs a warning the first time it is called if we are not running in a graphical environment.
return - Returns true if this is a graphical environment - ie. if we can perform AWT graphical operations in this environment.

isFontName

public static boolean isFontName(ErrorLog errorLog,
                                 java.lang.String name)
Tests whether the specified name is the name of a font in the current graphical environment.
Parameters:
errorLog - isFontName() logs a warning the first time this method is called if we are not running in a graphical environment.
name - The name of the font to test
Returns:
Returns true if the name is a valid font name in this graphical environment. isFontName() also returns true if the current environment is non-graphical.

isGraphicalEnvironment

public static boolean isGraphicalEnvironment()
Deprecated. Please call isGraphicalEnvironment(ErrorLog)

Tests whether the current environment supports graphical operations (ie. AWT Graphics operations).

isFontName

public static boolean isFontName(java.lang.String name)
Deprecated. Please call isFontName(ErrorLog, String)

Tests whether the specified name is the name of a font in the current graphical environment.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.