|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.plaf.basic.BasicInternalFrameTitlePane
public class BasicInternalFrameTitlePane
기본의 타이틀 바를 관리하는 클래스입니다.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans
패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder
를 참조해 주세요.
상자의 클래스의 개요 | |
---|---|
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 로부터 상속된 상자의 클래스/인터페이스 |
---|
JComponent.AccessibleJComponent |
클래스 java.awt. Container 로부터 상속된 상자의 클래스/인터페이스 |
---|
Container.AccessibleAWTContainer |
클래스 java.awt. Component 로부터 상속된 상자의 클래스/인터페이스 |
---|
Component.AccessibleAWTComponent , Component.BaselineResizeBehavior , 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 ()
|
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
필드의 상세 |
---|
protected JMenuBar menuBar
protected JButton iconButton
protected JButton maxButton
protected JButton closeButton
protected JMenu windowMenu
protected JInternalFrame frame
protected Color selectedTitleColor
protected Color selectedTextColor
protected Color notSelectedTitleColor
protected Color notSelectedTextColor
protected Icon maxIcon
protected Icon minIcon
protected Icon iconIcon
protected Icon closeIcon
protected PropertyChangeListener propertyChangeListener
protected Action closeAction
protected Action maximizeAction
protected Action iconifyAction
protected Action restoreAction
protected Action moveAction
protected Action sizeAction
protected static final String CLOSE_CMD
protected static final String ICONIFY_CMD
protected static final String RESTORE_CMD
protected static final String MAXIMIZE_CMD
protected static final String MOVE_CMD
protected static final String SIZE_CMD
생성자 의 상세 |
---|
public BasicInternalFrameTitlePane(JInternalFrame f)
메소드의 상세 |
---|
protected void installTitlePane()
protected void addSubComponents()
protected void createActions()
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected void createButtons()
protected void setButtonIcons()
protected void assembleSystemMenu()
protected void addSystemMenuItems(JMenu systemMenu)
protected JMenu createSystemMenu()
protected JMenuBar createSystemMenuBar()
protected void showSystemMenu()
public void paintComponent(Graphics g)
JComponent
의 기술:null
가 아닌 경우에, UI 위양의 페인트 메소드를 호출합니다. 위양에는 Graphics
객체의 카피를 건네주어, 나머지의 페인트 코드에 대해서 취소할 수 없는 변경을 하지 않게 보호합니다 (예를 들어 Graphics.translate
등).
이 메소드를 서브 클래스에서 오버라이드(override) 하는 경우는, 건네받은 Graphics
의 객체에는 영속적인 변경은 실시하지 않게 합니다. 예를 들어 Rectangle
클립이나 변환은 변경하지 않습니다. 이러한 변경이 필요한 경우는, 건네받은 Graphics
로부터 새로운 Graphics
를 생성해, 그것을 변경하는 편이 용이합니다. 한층 더 상위 객체의 구현을 실시하지 않는 경우는, 불투명 프로퍼티에 주의할 필요가 있습니다. 즉 이 컴퍼넌트가 불투명한 경우는, 백그라운드에는 불투명하지 않은 색을 사용할 필요가 있습니다. 불투명 프로퍼티을 무시하면 화면이 보기 나뻐집니다.
건네받은 Graphics
객체에는, 인스톨 되고 있는 변환 이외의 변환이 포함되어 있는 일이 있습니다. 이 경우, 다른 변환을 누적적으로 적용하면(자), 예기치 않은 결과가 생길 가능성이 있습니다.
JComponent
내의 paintComponent
g
- 보호 대상의 Graphics
객체JComponent.paint(java.awt.Graphics)
,
ComponentUI
protected void paintTitleBackground(Graphics g)
g
- 백그라운드를 draw 하기 위해서 사용되는 그래픽스protected String getTitle(String text, FontMetrics fm, int availTextWidth)
protected void postClosingEvent(JInternalFrame frame)
protected void enableActions()
protected PropertyChangeListener createPropertyChangeListener()
protected LayoutManager createLayout()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.