oracle.html
クラス BaseFont

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

public class BaseFont
extends IHtmlItemImpl

説明:

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

使用方法:

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

例:

   // Creates a BaseFont object with size = 3
   BaseFont bf = new BaseFont(3);
   // Creates a BaseFont object with color=red and size=3
   BaseFont bf = new BaseFont(Color.red, null, 3);
  


コンストラクタの概要
BaseFont(Color color, java.lang.String name, int size)
          BaseFontオブジェクトを作成します。
BaseFont(int size)
          BaseFontオブジェクトを作成します。
 
メソッドの概要
 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
 

コンストラクタの詳細

BaseFont

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

BaseFont

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

toHTML

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

toString

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