JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.plaf.basic
クラス BasicToolBarUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ToolBarUI
              |
              +--javax.swing.plaf.basic.BasicToolBarUI
すべての実装インタフェース:
SwingConstants
直系の既知のサブクラス:
MetalToolBarUI

public class BasicToolBarUI
extends ToolBarUI
implements SwingConstants

ToolBarUI の基本 Look & Feel による実装です。この実装は、ビューとコントローラを一体化したものです。


内部クラスの概要
 class BasicToolBarUI.DockingListener
          この内部クラスは public とマークされますが、これはコンパイラのバグが原因です。
protected  class BasicToolBarUI.DragWindow
           
protected  class BasicToolBarUI.FrameListener
           
protected  class BasicToolBarUI.PropertyListener
           
protected  class BasicToolBarUI.ToolBarContListener
           
protected  class BasicToolBarUI.ToolBarFocusListener
           
 
フィールドの概要
protected  Color dockingBorderColor
           
protected  Color dockingColor
           
protected  MouseInputListener dockingListener
           
protected  KeyStroke downKey
          推奨されていません。 Java 2 プラットフォーム v1.3
protected  BasicToolBarUI.DragWindow dragWindow
           
protected  Color floatingBorderColor
           
protected  Color floatingColor
           
protected  int focusedCompIndex
           
protected  KeyStroke leftKey
          推奨されていません。 Java 2 プラットフォーム v1.3
protected  PropertyChangeListener propertyListener
           
protected  KeyStroke rightKey
          推奨されていません。 Java 2 プラットフォーム v1.3
protected  JToolBar toolBar
           
protected  ContainerListener toolBarContListener
           
protected  FocusListener toolBarFocusListener
           
protected  KeyStroke upKey
          推奨されていません。 Java 2 プラットフォーム v1.3
 
インタフェース javax.swing.SwingConstants から継承したフィールド
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
コンストラクタの概要
BasicToolBarUI()
           
 
メソッドの概要
 boolean canDock(Component c, Point p)
           
protected  MouseInputListener createDockingListener()
           
protected  BasicToolBarUI.DragWindow createDragWindow(JToolBar toolbar)
           
protected  JFrame createFloatingFrame(JToolBar toolbar)
           
protected  WindowListener createFrameListener()
           
protected  PropertyChangeListener createPropertyListener()
           
protected  ContainerListener createToolBarContListener()
           
protected  FocusListener createToolBarFocusListener()
           
static ComponentUI createUI(JComponent c)
           
protected  void dragTo(Point position, Point origin)
           
protected  void floatAt(Point position, Point origin)
           
 Color getDockingColor()
          ドッキング領域にあるときに表示される色を返します。
 Color getFloatingColor()
          フローティング領域にあるときに表示される色を返します。
 Dimension getMaximumSize(JComponent c)
           
 Dimension getMinimumSize(JComponent c)
           
 Dimension getPreferredSize(JComponent c)
           
protected  void installComponents()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
 void installUI(JComponent c)
           
 boolean isFloating()
           
protected  void navigateFocusedComp(int direction)
           
 void setDockingColor(Color c)
          ドッキング領域にあるときに表示される色を設定します。
 void setFloating(boolean b, Point p)
           
 void setFloatingColor(Color c)
          フローティング領域にあるときに表示される色を設定します。
 void setFloatingLocation(int x, int y)
           
 void setOrientation(int orientation)
           
protected  void uninstallComponents()
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
           
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

toolBar

protected JToolBar toolBar

dragWindow

protected BasicToolBarUI.DragWindow dragWindow

focusedCompIndex

protected int focusedCompIndex

dockingColor

protected Color dockingColor

floatingColor

protected Color floatingColor

dockingBorderColor

protected Color dockingBorderColor

floatingBorderColor

protected Color floatingBorderColor

dockingListener

protected MouseInputListener dockingListener

propertyListener

protected PropertyChangeListener propertyListener

toolBarContListener

protected ContainerListener toolBarContListener

toolBarFocusListener

protected FocusListener toolBarFocusListener

upKey

protected KeyStroke upKey
推奨されていません。 Java 2 プラットフォーム v1.3

ドキュメントから削除済のこのフィールドは、Java 2 プラットフォーム v1.3 では使用されません。キーバインディングは LookAndFeel によって定義されます。詳細はキーバインディングの仕様を参照してください。

downKey

protected KeyStroke downKey
推奨されていません。 Java 2 プラットフォーム v1.3

ドキュメントから削除済のこのフィールドは、Java 2 プラットフォーム v1.3 では使用されません。キーバインディングは LookAndFeel によって定義されます。詳細はキーバインディングの仕様を参照してください。

leftKey

protected KeyStroke leftKey
推奨されていません。 Java 2 プラットフォーム v1.3

ドキュメントから削除済のこのフィールドは、Java 2 プラットフォーム v1.3 では使用されません。キーバインディングは LookAndFeel によって定義されます。詳細はキーバインディングの仕様を参照してください。

rightKey

protected KeyStroke rightKey
推奨されていません。 Java 2 プラットフォーム v1.3

ドキュメントから削除済のこのフィールドは、Java 2 プラットフォーム v1.3 では使用されません。キーバインディングは LookAndFeel によって定義されます。詳細はキーバインディングの仕様を参照してください。
コンストラクタの詳細

BasicToolBarUI

public BasicToolBarUI()
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
オーバーライド:
クラス ComponentUI 内の installUI

uninstallUI

public void uninstallUI(JComponent c)
オーバーライド:
クラス ComponentUI 内の uninstallUI

installDefaults

protected void installDefaults()

uninstallDefaults

protected void uninstallDefaults()

installComponents

protected void installComponents()

uninstallComponents

protected void uninstallComponents()

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

installKeyboardActions

protected void installKeyboardActions()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

navigateFocusedComp

protected void navigateFocusedComp(int direction)

createFloatingFrame

protected JFrame createFloatingFrame(JToolBar toolbar)

createDragWindow

protected BasicToolBarUI.DragWindow createDragWindow(JToolBar toolbar)

getMinimumSize

public Dimension getMinimumSize(JComponent c)
オーバーライド:
クラス ComponentUI 内の getMinimumSize

getPreferredSize

public Dimension getPreferredSize(JComponent c)
オーバーライド:
クラス ComponentUI 内の getPreferredSize

getMaximumSize

public Dimension getMaximumSize(JComponent c)
オーバーライド:
クラス ComponentUI 内の getMaximumSize

setFloatingLocation

public void setFloatingLocation(int x,
                                int y)

isFloating

public boolean isFloating()

setFloating

public void setFloating(boolean b,
                        Point p)

setOrientation

public void setOrientation(int orientation)

getDockingColor

public Color getDockingColor()
ドッキング領域にあるときに表示される色を返します。

setDockingColor

public void setDockingColor(Color c)
ドッキング領域にあるときに表示される色を設定します。

getFloatingColor

public Color getFloatingColor()
フローティング領域にあるときに表示される色を返します。

setFloatingColor

public void setFloatingColor(Color c)
フローティング領域にあるときに表示される色を設定します。

canDock

public boolean canDock(Component c,
                       Point p)

dragTo

protected void dragTo(Point position,
                      Point origin)

floatAt

protected void floatAt(Point position,
                       Point origin)

createToolBarContListener

protected ContainerListener createToolBarContListener()

createToolBarFocusListener

protected FocusListener createToolBarFocusListener()

createPropertyListener

protected PropertyChangeListener createPropertyListener()

createDockingListener

protected MouseInputListener createDockingListener()

createFrameListener

protected WindowListener createFrameListener()

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.