JavaTM 2 Platform
Standard Ed. 5.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¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ÀÌÈÄ, ¸ðµç JavaBeans Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº java.beans ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.


Áßø(Nested) Ŭ·¡½º °³¿ä
 class BasicInternalFrameTitlePane.CloseAction
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.IconifyAction
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.MaximizeAction
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.MoveAction
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.PropertyChangeHandler
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.RestoreAction
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.SizeAction
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.SystemMenuBar
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 class BasicInternalFrameTitlePane.TitlePaneLayout
          ÀÌ Å¬·¡½º´Â "protected" ³»ºÎ Ŭ·¡½º·Î¼­ Ãë±ÞÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JComponent.AccessibleJComponent
 
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Container.AccessibleAWTContainer
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
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 À§¾çÀÌ nullÀÌ ¾Æ´Ñ °æ¿ì¿¡ UI À§¾çÀÇ ÆäÀÎÆ® ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù.
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, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, 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
 

ÇʵåÀÇ »ó¼¼

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 À§¾çÀÌ nullÀÌ ¾Æ´Ñ °æ¿ì¿¡ UI À§¾çÀÇ ÆäÀÎÆ® ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù. À§¾ç¿¡´Â Graphics °´Ã¼ÀÇ º¹»çº»À» °Ç³×ÁÖ¾î, ³ª¸ÓÁöÀÇ ÆäÀÎÆ® Äڵ忡 ´ëÇؼ­ Ãë¼ÒÇÒ ¼ö ¾ø´Â º¯°æÀ» ÇÏÁö ¾Ê°Ô º¸È£ÇÕ´Ï´Ù (¿¹¸¦ µé¾î Graphics.translate µî).

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

°Ç³×¹ÞÀº Graphics °´Ã¼¿¡´Â ÀνºÅç µÇ°í ÀÖ´Â º¯È¯ ÀÌ¿ÜÀÇ º¯È¯ÀÌ Æ÷ÇԵǾî ÀÖ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì ´Ù¸¥ º¯È¯À» ´©ÀûÀûÀ¸·Î Àû¿ëÇϸé, ¿¹±âÄ¡ ¾ÊÀº °á°ú°¡ »ý±æ °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù.

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

paintTitleBackground

protected void paintTitleBackground(Graphics  g)
paintComponent ·ÎºÎÅÍ È£ÃâÇÕ´Ï´Ù. ŸÀÌƲ ±¸È¹ÀÇ ¹é±×¶ó¿îµå¸¦ ÆäÀÎÆ® ÇÕ´Ï´Ù. ¸ðµç ÅؽºÆ®¿ÍÀڽľÆÀÌÄÜÀº ÀÌ ¹é±×¶ó¿îµå À§¿¡ ·»´õ¸µ µË´Ï´Ù.

ÆĶó¹ÌÅÍ:
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
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.