mokit.ui
クラス MktFont

java.lang.Object
  上位を拡張 mokit.ui.MktFont

public class MktFont
extends java.lang.Object

フォントに関連する機能を提供します。

作成者:
Takuto Nishioka

フィールドの概要
static int FONT_LARGE
          ラージサイズフォント(30dot)
static int FONT_MEDIUM
          ミディアムサイズフォント(24dot)
static int FONT_SMALL
          スモールサイズフォント(16dot)
static int FONT_TINY
          タイニーサイズフォント(12dot)
 
コンストラクタの概要
MktFont()
           
 
メソッドの概要
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
タイニーサイズフォント(12dot)


FONT_SMALL

public static int FONT_SMALL
スモールサイズフォント(16dot)


FONT_MEDIUM

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


FONT_LARGE

public static int FONT_LARGE
ラージサイズフォント(30dot)

コンストラクタの詳細

MktFont

public MktFont()
メソッドの詳細

setFont

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

パラメータ:
fontType - フォントタイプ(フォントサイズをdotで指定)

getFontSize

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

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

getFontType

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

戻り値:
フォントタイプを返します。