Package com.jtattoo.plaf.base
Class BaseInternalFrameTitlePane
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.plaf.basic.BasicInternalFrameTitlePane
com.jtattoo.plaf.base.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.TitlePaneLayoutNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intstatic final StringConstant CLOSE="Close"protected JPanelstatic final StringConstant ICONIFY="Iconify"protected booleanstatic final StringConstant MAXIMIZE="Maximize"static final StringConstant PAINT_ACTIVE="paintActive"protected Iconprotected intFields 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, windowMenuFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for BaseInternalFrameTitlePane. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidactivateFrame.protected voidprotected voidaddSystemMenuItems(JMenu systemMenu) protected voidprotected booleancenterButtons.protected voidprotected LayoutManagerprotected PropertyChangeListenervoiddeactivateFrame.protected voidprotected intgetHorSpacing.protected intgetIconWidth.protected intgetVerSpacing.protected voidbooleanisActive()isActive.protected booleanisMacStyleWindowDecoration.booleanisPalette.voidpaintBackground.voidvoidprotected intpaintIcon.voidpaintPalette.voidpaintText.protected voidvoidsetCustomizedTitlePanel(JPanel panel) setCustomizedTitlePanel.voidsetPalette(boolean b) setPalette.Methods inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane
createActions, createSystemMenu, createSystemMenuBar, getTitle, installListeners, installTitlePane, paintTitleBackground, postClosingEvent, showSystemMenu, uninstallDefaults, uninstallListenersMethods 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, updateUIMethods 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, validateTreeMethods 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- aJInternalFrameobject.
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
activateFrame
public void activateFrame()activateFrame.
-
addSubComponents
protected void addSubComponents()- Overrides:
addSubComponentsin classBasicInternalFrameTitlePane
-
addSystemMenuItems
- Overrides:
addSystemMenuItemsin classBasicInternalFrameTitlePane
-
assembleSystemMenu
protected void assembleSystemMenu()- Overrides:
assembleSystemMenuin classBasicInternalFrameTitlePane
-
centerButtons
protected boolean centerButtons()centerButtons.
- Returns:
- a boolean.
-
createButtons
protected void createButtons()- Overrides:
createButtonsin classBasicInternalFrameTitlePane
-
createLayout
- Overrides:
createLayoutin classBasicInternalFrameTitlePane
-
createPropertyChangeListener
- Overrides:
createPropertyChangeListenerin classBasicInternalFrameTitlePane
-
deactivateFrame
public void deactivateFrame()deactivateFrame.
-
enableActions
protected void enableActions()- Overrides:
enableActionsin classBasicInternalFrameTitlePane
-
getHorSpacing
protected int getHorSpacing()getHorSpacing.
- Returns:
- a
Integerobject.
-
getIconWidth
protected int getIconWidth()getIconWidth.
- Returns:
- a
Integerobject.
-
getVerSpacing
protected int getVerSpacing()getVerSpacing.
- Returns:
- a
Integerobject.
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin 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- aGraphicsobject.
-
paintBorder
- Overrides:
paintBorderin classJComponent
-
paintComponent
- Overrides:
paintComponentin classBasicInternalFrameTitlePane
-
paintIcon
paintIcon.
-
paintPalette
paintPalette.
- Parameters:
g- aGraphicsobject.
-
paintText
paintText.
-
setButtonIcons
protected void setButtonIcons()- Overrides:
setButtonIconsin classBasicInternalFrameTitlePane
-
setCustomizedTitlePanel
setCustomizedTitlePanel.
- Parameters:
panel- aJPanelobject.
-
setPalette
public void setPalette(boolean b) setPalette.
- Parameters:
b- a boolean.
-