Kagetaka

net.hizlab.kagetaka.rendering
クラス Document

java.lang.Object
  拡張net.hizlab.kagetaka.rendering.Document

public class Document
extends Object

ドキュメント全体を表すクラスです。

バージョン:
$Revision: 1.4 $

フィールドの概要
 int contentLength
          ドキュメントのコンテンツサイズ
 ContentType contentType
          ドキュメントのコンテンツタイプ
static Color DEFAULT_BACKGROUND_COLOR
          デフォルトの背景色
 ItemMap itemMap
          アイテムマップ
 int media
          メディアタイプ
 URL url
          ドキュメントの URL
 int zone
          ゾーン
static int ZONE_INTERNET
          インターネットゾーン
static int ZONE_LOCAL
          ローカルゾーン
 
メソッドの概要
 URL createURL(String href)
          ドキュメントの URL をベースに URL を返します。
 Color getBackColor()
          背景色を返します。
 Image getBackImage()
          背景画像を返します。
 URL getBaseURL()
          ベース URL を返します。
 Dimension getCharScale()
          描画用の行の幅と、文字の高さを返します。
 String getEncoding()
          ドキュメントのエンコーディングを返します。
 String getTitle()
          タイトルを返します。
 void setBackColor(Color color)
          背景色を設定します。
 void setBackImage(Image image)
          背景画像を設定します。
 void setBaseURL(URL url)
          ベース URL を変更します。
 void setCharScale(Dimension scale)
          描画用の行の幅と、文字の高さを設定します。
 void setEncoding(String encoding)
          ドキュメントのエンコーディングを設定します。
 void setTitle(String title)
          タイトルを設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

contentLength

public final int contentLength
ドキュメントのコンテンツサイズ


contentType

public final ContentType contentType
ドキュメントのコンテンツタイプ


DEFAULT_BACKGROUND_COLOR

public static final Color DEFAULT_BACKGROUND_COLOR
デフォルトの背景色


itemMap

public final ItemMap itemMap
アイテムマップ


media

public final int media
メディアタイプ


url

public final URL url
ドキュメントの URL


zone

public final int zone
ゾーン


ZONE_INTERNET

public static final int ZONE_INTERNET
インターネットゾーン

関連項目:
定数フィールド値

ZONE_LOCAL

public static final int ZONE_LOCAL
ローカルゾーン

関連項目:
定数フィールド値
メソッドの詳細

createURL

public URL createURL(String href)
              throws MalformedURLException,
                     SecurityException
ドキュメントの URL をベースに URL を返します。

パラメータ:
href - パス
戻り値:
ドキュメントの URL をベースにした URL
例外:
MalformedURLException - パスが不正な場合
SecurityException - セキュリティ違反の場合

getBackColor

public Color getBackColor()
背景色を返します。

戻り値:
背景色

getBackImage

public Image getBackImage()
背景画像を返します。

戻り値:
背景画像

getBaseURL

public URL getBaseURL()
ベース URL を返します。

戻り値:
ベース URL

getCharScale

public Dimension getCharScale()
描画用の行の幅と、文字の高さを返します。

戻り値:
幅と高さ

getEncoding

public String getEncoding()
ドキュメントのエンコーディングを返します。

戻り値:
ドキュメントのエンコーディング

getTitle

public String getTitle()
タイトルを返します。

戻り値:
タイトル

setBackColor

public void setBackColor(Color color)
背景色を設定します。

パラメータ:
color - 背景色

setBackImage

public void setBackImage(Image image)
背景画像を設定します。

パラメータ:
image - 背景画像

setBaseURL

public void setBaseURL(URL url)
ベース URL を変更します。

パラメータ:
url - ベース URL

setCharScale

public void setCharScale(Dimension scale)
描画用の行の幅と、文字の高さを設定します。 Dimension.width が行の幅、 Dimension.height が文字の高さを表します。

パラメータ:
scale - 幅と高さ

setEncoding

public void setEncoding(String encoding)
ドキュメントのエンコーディングを設定します。

パラメータ:
encoding - ドキュメントのエンコーディング

setTitle

public void setTitle(String title)
タイトルを設定します。

パラメータ:
title - タイトル

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 16, 2003'