org.freehep.postscript.viewer
Class FontCache

java.lang.Object
  extended by org.freehep.postscript.viewer.FontCache

public class FontCache
extends Object

This class keeps a reference to all physical fonts. Fonts can be looked up by physical or logical name. Any font not found will issue a message and replace that font by another existing font. As of that moment the replacement will be returned.

Author:
duns

Constructor Summary
FontCache()
           
 
Method Summary
 Font get(String name)
           
 void put(Font font)
           
 void put(String name, Font font)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontCache

public FontCache()
Method Detail

get

public final Font get(String name)

put

public final void put(Font font)

put

public final void put(String name,
                      Font font)


Copyright © 2001-2009 FreeHEP. All Rights Reserved.