|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicHTML
public class BasicHTML
swing コンポーネントに HTML ビューを提供します。単純な HTML 文字列を、HTML の描画が可能な javax.swing.text.View 実装に変換し、必要なレイアウトセマンティクスを提供します。
| フィールドの概要 | |
|---|---|
static String |
documentBaseKey
クライアントプロパティーとして格納されるキーで、相対参照を解決するベースを示します。 |
static String |
propertyKey
HTML レンダリングに使用するキーで、JComponent のクライアントプロパティーとして格納されます。 |
| コンストラクタの概要 | |
|---|---|
BasicHTML()
|
|
| メソッドの概要 | |
|---|---|
static View |
createHTMLView(JComponent c,
String html)
指定されたコンポーネントと HTML の文字列の HTML レンダリングを作成します。 |
static int |
getHTMLBaseline(View view,
int w,
int h)
HTML レンダリングのベースラインを返します。 |
static boolean |
isHTMLString(String s)
指定された文字列をチェックして、HTML 描画をサポートする非テキストコンポーネントの HTML 描画論理をトリガーする必要があるかどうかを調べます。 |
static void |
updateRenderer(JComponent c,
String text)
指定されたテキストの HTML レンダリングを、指定された JComponent のクライアントプロパティーに格納します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final String propertyKey
public static final String documentBaseKey
jComponent.putClientProperty(documentBaseKey,
xxx.class.getResource("resources/"));
| コンストラクタの詳細 |
|---|
public BasicHTML()
| メソッドの詳細 |
|---|
public static View createHTMLView(JComponent c,
String html)
public static int getHTMLBaseline(View view,
int w,
int h)
view - ベースラインを取得するビューw - ベースラインを取得する幅h - ベースラインを取得する高さ
IllegalArgumentException - 幅または高さが 0 より小さい場合FontMetrics,
JComponent.getBaseline(int,int)public static boolean isHTMLString(String s)
public static void updateRenderer(JComponent c,
String text)
このメソッドは、静的な、つまり共用されている ComponentUI 実装に対して有効であり、JComponent から実装の状態をすべて取得します。
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。