oracle.html
クラス Font

java.lang.Object
  |
  +--oracle.html.IHtmlItemImpl
        |
        +--oracle.html.Font
 

public class Font
extends IHtmlItemImpl

説明:

Fontクラスは、HTML3.2に定義されているFONT要素をカプセル化します。

使用方法:

このクラスは、HTMLドキュメント内の任意のテキストに値を設定するために使用します。

例:

   // Creates a Font object with size = 3
   Font f = new Font("3");
   // Creates a Font object with color=red and size=+3
   Font f = new Font(Color.red, null, "+3");
  

関連項目:
BaseFont

コンストラクタの概要
Font(Color color, java.lang.String name, int size)
          Fontオブジェクトを作成します。
Font(Color color, java.lang.String name, java.lang.String size)
          Fontオブジェクトを作成します。
Font(int size)
          Fontオブジェクトを作成します。
Font(java.lang.String size)
          Fontオブジェクトを作成します。
 
メソッドの概要
 java.lang.String toHTML()
          オブジェクトの内容をHTML文字列として返します。
 java.lang.String toString()
           
 
クラス oracle.html.IHtmlItemImplから継承したメソッド
print, print
 
クラス java.lang.Objectから継承したメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Font

public Font(Color color,
            java.lang.String name,
            java.lang.String size) 
Fontオブジェクトを作成します。
パラメータ:
color - フォントのカラー
name - フォントの名前
size - フォントのサイズ

Font

public Font(Color color,
            java.lang.String name,
            int size) 
Fontオブジェクトを作成します。
パラメータ:
color - フォントのカラー
name - フォントの名前
size - フォントのサイズ

Font

public Font(java.lang.String size) 
Fontオブジェクトを作成します。
パラメータ:
size - フォントのサイズ

Font

public Font(int size) 
Fontオブジェクトを作成します。
パラメータ:
size - フォントのサイズ
メソッドの詳細

toHTML

public java.lang.String toHTML() 
クラスIHtmlItemImplの記述:
オブジェクトの内容をHTML文字列として返します。
オーバーライド:
クラス IHtmlItemImpl内のtoHTML
タグのコピー元クラス: IHtmlItemImpl
戻り値:
オブジェクトの内容を表すHTML文字列

toString

public java.lang.String toString() 
オーバーライド:
クラス java.lang.ObjectのtoString