org.apache.myfaces.trinidadinternal.style.util
Class GraphicsUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.style.util.GraphicsUtils

public class GraphicsUtils
extends java.lang.Object

Graphics-related utilities.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/style/util/GraphicsUtils.java#0 $) $Date: 10-nov-2005.18:58:50 $
Author:
The Oracle ADF Faces Team

Constructor Summary
GraphicsUtils()
           
 
Method Summary
static boolean isFontName(java.lang.String name)
          Tests whether the specified name is the name of a font in the current graphical environment.
static boolean isGraphicalEnvironment()
          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()
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:
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(java.lang.String name)
Tests whether the specified name is the name of a font in the current graphical environment.

Parameters:
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.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.