|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.AbstractButton | +--javax.swing.JButton | +--javax.swing.plaf.basic.BasicArrowButton
基本方向のいずれかにスケーリングされる矢印を描画する JButton オブジェクトです。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
クラス javax.swing.JButton から継承した内部クラス |
JButton.AccessibleJButton |
クラス javax.swing.AbstractButton から継承した内部クラス |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
クラス javax.swing.JComponent から継承した内部クラス |
JComponent.AccessibleJComponent |
クラス java.awt.Container から継承した内部クラス |
Container.AccessibleAWTContainer |
クラス java.awt.Component から継承した内部クラス |
Component.AccessibleAWTComponent |
フィールドの概要 | |
protected int |
direction
|
クラス javax.swing.JComponent から継承したフィールド |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
クラス java.awt.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース javax.swing.SwingConstants から継承したフィールド |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
BasicArrowButton(int direction)
|
メソッドの概要 | |
int |
getDirection()
|
Dimension |
getMaximumSize()
最大サイズが null 以外の値に設定されている場合にその値を返します。 |
Dimension |
getMinimumSize()
最小サイズが null 以外の値に設定されている場合にその値を返します。 |
Dimension |
getPreferredSize()
preferredSize が null 以外の値に設定されている場合にその値を返します。 |
boolean |
isFocusTraversable()
このコンポーネントがフォーカスを受け取れるかどうかを識別します。 |
void |
paint(Graphics g)
このメソッドは Swing によって呼び出され、コンポーネントを描画します。 |
void |
paintTriangle(Graphics g,
int x,
int y,
int size,
int direction,
boolean isEnabled)
|
void |
setDirection(int dir)
|
クラス javax.swing.JButton から継承したメソッド |
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected int direction
コンストラクタの詳細 |
public BasicArrowButton(int direction)
メソッドの詳細 |
public int getDirection()
public void setDirection(int dir)
public void paint(Graphics g)
JComponent
の記述: repaint
メソッドを使用してコンポーネントの再描画をスケジュールしなければなりません。
このメソッドは、実際にはペイント作業を 3 つの protected メソッドに委譲します。それらは、paintComponent
、paintBorder
、および paintChildren
です。これらのメソッドは、リストされている順番に呼び出され、子がコンポーネント上に表示されるようにします。通常、コンポーネントとその子は、ボーダに割り当てられたインセット領域にペイントされるべきではありません。サブクラスは、通常通りにこのメソッドをオーバーライドできます。UI (Look & Feel) 委譲の paint メソッドを特殊化するサブクラスは、paintComponent
をオーバーライドしなければなりません。
JComponent
内の paint
javax.swing.JComponent
からコピーされたタグ:JComponent.paintComponent(java.awt.Graphics)
,
JComponent.paintBorder(java.awt.Graphics)
,
JComponent.paintChildren(java.awt.Graphics)
,
JComponent.getComponentGraphics(java.awt.Graphics)
,
JComponent.repaint(long, int, int, int, int)
public Dimension getPreferredSize()
JComponent
の記述: JComponent
内の getPreferredSize
javax.swing.JComponent
からコピーされたタグ:JComponent.setPreferredSize(java.awt.Dimension)
public Dimension getMinimumSize()
JComponent
の記述: JComponent
内の getMinimumSize
javax.swing.JComponent
からコピーされたタグ:JComponent.setMinimumSize(java.awt.Dimension)
public Dimension getMaximumSize()
JComponent
の記述: JComponent
内の getMaximumSize
javax.swing.JComponent
からコピーされたタグ:JComponent.setMaximumSize(java.awt.Dimension)
public boolean isFocusTraversable()
AbstractButton
の記述: AbstractButton
内の isFocusTraversable
javax.swing.AbstractButton
からコピーされたタグ:public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled)
|
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.