Java プラットフォーム 1.2

javax.swing
クラス Box.Filler

java.lang.Object
  |
  +--java.awt.Component
        |
        +--javax.swing.Box.Filler

public static class Box.Filler
extends Component
implements Accessible

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

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

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

内部クラスの概要
protected  class Box.Filler.AccessibleBoxFiller
           
 
フィールドの概要
protected  AccessibleContext accessibleContext
          現在設定されている AccessibleContext オブジェクトです。
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
コンストラクタの概要
Box.Filler(Dimension min, Dimension pref, Dimension max)
          指定されたサイズの範囲で形状を作成するコンストラクタです。
 
メソッドの概要
 void changeShape(Dimension min, Dimension pref, Dimension max)
          形状のサイズ要求を変更します。
 AccessibleContext getAccessibleContext()
          コンポーネントに関連付けられた AccessibleContext を取得します。
 Dimension getMaximumSize()
          コンポーネントの最大のサイズを返します。
 Dimension getMinimumSize()
          コンポーネントの最小のサイズを返します。
 Dimension getPreferredSize()
          コンポーネントの望ましいサイズを返します。
 
クラス java.awt.Component から継承したメソッド
action, add, addComponentListener, addFocusListener, 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, getHeight, getInputContext, getInputMethodRequests, 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, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, 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()
コンポーネントに関連付けられた AccessibleContext を取得します。必要に応じて、新しいコンテキストを作成します。
定義:
インタフェース Accessible 内の getAccessibleContext
戻り値:
コンポーネントの AccessibleContext

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.