Package com.jtattoo.plaf
Class BaseInternalFrameTitlePane
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.plaf.basic.BasicInternalFrameTitlePane
com.jtattoo.plaf.BaseInternalFrameTitlePane
- All Implemented Interfaces:
ActionListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
- Direct Known Subclasses:
AcrylInternalFrameTitlePane
,AeroInternalFrameTitlePane
,AluminiumInternalFrameTitlePane
,BernsteinInternalFrameTitlePane
,FastInternalFrameTitlePane
,GraphiteInternalFrameTitlePane
,HiFiInternalFrameTitlePane
,LunaInternalFrameTitlePane
,McWinInternalFrameTitlePane
,MintInternalFrameTitlePane
,SmartInternalFrameTitlePane
,TextureInternalFrameTitlePane
public class BaseInternalFrameTitlePane
extends BasicInternalFrameTitlePane
implements ActionListener
This class is a modified copy of the
javax.swing.plaf.metal.MetalInternalFrameTitlePane
Class that manages a JLF title bar
Author Steve Wilson Author Brian Beck Author Michael Hagen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane
BasicInternalFrameTitlePane.CloseAction, BasicInternalFrameTitlePane.IconifyAction, BasicInternalFrameTitlePane.MaximizeAction, BasicInternalFrameTitlePane.MoveAction, BasicInternalFrameTitlePane.PropertyChangeHandler, BasicInternalFrameTitlePane.RestoreAction, BasicInternalFrameTitlePane.SizeAction, BasicInternalFrameTitlePane.SystemMenuBar, BasicInternalFrameTitlePane.TitlePaneLayout
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
static final String
Constant CLOSE="Close"protected JPanel
static final String
Constant ICONIFY="Iconify"protected boolean
static final String
Constant MAXIMIZE="Maximize"static final String
Constant PAINT_ACTIVE="paintActive"protected Icon
protected int
Fields inherited from class 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
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorDescriptionConstructor for BaseInternalFrameTitlePane. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
activateFrame.protected void
protected void
addSystemMenuItems
(JMenu systemMenu) protected void
protected boolean
centerButtons.protected void
protected LayoutManager
protected PropertyChangeListener
void
deactivateFrame.protected void
protected int
getHorSpacing.protected int
getIconWidth.protected int
getVerSpacing.protected void
boolean
isActive()
isActive.protected boolean
isMacStyleWindowDecoration.boolean
isPalette.void
paintBackground.void
void
protected int
paintIcon.void
paintPalette.void
paintText.protected void
void
setCustomizedTitlePanel
(JPanel panel) setCustomizedTitlePanel.void
setPalette
(boolean b) setPalette.Methods inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane
createActions, createSystemMenu, createSystemMenuBar, getTitle, installListeners, installTitlePane, paintTitleBackground, postClosingEvent, showSystemMenu, uninstallDefaults, uninstallListeners
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, 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
Methods inherited from class 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, transferFocusDownCycle, validate, validateTree
Methods inherited from class 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, getAccessibleContext, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
PAINT_ACTIVE
Constant PAINT_ACTIVE="paintActive"- See Also:
-
ICONIFY
Constant ICONIFY="Iconify"- See Also:
-
MAXIMIZE
Constant MAXIMIZE="Maximize"- See Also:
-
CLOSE
Constant CLOSE="Close"- See Also:
-
isPalette
protected boolean isPalette -
paletteCloseIcon
-
paletteTitleHeight
protected int paletteTitleHeight -
buttonsWidth
protected int buttonsWidth -
customTitlePanel
-
-
Constructor Details
-
BaseInternalFrameTitlePane
Constructor for BaseInternalFrameTitlePane.
- Parameters:
f
- aJInternalFrame
object.
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
activateFrame
public void activateFrame()activateFrame.
-
addSubComponents
protected void addSubComponents()- Overrides:
addSubComponents
in classBasicInternalFrameTitlePane
-
addSystemMenuItems
- Overrides:
addSystemMenuItems
in classBasicInternalFrameTitlePane
-
assembleSystemMenu
protected void assembleSystemMenu()- Overrides:
assembleSystemMenu
in classBasicInternalFrameTitlePane
-
centerButtons
protected boolean centerButtons()centerButtons.
- Returns:
- a boolean.
-
createButtons
protected void createButtons()- Overrides:
createButtons
in classBasicInternalFrameTitlePane
-
createLayout
- Overrides:
createLayout
in classBasicInternalFrameTitlePane
-
createPropertyChangeListener
- Overrides:
createPropertyChangeListener
in classBasicInternalFrameTitlePane
-
deactivateFrame
public void deactivateFrame()deactivateFrame.
-
enableActions
protected void enableActions()- Overrides:
enableActions
in classBasicInternalFrameTitlePane
-
getHorSpacing
protected int getHorSpacing()getHorSpacing.
- Returns:
- a
Integer
object.
-
getIconWidth
protected int getIconWidth()getIconWidth.
- Returns:
- a
Integer
object.
-
getVerSpacing
protected int getVerSpacing()getVerSpacing.
- Returns:
- a
Integer
object.
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicInternalFrameTitlePane
-
isActive
public boolean isActive()isActive.
- Returns:
- a boolean.
-
isMacStyleWindowDecoration
protected boolean isMacStyleWindowDecoration()isMacStyleWindowDecoration.
- Returns:
- a boolean.
-
isPalette
public boolean isPalette()isPalette.
- Returns:
- a boolean.
-
paintBackground
paintBackground.
- Parameters:
g
- aGraphics
object.
-
paintBorder
- Overrides:
paintBorder
in classJComponent
-
paintComponent
- Overrides:
paintComponent
in classBasicInternalFrameTitlePane
-
paintIcon
paintIcon.
-
paintPalette
paintPalette.
- Parameters:
g
- aGraphics
object.
-
paintText
paintText.
-
setButtonIcons
protected void setButtonIcons()- Overrides:
setButtonIcons
in classBasicInternalFrameTitlePane
-
setCustomizedTitlePanel
setCustomizedTitlePanel.
- Parameters:
panel
- aJPanel
object.
-
setPalette
public void setPalette(boolean b) setPalette.
- Parameters:
b
- a boolean.
-