Skip navigation links

Oracle Outside In Java API Reference
8.5.4

F11002-01


com.oracle.outsidein.options
Class FontInfo

java.lang.Object
  extended by com.oracle.outsidein.options.FontInfo


public class FontInfo
extends java.lang.Object

Contains information describing a font's name and height attribute.

See Also:
OptionsCache.setDefaultRenderFont(FontInfo)

Constructor Summary
FontInfo()
          Creates a default FontInfo object initialized to 10 point Arial.
FontInfo(java.lang.String fontface, int height)
          Creates a FontInfo object with the given font face name and the given height.

 

Method Summary
 java.lang.String getFontFace()
          Obtains the name of the font.
 int getHeight()
          Obtains the size of the font in half points.
 void setFontFace(java.lang.String value)
          Assigns the name of the font.
 void setHeight(int value)
          Assigns the size of the font in half points.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

FontInfo

public FontInfo()
Creates a default FontInfo object initialized to 10 point Arial.

FontInfo

public FontInfo(java.lang.String fontface,
                int height)
Creates a FontInfo object with the given font face name and the given height.
Parameters:
fontface - the name of the font
height - the size of the font in half points

Method Detail

getFontFace

public java.lang.String getFontFace()
Obtains the name of the font. For example, "Helvetica Compressed."
Returns:
the name of the font

setFontFace

public void setFontFace(java.lang.String value)
Assigns the name of the font. For example, "Helvetica Compressed."
Parameters:
value - the name of the font

getHeight

public int getHeight()
Obtains the size of the font in half points. For example, a value of 24 will produce a 12-point font.
Returns:
the size of the font in half points

setHeight

public void setHeight(int value)
Assigns the size of the font in half points. For example, a value of 24 will produce a 12-point font.
Parameters:
value - the size of the font in half points

Skip navigation links

Oracle Outside In Java API Reference
8.5.4

F11002-01


Copyright © 2010, 2018, Oracle and/or its affiliates. All rights reserved.