JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.swing.plaf.basic
Ŭ·¡½º BasicInternalFrameTitlePane

java.lang.Object 
  |
  +--java.awt.Component 
        |
        +--java.awt.Container 
              |
              +--javax.swing.JComponent 
                    |
                    +--javax.swing.plaf.basic.BasicInternalFrameTitlePane
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
ImageObserver , MenuContainer , Serializable
Á÷°èÀÇ ±âÁ¸ÀÇ ¼­ºê Ŭ·¡½º:
MetalInternalFrameTitlePane

public class BasicInternalFrameTitlePane
extends JComponent

±âº»ÀÇ Å¸ÀÌÆ² ¹Ù¸¦ °ü¸®Çϴ Ŭ·¡½ºÀÔ´Ï´Ù.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿ÍÀÇ È£È¯¼ºÀÌ ¾ø¾îÁý´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ ¼­Æ÷Æ®´Â ´Ü±â ±â¾ïÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. ¹öÁ¯ 1.4 ÀÇ ½ÃÁ¡¿¡¼­´Â JavaBeans ÀÇ Àå±â ±â¾ï¿ëÀÇ ¼­Æ÷Æ®´Â ¸ðµÎ java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.


ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä
 class BasicInternalFrameTitlePane.CloseAction
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.IconifyAction
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.MaximizeAction
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.MoveAction
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.PropertyChangeHandler
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.RestoreAction
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.SizeAction
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.SystemMenuBar
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 class BasicInternalFrameTitlePane.TitlePaneLayout
          ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
JComponent.AccessibleJComponent
 
Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
Container.AccessibleAWTContainer
 
Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
Component.AccessibleAWTComponent , Component.BltBufferStrategy , Component.FlipBufferStrategy
 
ÇʵåÀÇ °³¿ä
protected static String CLOSE_CMD
           
protected  Action closeAction
           
protected  JButton closeButton
           
protected  Icon closeIcon
           
protected  JInternalFrame frame
           
protected  JButton iconButton
           
protected  Icon iconIcon
           
protected static String ICONIFY_CMD
           
protected  Action iconifyAction
           
protected  JButton maxButton
           
protected  Icon maxIcon
           
protected static String MAXIMIZE_CMD
           
protected  Action maximizeAction
           
protected  JMenuBar menuBar
           
protected  Icon minIcon
           
protected static String MOVE_CMD
           
protected  Action moveAction
           
protected  Color notSelectedTextColor
           
protected  Color notSelectedTitleColor
           
protected  PropertyChangeListener propertyChangeListener
           
protected static String RESTORE_CMD
           
protected  Action restoreAction
           
protected  Color selectedTextColor
           
protected  Color selectedTitleColor
           
protected static String SIZE_CMD
           
protected  Action sizeAction
           
protected  JMenu 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
 
»ý¼ºÀÚÀÇ °³¿ä
BasicInternalFrameTitlePane (JInternalFrame  f)
           
 
¸Þ¼ÒµåÀÇ °³¿ä
protected  void addSubComponents ()
           
protected  void addSystemMenuItems (JMenu  systemMenu)
           
protected  void assembleSystemMenu ()
           
protected  void createActions ()
           
protected  void createButtons ()
           
protected  LayoutManager createLayout ()
           
protected  PropertyChangeListener createPropertyChangeListener ()
           
protected  JMenu createSystemMenu ()
           
protected  JMenuBar createSystemMenuBar ()
           
protected  void enableActions ()
           
protected  String getTitle (String  text, FontMetrics  fm, int availTextWidth)
           
protected  void installDefaults ()
           
protected  void installListeners ()
           
protected  void installTitlePane ()
           
 void paintComponent (Graphics  g)
          UI delegateÀÌ null °¡ ¾Æ´Ñ °æ¿ì¿¡, UI delegateÀÇ paint ¸Þ¼Òµå¸¦ È£ÃâÇÕ´Ï´Ù.
protected  void paintTitleBackground (Graphics  g)
          paintComponent ·ÎºÎÅÍ È£ÃâÇÕ´Ï´Ù.
protected  void postClosingEvent (JInternalFrame  frame)
          Åë»óÀÇ Frame ¿Í °°°Ô ó¸®ÇÒ ¼ö ÀÖ°Ô, ÇÁ·¹ÀÓ¿¡ WINDOW_CLOSING ¿Í °°Àº À̺¥Æ®¸¦ Àü¼Û ÇÕ´Ï´Ù.
protected  void setButtonIcons ()
           
protected  void showSystemMenu ()
           
protected  void uninstallDefaults ()
           
protected  void uninstallListeners ()
           
 
Ŭ·¡½º javax.swing. JComponent ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
addAncestorListener , addNotify , addPropertyChangeListener , addPropertyChangeListener , addVetoableChangeListener , computeVisibleRect , contains , createToolTip , disable , enable , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , fireVetoableChange , getAccessibleContext , getActionForKeyStroke , getActionMap , getAlignmentX , getAlignmentY , getAncestorListeners , getAutoscrolls , getBorder , getBounds , getClientProperty , getComponentGraphics , getConditionForKeyStroke , getDebugGraphicsOptions , getDefaultLocale , getGraphics , getHeight , getInputMap , getInputMap , getInputVerifier , getInsets , getInsets , getListeners , getLocation , getMaximumSize , getMinimumSize , getNextFocusableComponent , getPreferredSize , getPropertyChangeListeners , getPropertyChangeListeners , getRegisteredKeyStrokes , getRootPane , getSize , getToolTipLocation , getToolTipText , getToolTipText , getTopLevelAncestor , getTransferHandler , getUIClassID , getVerifyInputWhenFocusTarget , getVetoableChangeListeners , getVisibleRect , getWidth , getX , getY , grabFocus , isDoubleBuffered , isLightweightComponent , isManagingFocus , isMaximumSizeSet , isMinimumSizeSet , isOpaque , isOptimizedDrawingEnabled , isPaintingTile , isPreferredSizeSet , isRequestFocusEnabled , isValidateRoot , paint , paintBorder , paintChildren , paintImmediately , paintImmediately , paramString , print , printAll , printBorder , printChildren , printComponent , processComponentKeyEvent , processKeyBinding , processKeyEvent , processMouseMotionEvent , putClientProperty , registerKeyboardAction , registerKeyboardAction , removeAncestorListener , removeNotify , removePropertyChangeListener , removePropertyChangeListener , removeVetoableChangeListener , repaint , repaint , requestDefaultFocus , requestFocus , requestFocus , requestFocusInWindow , requestFocusInWindow , resetKeyboardActions , reshape , revalidate , scrollRectToVisible , setActionMap , setAlignmentX , setAlignmentY , setAutoscrolls , setBackground , setBorder , setDebugGraphicsOptions , setDefaultLocale , setDoubleBuffered , setEnabled , setFont , setForeground , 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 , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , 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 , getBackground , getBounds , getColorModel , getComponentListeners , getComponentOrientation , getCursor , getDropTarget , getFocusCycleRootAncestor , getFocusListeners , getFocusTraversalKeysEnabled , getFont , getFontMetrics , getForeground , getGraphicsConfiguration , getHierarchyBoundsListeners , getHierarchyListeners , getIgnoreRepaint , getInputContext , getInputMethodListeners , getInputMethodRequests , getKeyListeners , getLocale , getLocation , getLocationOnScreen , getMouseListeners , getMouseMotionListeners , getMouseWheelListeners , getName , getParent , getPeer , getSize , getToolkit , getTreeLock , gotFocus , handleEvent , hasFocus , hide , imageUpdate , inside , isBackgroundSet , isCursorSet , isDisplayable , isEnabled , isFocusable , isFocusOwner , isFocusTraversable , isFontSet , isForegroundSet , isLightweight , 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 , processMouseEvent , processMouseWheelEvent , remove , removeComponentListener , removeFocusListener , removeHierarchyBoundsListener , removeHierarchyListener , removeInputMethodListener , removeKeyListener , removeMouseListener , removeMouseMotionListener , removeMouseWheelListener , 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
 

ÇʵåÀÇ »ó¼¼

menuBar

protected JMenuBar  menuBar

iconButton

protected JButton  iconButton

maxButton

protected JButton  maxButton

closeButton

protected JButton  closeButton

windowMenu

protected JMenu  windowMenu

frame

protected JInternalFrame  frame

selectedTitleColor

protected Color  selectedTitleColor

selectedTextColor

protected Color  selectedTextColor

notSelectedTitleColor

protected Color  notSelectedTitleColor

notSelectedTextColor

protected Color  notSelectedTextColor

maxIcon

protected Icon  maxIcon

minIcon

protected Icon  minIcon

iconIcon

protected Icon  iconIcon

closeIcon

protected Icon  closeIcon

propertyChangeListener

protected PropertyChangeListener  propertyChangeListener

closeAction

protected Action  closeAction

maximizeAction

protected Action  maximizeAction

iconifyAction

protected Action  iconifyAction

restoreAction

protected Action  restoreAction

moveAction

protected Action  moveAction

sizeAction

protected Action  sizeAction

CLOSE_CMD

protected static final String  CLOSE_CMD

ICONIFY_CMD

protected static final String  ICONIFY_CMD

RESTORE_CMD

protected static final String  RESTORE_CMD

MAXIMIZE_CMD

protected static final String  MAXIMIZE_CMD

MOVE_CMD

protected static final String  MOVE_CMD

SIZE_CMD

protected static final String  SIZE_CMD
»ý¼ºÀÚÀÇ »ó¼¼

BasicInternalFrameTitlePane

public BasicInternalFrameTitlePane(JInternalFrame  f)
¸Þ¼ÒµåÀÇ »ó¼¼

installTitlePane

protected void installTitlePane()

addSubComponents

protected void addSubComponents()

createActions

protected void createActions()

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

installDefaults

protected void installDefaults()

uninstallDefaults

protected void uninstallDefaults()

createButtons

protected void createButtons()

setButtonIcons

protected void setButtonIcons()

assembleSystemMenu

protected void assembleSystemMenu()

addSystemMenuItems

protected void addSystemMenuItems(JMenu  systemMenu)

createSystemMenu

protected JMenu  createSystemMenu()

createSystemMenuBar

protected JMenuBar  createSystemMenuBar()

showSystemMenu

protected void showSystemMenu()

paintComponent

public void paintComponent(Graphics  g)
Ŭ·¡½º JComponent ÀÇ ±â¼ú:
UI delegateÀÌ null °¡ ¾Æ´Ñ °æ¿ì¿¡, UI delegateÀÇ paint ¸Þ¼Òµå¸¦ È£ÃâÇÕ´Ï´Ù. delegate¿¡´Â Graphics ¿ÀºêÁ§Æ®ÀÇ Ä«ÇǸ¦ °Ç³×ÁÖ¾î, ³ª¸ÓÁöÀÇ paint Äڵ忡 ´ëÇØ¼­ Ãë¼ÒÇÒ ¼ö ¾ø´Â º¯°æÀ» ÇÏÁö ¾Ê°Ô º¸È£ÇÕ´Ï´Ù (¿¹¸¦ µé¾î Graphics.translate µî).

ÀÌ ¸Þ¼Òµå¸¦ ¼­ºê Ŭ·¡½º¿¡¼­ ¿À¹ö¶óÀ̵å(override) ÇÏ´Â °æ¿ì´Â °Ç³×¹ÞÀº Graphics ÀÇ ¿ÀºêÁ§Æ®¿¡´Â ¿µ¼ÓÀûÀÎ º¯°æÀº ½Ç½ÃÇÏÁö ¾Ê°Ô ÇÕ´Ï´Ù. ¿¹¸¦ µé¾î Rectangle Ŭ¸³À̳ª º¯È¯Àº º¯°æÇÏÁö ¾Ê½À´Ï´Ù. ÀÌ·¯ÇÑ º¯°æÀÌ ÇÊ¿äÇÑ °æ¿ì´Â °Ç³×¹ÞÀº Graphics ·ÎºÎÅÍ »õ·Î¿î Graphics ¸¦ »ý¼ºÇØ, ±×°ÍÀ» º¯°æÇÏ´Â ÆíÀÌ ¿ëÀÌÇÕ´Ï´Ù. ÇÑÃþ ´õ »óÀ§ ¿ÀºêÁ§Æ®ÀÇ ±¸ÇöÀ» ½Ç½ÃÇÏÁö ¾Ê´Â °æ¿ì´Â ºÒÅõ¸í ÇÁ·ÎÆÛƼ¿¡ ÁÖÀÇÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. Áï ÀÌ ÄÄÆÛ³ÍÆ®°¡ ºÒÅõ¸íÇÑ °æ¿ì´Â ¹é±×¶ó¿îµå¿¡´Â ºÒÅõ¸íÇÏÁö ¾ÊÀº »öÀ» »ç¿ëÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ºÒÅõ¸í ÇÁ·ÎÆÛƼ¸¦ ¹«½ÃÇϸé È­¸éÀÌ º¸±â ³ª»µÁý´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ paintComponent
ÆÄ¶ó¹ÌÅÍ:
g - º¸È£ ´ë»óÀÇ Graphics ¿ÀºêÁ§Æ®
°ü·Ã Ç׸ñ:
JComponent.paint(java.awt.Graphics) , ComponentUI

paintTitleBackground

protected void paintTitleBackground(Graphics  g)
paintComponent ·ÎºÎÅÍ È£ÃâÇÕ´Ï´Ù. ŸÀÌÆ² ±¸È¹ÀÇ ¹é±×¶ó¿îµå¸¦ paint ÇÕ´Ï´Ù. ¸ðµç ÅØ½ºÆ®¿Í ¾ÆÀÌÄÜÀº ÀÌ ¹é±×¶ó¿îµå À§¿¡ Ç¥Çö µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
g - ¹é±×¶ó¿îµå¸¦ Ç¥Çö Çϱâ À§Çؼ­ »ç¿ëµÇ´Â ±×·¡ÇȽº
µµÀÔµÈ ¹öÁ¯:
1.4

getTitle

protected String  getTitle(String  text,
                          FontMetrics  fm,
                          int availTextWidth)

postClosingEvent

protected void postClosingEvent(JInternalFrame  frame)
Åë»óÀÇ Frame ¿Í °°°Ô ó¸®ÇÒ ¼ö ÀÖ°Ô, ÇÁ·¹ÀÓ¿¡ WINDOW_CLOSING ¿Í °°Àº À̺¥Æ®¸¦ Àü¼Û ÇÕ´Ï´Ù.


enableActions

protected void enableActions()

createPropertyChangeListener

protected PropertyChangeListener  createPropertyChangeListener()

createLayout

protected LayoutManager  createLayout()

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.