JavaTM Platform
Standard Ed. 6

javax.swing.plaf.metal
クラス MetalInternalFrameTitlePane

java.lang.Object
  上位を拡張 java.awt.Component
      上位を拡張 java.awt.Container
          上位を拡張 javax.swing.JComponent
              上位を拡張 javax.swing.plaf.basic.BasicInternalFrameTitlePane
                  上位を拡張 javax.swing.plaf.metal.MetalInternalFrameTitlePane
すべての実装されたインタフェース:
ImageObserver, MenuContainer, Serializable

public class MetalInternalFrameTitlePane
extends BasicInternalFrameTitlePane

JLF 仕様のタイトルバーを管理するクラスです。

導入されたバージョン:
1.3

入れ子のクラスの概要
 
クラス javax.swing.plaf.basic.BasicInternalFrameTitlePane から継承された入れ子のクラス/インタフェース
BasicInternalFrameTitlePane.CloseAction, BasicInternalFrameTitlePane.IconifyAction, BasicInternalFrameTitlePane.MaximizeAction, BasicInternalFrameTitlePane.MoveAction, BasicInternalFrameTitlePane.PropertyChangeHandler, BasicInternalFrameTitlePane.RestoreAction, BasicInternalFrameTitlePane.SizeAction, BasicInternalFrameTitlePane.SystemMenuBar, BasicInternalFrameTitlePane.TitlePaneLayout
 
クラス javax.swing.JComponent から継承された入れ子のクラス/インタフェース
JComponent.AccessibleJComponent
 
クラス java.awt.Container から継承された入れ子のクラス/インタフェース
Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承された入れ子のクラス/インタフェース
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
protected  boolean isPalette
           
protected  Icon paletteCloseIcon
           
protected  int paletteTitleHeight
           
 
クラス javax.swing.plaf.basic.BasicInternalFrameTitlePane から継承されたフィールド
CLOSE_CMD, closeAction, closeButton, closeIcon, frame, iconButton, iconIcon, ICONIFY_CMD, iconifyAction, maxButton, maxIcon, MAXIMIZE_CMD, maximizeAction, menuBar, minIcon, MOVE_CMD, moveAction, notSelectedTextColor, notSelectedTitleColor, propertyChangeListener, RESTORE_CMD, restoreAction, selectedTextColor, selectedTitleColor, SIZE_CMD, sizeAction, windowMenu
 
クラス 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
 
インタフェース java.awt.image.ImageObserver から継承されたフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
MetalInternalFrameTitlePane(JInternalFrame f)
           
 
メソッドの概要
 void addNotify()
          このコンポーネントに現在親コンポーネントがあることを、このコンポーネントに通知します。
protected  void addSubComponents()
          親のメソッドをオーバーライドし、メニューバーの作成を防ぎます。
protected  void addSystemMenuItems(JMenu systemMenu)
          親のメソッドをオーバーライドし、処理は行いません。
protected  void assembleSystemMenu()
          親のメソッドをオーバーライドし、処理は行いません。
protected  void createButtons()
           
protected  LayoutManager createLayout()
           
protected  PropertyChangeListener createPropertyChangeListener()
           
protected  void installDefaults()
           
 void paintComponent(Graphics g)
          UI 委譲が null でない場合に、UI 委譲のペイントメソッドを呼び出します。
 void paintPalette(Graphics g)
           
 void setPalette(boolean b)
           
protected  void showSystemMenu()
          親のメソッドをオーバーライドし、処理は行いません。
protected  void uninstallDefaults()
           
 
クラス javax.swing.plaf.basic.BasicInternalFrameTitlePane から継承されたメソッド
createActions, createSystemMenu, createSystemMenuBar, enableActions, getTitle, installListeners, installTitlePane, paintTitleBackground, postClosingEvent, setButtonIcons, uninstallListeners
 
クラス javax.swing.JComponent から継承されたメソッド
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
クラス java.awt.Container から継承されたメソッド
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
クラス java.awt.Component から継承されたメソッド
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

isPalette

protected boolean isPalette

paletteCloseIcon

protected Icon paletteCloseIcon

paletteTitleHeight

protected int paletteTitleHeight
コンストラクタの詳細

MetalInternalFrameTitlePane

public MetalInternalFrameTitlePane(JInternalFrame f)
メソッドの詳細

addNotify

public void addNotify()
クラス JComponent の記述:
このコンポーネントに現在親コンポーネントがあることを、このコンポーネントに通知します。このメソッドが呼び出されると、親コンポーネントのチェーンが KeyboardAction イベントリスナーで設定されます。

オーバーライド:
クラス JComponent 内の addNotify
関連項目:
JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)

installDefaults

protected void installDefaults()
オーバーライド:
クラス BasicInternalFrameTitlePane 内の installDefaults

uninstallDefaults

protected void uninstallDefaults()
オーバーライド:
クラス BasicInternalFrameTitlePane 内の uninstallDefaults

createButtons

protected void createButtons()
オーバーライド:
クラス BasicInternalFrameTitlePane 内の createButtons

assembleSystemMenu

protected void assembleSystemMenu()
親のメソッドをオーバーライドし、処理は行いません。メタルフレームにはシステムメニューがありません。

オーバーライド:
クラス BasicInternalFrameTitlePane 内の assembleSystemMenu

addSystemMenuItems

protected void addSystemMenuItems(JMenu systemMenu)
親のメソッドをオーバーライドし、処理は行いません。メタルフレームにはシステムメニューがありません。

オーバーライド:
クラス BasicInternalFrameTitlePane 内の addSystemMenuItems

showSystemMenu

protected void showSystemMenu()
親のメソッドをオーバーライドし、処理は行いません。メタルフレームにはシステムメニューがありません。

オーバーライド:
クラス BasicInternalFrameTitlePane 内の showSystemMenu

addSubComponents

protected void addSubComponents()
親のメソッドをオーバーライドし、メニューバーの作成を防ぎます。メタルフレームにはシステムメニューがありません。

オーバーライド:
クラス BasicInternalFrameTitlePane 内の addSubComponents

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
オーバーライド:
クラス BasicInternalFrameTitlePane 内の createPropertyChangeListener

createLayout

protected LayoutManager createLayout()
オーバーライド:
クラス BasicInternalFrameTitlePane 内の createLayout

paintPalette

public void paintPalette(Graphics g)

paintComponent

public void paintComponent(Graphics g)
クラス JComponent の記述:
UI 委譲が null でない場合に、UI 委譲のペイントメソッドを呼び出します。委譲には Graphics オブジェクトのコピーを渡し、残りのペイントコードに対して取り消しできない変更が行われないように保護します (たとえば Graphics.translate など)。  

このメソッドをサブクラスでオーバーライドする場合は、渡された Graphics のオブジェクトには永続的な変更は行わないようにします。たとえば Rectangle クリップや変換は変更しません。このような変更が必要な場合は、渡された Graphics から新しい Graphics を生成し、それを変更するほうが容易です。さらに上位オブジェクトの実装を行わない場合は、不透明プロパティーに注意する必要があります。つまりこのコンポーネントが不透明な場合は、バックグラウンドには不透明でない色を使用する必要があります。不透明プロパティーを無視すると画面が見にくくなります。  

渡された Graphics オブジェクトには、インストールされている変換以外の変換が含まれていることがあります。この場合、ほかの変換を累積的に適用すると、予期しない結果が生じる可能性があります。

オーバーライド:
クラス BasicInternalFrameTitlePane 内の paintComponent
パラメータ:
g - 保護対象の Graphics オブジェクト
関連項目:
JComponent.paint(java.awt.Graphics), ComponentUI

setPalette

public void setPalette(boolean b)

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。