|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.ProgressBarUI | +--javax.swing.plaf.basic.BasicProgressBarUI
ProgressBarUI の基本 Look & Feel による実装です。
内部クラスの概要 | |
class |
BasicProgressBarUI.ChangeHandler
この内部クラスは public とマークされますが、これはコンパイラのバグが原因です。 |
フィールドの概要 | |
protected ChangeListener |
changeListener
|
protected JProgressBar |
progressBar
|
コンストラクタの概要 | |
BasicProgressBarUI()
|
メソッドの概要 | |
static ComponentUI |
createUI(JComponent x)
|
protected int |
getAmountFull(Insets b,
int width,
int height)
モデルから集めた完了パーセント情報に基づいて、塗りつぶされる進捗バーの量を決定します。 |
protected int |
getCellLength()
進捗バーに描画される個々のセルおよび単位の幅 (HORIZONTAL の場合) または高さ (VERTICAL の場合) を返します。 |
protected int |
getCellSpacing()
進捗バーにある各セルおよび単位の間隔を返します。 |
Dimension |
getMaximumSize(JComponent c)
|
Dimension |
getMinimumSize(JComponent c)
このコンポーネントでの最小サイズは 10 です。 |
protected Dimension |
getPreferredInnerHorizontal()
|
protected Dimension |
getPreferredInnerVertical()
|
Dimension |
getPreferredSize(JComponent c)
|
protected Color |
getSelectionBackground()
selectionBackground は、進捗バーの塗りつぶされていない領域に描画するときのテキストの色です。 |
protected Color |
getSelectionForeground()
selectionForeground は、進捗バーの塗りつぶされた領域に描画するときのテキストの色です。 |
protected Point |
getStringPlacement(Graphics g,
String progressString,
int x,
int y,
int width,
int height)
進捗文字列の描画位置を指定します。 |
protected void |
installDefaults()
|
protected void |
installListeners()
|
void |
installUI(JComponent c)
|
void |
paint(Graphics g,
JComponent c)
ほぼすべての直線進捗バーで正しく動作する、汎用の paint メソッドです。 |
protected void |
paintString(Graphics g,
int x,
int y,
int width,
int height,
int amountFull,
Insets b)
|
protected void |
setCellLength(int cellLen)
|
protected void |
setCellSpacing(int cellSpace)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(JComponent c)
|
クラス javax.swing.plaf.ComponentUI から継承したメソッド |
contains, getAccessibleChild, getAccessibleChildrenCount, update |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected JProgressBar progressBar
protected ChangeListener changeListener
コンストラクタの詳細 |
public BasicProgressBarUI()
メソッドの詳細 |
public static ComponentUI createUI(JComponent x)
public void installUI(JComponent c)
ComponentUI
内の installUI
public void uninstallUI(JComponent c)
ComponentUI
内の uninstallUI
protected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected void uninstallListeners()
protected Dimension getPreferredInnerHorizontal()
protected Dimension getPreferredInnerVertical()
protected Color getSelectionForeground()
protected Color getSelectionBackground()
protected int getCellLength()
setCellLength(int)
,
JProgressBar.isStringPainted()
protected void setCellLength(int cellLen)
protected int getCellSpacing()
setCellSpacing(int)
,
JProgressBar.isStringPainted()
protected void setCellSpacing(int cellSpace)
protected int getAmountFull(Insets b, int width, int height)
public void paint(Graphics g, JComponent c)
ComponentUI
内の paint
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
protected Point getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)
public Dimension getPreferredSize(JComponent c)
ComponentUI
内の getPreferredSize
public Dimension getMinimumSize(JComponent c)
ComponentUI
内の getMinimumSize
public Dimension getMaximumSize(JComponent c)
ComponentUI
内の getMaximumSize
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.