Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.style.util
Class FontProxy

java.lang.Object
  |
  +--oracle.cabo.style.util.FontProxy
Direct Known Subclasses:
MutableFontProxy

public class FontProxy
extends java.lang.Object

FontProxy serves as a substitute for java.awt.Font in non-graphical environments. In particular, FontProxy can be used in "headless" Unix environments, where access to a X server may not be available. (AWT requires an X server connection in order to instantiate a Font.) FontProxy can be used to prove font metadata without actually creating an AWT Font.


Constructor Summary
FontProxy(java.awt.Font font)
          Creates a FontProxy from a Font
FontProxy(java.lang.String name, int style, int size)
          Creates a FontProxy.
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests for equality.
 java.awt.Font getFont()
          Gets a Font from a FontProxy.
 java.lang.String getName()
          Returns the font name.
 int getSize()
          Returns the font size
 int getStyle()
          Returns the font style
 int hashCode()
          Returns a hashcode for this FontProxy.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FontProxy

public FontProxy(java.lang.String name,
                 int style,
                 int size)
Creates a FontProxy.
Parameters:
name - The logical name of the font
style - The font style, using the java.awt.Font bitmask constants.
size - he point size of the font

FontProxy

public FontProxy(java.awt.Font font)
Creates a FontProxy from a Font
Method Detail

getName

public java.lang.String getName()
Returns the font name.

getStyle

public int getStyle()
Returns the font style

getSize

public int getSize()
Returns the font size

getFont

public java.awt.Font getFont()
Gets a Font from a FontProxy.

equals

public boolean equals(java.lang.Object o)
Tests for equality.
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode for this FontProxy.
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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