jmri.util
Class FontUtil

java.lang.Object
  extended by jmri.util.FontUtil

public class FontUtil
extends Object

Common utility methods for working with Fonts.

We needed a place to refactor common Font-processing idioms in JMRI code, so this class was created. It's more of a library of procedures than a real class, as (so far) all of the operations have needed no state information.

In particular, this is intended to provide Java 2 functionality on a Java 1.1.8 system, or at least try to fake it.

Author:
Bob Jacobsen Copyright 2003

Constructor Summary
FontUtil()
           
 
Method Summary
static boolean canResize()
           
static boolean canRestyle()
           
static Font deriveFont(Font f, float size)
           
static Font deriveFont(Font f, int style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontUtil

public FontUtil()
Method Detail

canRestyle

public static boolean canRestyle()

deriveFont

public static Font deriveFont(Font f,
                              int style)

canResize

public static boolean canResize()

deriveFont

public static Font deriveFont(Font f,
                              float size)


Copyright © 1997 - 2010 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads