mokit.common
クラス F

java.lang.Object
  拡張mokit.common.F

public class F
extends java.lang.Object

フォントを管理します。

作成者:
Takuto Nishioka

フィールドの概要
static int FONT_LARGE
          ラージサイズフォント
static int FONT_MEDIUM
          ミディアムサイズフォント
static int FONT_SMALL
          スモールサイズフォント
static int FONT_TINY
          タイニーサイズフォント (ないのでスモールを指定)
 
コンストラクタの概要
F()
           
 
メソッドの概要
static int[] getFontSize(java.lang.String str)
          指定した文字列の幅と高さを取得します。
static int getFontType()
          現在アクティブなフォントタイプを取得します。
static void setFont(int fontType)
          フォントをセットします。
 
クラス java.lang.Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

FONT_TINY

public static int FONT_TINY
タイニーサイズフォント (ないのでスモールを指定)


FONT_SMALL

public static int FONT_SMALL
スモールサイズフォント


FONT_MEDIUM

public static int FONT_MEDIUM
ミディアムサイズフォント


FONT_LARGE

public static int FONT_LARGE
ラージサイズフォント

コンストラクタの詳細

F

public F()
メソッドの詳細

setFont

public static void setFont(int fontType)
フォントをセットします。

パラメータ:
fontType - フォントタイプ

getFontSize

public static int[] getFontSize(java.lang.String str)
指定した文字列の幅と高さを取得します。

パラメータ:
str - 対象文字列
戻り値:
フォントサイズの数値配列。[0]幅, [1]高さ

getFontType

public static int getFontType()
現在アクティブなフォントタイプを取得します。

戻り値:
フォントタイプ