JavaTM 2 Platform
Std. Ed. v1.3

javax.swing
クラス Box.Filler

java.lang.Object
  |
  +--java.awt.Component
        |
        +--javax.swing.Box.Filler
すべての実装インタフェース:
Accessible, ImageObserver, MenuContainer, Serializable
含まれているクラス:
Box

public static class Box.Filler
extends Component
implements Accessible

レイアウトに関連し、ビューを持たない軽量コンポーネントの実装です。

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。

関連項目:
直列化された形式

内部クラスの概要
protected  class Box.Filler.AccessibleBoxFiller
          このクラスは Box.Filler クラス用のユーザ補助機能のサポートを実装しています。
 
クラス java.awt.Component から継承した内部クラス
Component.AccessibleAWTComponent
 
フィールドの概要
protected  AccessibleContext accessibleContext
          現在設定されている AccessibleContext オブジェクトです。
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
インタフェース java.awt.image.ImageObserver から継承したフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
Box.Filler(Dimension min, Dimension pref, Dimension max)
          指定されたサイズ範囲の形状を作成するためのコンストラクタです。
 
メソッドの概要
 void changeShape(Dimension min, Dimension pref, Dimension max)
          この形状のサイズの必要条件を変更します。
 AccessibleContext getAccessibleContext()
          この Box.Filler に関連した AccessibleContext を返します。
 Dimension getMaximumSize()
          コンポーネントの最大サイズを返します。
 Dimension getMinimumSize()
          コンポーネントの最小サイズを返します。
 Dimension getPreferredSize()
          コンポーネントの適切なサイズを返します。
 
クラス java.awt.Component から継承したメソッド
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

accessibleContext

protected AccessibleContext accessibleContext
現在設定されている AccessibleContext オブジェクトです。
コンストラクタの詳細

Box.Filler

public Box.Filler(Dimension min,
                  Dimension pref,
                  Dimension max)
指定されたサイズ範囲の形状を作成するためのコンストラクタです。
パラメータ:
min - 最小サイズ
pref - 推奨サイズ
max - 最大サイズ
メソッドの詳細

changeShape

public void changeShape(Dimension min,
                        Dimension pref,
                        Dimension max)
この形状のサイズの必要条件を変更します。invalidate() は結果として上方に伝達されるので、最終的に新しいサイズを使用してレイアウトされます。
パラメータ:
min - getMinimumSize に返す値
pref - getPreferredSize に返す値
max - getMaximumSize に返す値

getMinimumSize

public Dimension getMinimumSize()
コンポーネントの最小サイズを返します。
オーバーライド:
クラス Component 内の getMinimumSize
戻り値:
サイズ

getPreferredSize

public Dimension getPreferredSize()
コンポーネントの適切なサイズを返します。
オーバーライド:
クラス Component 内の getPreferredSize
戻り値:
サイズ

getMaximumSize

public Dimension getMaximumSize()
コンポーネントの最大サイズを返します。
オーバーライド:
クラス Component 内の getMaximumSize
戻り値:
サイズ

getAccessibleContext

public AccessibleContext getAccessibleContext()
この Box.Filler に関連した AccessibleContext を返します。ボックスフィラーの場合、AccessibleContext は AccessibleBoxFiller の形式を取ります。必要に応じて新規の AccessibleAWTBoxFiller インスタンスが作成されます。
定義:
インタフェース Accessible 内の getAccessibleContext
オーバーライド:
クラス Component 内の getAccessibleContext
戻り値:
この Box.Filler の AccessibleContext として機能する AccessibleBoxFiller

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

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.