public class MetalLabelUI extends BasicLabelUI
修飾子と型 | フィールド | 説明 |
---|---|---|
protected static MetalLabelUI |
metalLabelUI |
デフォルトの
MetalLabelUI インスタンス。 |
labelUI
コンストラクタ | 説明 |
---|---|
MetalLabelUI() |
修飾子と型 | メソッド | 説明 |
---|---|---|
static ComponentUI |
createUI(JComponent c) |
|
protected void |
paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY) |
テキストをそれぞれのラベルのフォアグラウンド・カラーではなく、グレー(Label.disabledForeground)を使ってペイントします。
|
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paint, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected static MetalLabelUI metalLabelUI
MetalLabelUI
インスタンス。 このフィールドは使用できません。 デフォルト・インスタンスを変更するには、createUI
メソッドをオーバーライドするサブクラスを使用し、デフォルト・テーブル内のキー「LabelUI」の下にそのクラス名を配置します。 public static ComponentUI createUI(JComponent c)
protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
paintDisabledText
、クラスBasicLabelUI
l
- JLabel
のインスタンスg
- Graphics
のインスタンスs
- テキストtextX
- X座標textY
- Y座標BasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent)
, BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。