http://www.eteks.com

com.eteks.awt
Class PJAFontPeer

java.lang.Object
  extended bycom.eteks.awt.PJAFontPeer
All Implemented Interfaces:
java.awt.peer.FontPeer, java.io.Serializable

public class PJAFontPeer
extends java.lang.Object
implements java.awt.peer.FontPeer, java.io.Serializable

Pure Java AWT Font Peer. From version 1.1, com.eteks.tools.fontcapture.PJAFontCapture is used to capture the fonts. PJA 1.0 .pjaf font files are not compatible with PJA 1.1, please use font capture utility to produce PJA 1.1 font files. This class keeps all the data of a font in PJAFontData instances to avoid using PJAFontMetrics which extends java.awt.FontMetrics (java.awt.FontMetrics requires awt library to be loaded).

Since:
PJA1.0
Version:
2.1
Author:
Emmanuel Puybaret
See Also:
PJAGraphicsManager, PJAFontCapture, Serialized Form

Constructor Summary
protected PJAFontPeer(java.lang.String name, int style)
           
 
Method Summary
protected  void addFontData(PJAFontData newFontData)
           
 boolean equals(java.lang.Object object)
          Returns true if this font peer and object have the same name and style.
protected  PJAFontData getFontData(int fontSize)
           
protected  java.awt.FontMetrics getFontMetrics(java.awt.Font font)
           
protected  java.awt.FontMetrics getFontMetrics(int fontSize)
           
 java.lang.String getName()
          Returns the name of this font.
 int getStyle()
          Returns the style of this font.
 int hashCode()
           
static void main(java.lang.String[] args)
          Deprecated. As of PJA version 1.1, PJAFontPeer main () method moved to com.eteks.tools.fontcapture.PJAFontCapture.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PJAFontPeer

protected PJAFontPeer(java.lang.String name,
                      int style)
Method Detail

getName

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


getStyle

public int getStyle()
Returns the style of this font.


addFontData

protected void addFontData(PJAFontData newFontData)

getFontData

protected PJAFontData getFontData(int fontSize)

getFontMetrics

protected java.awt.FontMetrics getFontMetrics(java.awt.Font font)

getFontMetrics

protected java.awt.FontMetrics getFontMetrics(int fontSize)

equals

public boolean equals(java.lang.Object object)
Returns true if this font peer and object have the same name and style.


hashCode

public int hashCode()

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)
Deprecated. As of PJA version 1.1, PJAFontPeer main () method moved to com.eteks.tools.fontcapture.PJAFontCapture.

See Also:
PJAFontCapture

© 1997-2003 eTeks - All rights reserved