public class BasicHTML extends Object
| 修飾子と型 | フィールド | 説明 | 
|---|---|---|
| static String | documentBaseKey | クライアント・プロパティとして格納されるキーで、相対参照を解決するベースを示します。 | 
| static String | propertyKey | JComponentのクライアント・プロパティとして格納されるときに、HTMLレンダラに使用するキーです。 | 
| コンストラクタ | 説明 | 
|---|---|
| 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のクライアント・プロパティに格納します。 | 
public static final String propertyKey
public static View createHTMLView(JComponent c, String html)
public static int getHTMLBaseline(View view, int w, int h)
view - ベースラインを取得するVieww - ベースラインを取得する幅h - ベースラインを取得する高さIllegalArgumentException - 幅または高さが0より小さい場合FontMetrics, JComponent.getBaseline(int,int)public static boolean isHTMLString(String s)
public static void updateRenderer(JComponent c, String text)
このメソッドは、静的な(つまり共有の) ComponentUIの実装で役立ち、それらの状態をJComponentから完全に取得します。
 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。 
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved.  Use is subject to license terms.  Documentation Redistribution Policyも参照してください。