APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifDesktopPaneUI

extends BasicDesktopPaneUI
Class Inheritance
Imports
java.awt.Color, .Component, .Dimension, .Graphics, .Insets, .Point, .Rectangle, java.io.Serializable, javax.swing.DefaultDesktopManager, .JComponent, .JDesktopPane, .JInternalFrame, .JLayeredPane, .SwingUtilities, javax.swing.plaf.ComponentUI, .UIResource

Motif desktop pane.
Author
David Kloba

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
MotifDesktopPaneUI.DragPane

///////////////////////////////////////////////////////////////////////////////// DragPane class /////////////////////////////////////////////////////////////////////////////////

private static class
MotifDesktopPaneUI.MotifDesktopManager

///////////////////////////////////////////////////////////////////////////////// MotifDesktopManager class /////////////////////////////////////////////////////////////////////////////////

Field Summary

Inherited from javax.swing.plaf.basic.BasicDesktopPaneUI:
closeKeydesktopdesktopManagermaximizeKeyminimizeKeynavigateKeynavigateKey2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI
createUI(JComponent d)

Hides javax.swing.plaf.basic.BasicDesktopPaneUI.createUI.

Constructs a new instance of BasicDesktopPaneUI.

public Insets
protected void
Inherited from javax.swing.plaf.basic.BasicDesktopPaneUI:
createPropertyChangeListenergetMaximumSizegetMinimumSizegetPreferredSizeinstallDefaultsinstallKeyboardActionsinstallListenersinstallUIpaintregisterKeyboardActionsuninstallDefaultsuninstallDesktopManageruninstallKeyboardActionsuninstallListenersuninstallUIunregisterKeyboardActions

Constructor Detail

MotifDesktopPaneUIback to summary
public MotifDesktopPaneUI()

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent d)

Hides javax.swing.plaf.basic.BasicDesktopPaneUI.createUI.

Doc from javax.swing.plaf.basic.BasicDesktopPaneUI.createUI.

Constructs a new instance of BasicDesktopPaneUI.

getInsetsback to summary
public Insets getInsets(JComponent c)
installDesktopManagerback to summary
protected void installDesktopManager()

Overrides javax.swing.plaf.basic.BasicDesktopPaneUI.installDesktopManager.

Doc from javax.swing.plaf.basic.BasicDesktopPaneUI.installDesktopManager.

Installs desktop manager.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private Class MotifDesktopPaneUI.DragPane

extends JComponent
Class Inheritance
Annotations
@SuppressWarnings:serial

///////////////////////////////////////////////////////////////////////////////// DragPane class /////////////////////////////////////////////////////////////////////////////////

Field Summary

Inherited from javax.swing.JComponent:
listenerListTOOL_TIP_TEXT_KEYuiUNDEFINED_CONDITIONWHEN_ANCESTOR_OF_FOCUSED_COMPONENTWHEN_FOCUSEDWHEN_IN_FOCUSED_WINDOW

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Invoked by Swing to draw components.

Inherited from javax.swing.JComponent:
addAncestorListeneraddNotifyaddVetoableChangeListenercomputeVisibleRectcontainscreateToolTipdisableenablefirePropertyChangefirePropertyChangefirePropertyChangefireVetoableChangegetActionForKeyStrokegetActionMapgetAlignmentXgetAlignmentYgetAncestorListenersgetAutoscrollsgetBaselinegetBaselineResizeBehaviorgetBordergetBoundsgetClientPropertygetComponentGraphicsgetComponentPopupMenugetConditionForKeyStrokegetDebugGraphicsOptionsgetDefaultLocalegetFontMetricsgetGraphicsgetHeightgetInheritsPopupMenugetInputMapgetInputMapgetInputVerifiergetInsetsgetInsetsgetListenersgetLocationgetMaximumSizegetMinimumSizegetNextFocusableComponentgetPopupLocationgetPreferredSizegetRegisteredKeyStrokesgetRootPanegetSizegetToolTipLocationgetToolTipTextgetToolTipTextgetTopLevelAncestorgetTransferHandlergetUIgetUIClassIDgetVerifyInputWhenFocusTargetgetVetoableChangeListenersgetVisibleRectgetWidthgetXgetYgrabFocushideisDoubleBufferedisLightweightComponentisManagingFocusisOpaqueisOptimizedDrawingEnabledisPaintingForPrintisPaintingOriginisPaintingTileisRequestFocusEnabledisValidateRootpaintBorderpaintChildrenpaintComponentpaintImmediatelypaintImmediatelyparamStringprintprintAllprintBorderprintChildrenprintComponentprocessComponentKeyEventprocessKeyBindingprocessKeyEventprocessMouseEventprocessMouseMotionEventputClientPropertyregisterKeyboardActionregisterKeyboardActionremoveAncestorListenerremoveNotifyremoveVetoableChangeListenerrepaintrepaintrequestDefaultFocusrequestFocusrequestFocusrequestFocusInWindowrequestFocusInWindowresetKeyboardActionsreshaperevalidatescrollRectToVisiblesetActionMapsetAlignmentXsetAlignmentYsetAutoscrollssetBackgroundsetBordersetComponentPopupMenusetDebugGraphicsOptionssetDefaultLocalesetDoubleBufferedsetEnabledsetFocusTraversalKeyssetFontsetForegroundsetInheritsPopupMenusetInputMapsetInputVerifiersetMaximumSizesetMinimumSizesetNextFocusableComponentsetOpaquesetPreferredSizesetRequestFocusEnabledsetToolTipTextsetTransferHandlersetUIsetVerifyInputWhenFocusTargetsetVisibleunregisterKeyboardActionupdateupdateUI

Constructor Detail

DragPaneback to summary
private DragPane()

Method Detail

paintback to summary
public void paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Doc from javax.swing.JComponent.paint.

Invoked by Swing to draw components. Applications should not invoke paint directly, but should instead use the repaint method to schedule the component for redrawing.

This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private Class MotifDesktopPaneUI.MotifDesktopManager

extends DefaultDesktopManager
implements Serializable, UIResource
Class Inheritance
All Implemented Interfaces
javax.swing.plaf.UIResource, java.io.Serializable
Annotations
@SuppressWarnings:serial

///////////////////////////////////////////////////////////////////////////////// MotifDesktopManager class /////////////////////////////////////////////////////////////////////////////////

Field Summary

Modifier and TypeField and Description
pack-priv JComponent
pack-priv int
pack-priv int
private transient JLayeredPane
pack-priv boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected void
adjustBoundsForIcon(JInternalFrame.JDesktopIcon icon, int x, int y)

Change positions of icon so that it doesn't overlap other icons.

protected void
adjustIcons(JDesktopPane desktop)

Change positions of icons in the desktop pane so that they do not overlap

public void
beginDraggingFrame(JComponent f)

Overrides javax.swing.DefaultDesktopManager.beginDraggingFrame.

Implements javax.swing.DesktopManager.beginDraggingFrame.

This method is normally called when the user has indicated that they will begin dragging a component around.

public void
beginResizingFrame(JComponent f, int direction)

Overrides javax.swing.DefaultDesktopManager.beginResizingFrame.

Implements javax.swing.DesktopManager.beginResizingFrame.

This method is normally called when the user has indicated that they will begin resizing the frame.

public void
dragFrame(JComponent f, int newX, int newY)

Overrides javax.swing.DefaultDesktopManager.dragFrame.

Implements javax.swing.DesktopManager.dragFrame.

Moves the visible location of the frame being dragged to the location specified.

public void
endDraggingFrame(JComponent f)

Overrides javax.swing.DefaultDesktopManager.endDraggingFrame.

Implements javax.swing.DesktopManager.endDraggingFrame.

This method signals the end of the dragging session.

public void
endResizingFrame(JComponent f)

Overrides javax.swing.DefaultDesktopManager.endResizingFrame.

Implements javax.swing.DesktopManager.endResizingFrame.

This method signals the end of the resize session.

protected JInternalFrame.JDesktopIcon
getIconAt(JDesktopPane desktop, JInternalFrame.JDesktopIcon icon, int x, int y)

public void
iconifyFrame(JInternalFrame f)

Overrides javax.swing.DefaultDesktopManager.iconifyFrame.

Implements javax.swing.DesktopManager.iconifyFrame.

Removes the frame from its parent and adds its desktopIcon to the parent.

public void
resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)

Overrides javax.swing.DefaultDesktopManager.resizeFrame.

Implements javax.swing.DesktopManager.resizeFrame.

Calls setBoundsForFrame with the new values.

public void
setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)

Overrides javax.swing.DefaultDesktopManager.setBoundsForFrame.

Implements javax.swing.DesktopManager.setBoundsForFrame.

This moves the JComponent and repaints the damaged areas.

Inherited from javax.swing.DefaultDesktopManager:
activateFramecloseFramedeactivateFramedeiconifyFramegetBoundsForIconOfgetPreviousBoundsmaximizeFrameminimizeFrameopenFrameremoveIconForsetPreviousBoundssetWasIconwasIcon

Field Detail

dragPaneback to summary
pack-priv JComponent dragPane
iconHeightback to summary
pack-priv int iconHeight
iconWidthback to summary
pack-priv int iconWidth
layeredPaneForDragPaneback to summary
private transient JLayeredPane layeredPaneForDragPane
usingDragPaneback to summary
pack-priv boolean usingDragPane

Constructor Detail

MotifDesktopManagerback to summary
private MotifDesktopManager()

Method Detail

adjustBoundsForIconback to summary
protected void adjustBoundsForIcon(JInternalFrame.JDesktopIcon icon, int x, int y)

Change positions of icon so that it doesn't overlap other icons.

adjustIconsback to summary
protected void adjustIcons(JDesktopPane desktop)

Change positions of icons in the desktop pane so that they do not overlap

beginDraggingFrameback to summary
public void beginDraggingFrame(JComponent f)

Overrides javax.swing.DefaultDesktopManager.beginDraggingFrame.

Implements javax.swing.DesktopManager.beginDraggingFrame.

Doc from javax.swing.DesktopManager.beginDraggingFrame.

This method is normally called when the user has indicated that they will begin dragging a component around. This method should be called prior to any dragFrame() calls to allow the DesktopManager to prepare any necessary state. Normally f will be a JInternalFrame.

Annotations
@Override
beginResizingFrameback to summary
public void beginResizingFrame(JComponent f, int direction)

Overrides javax.swing.DefaultDesktopManager.beginResizingFrame.

Implements javax.swing.DesktopManager.beginResizingFrame.

Doc from javax.swing.DesktopManager.beginResizingFrame.

This method is normally called when the user has indicated that they will begin resizing the frame. This method should be called prior to any resizeFrame() calls to allow the DesktopManager to prepare any necessary state. Normally f will be a JInternalFrame.

Annotations
@Override
dragFrameback to summary
public void dragFrame(JComponent f, int newX, int newY)

Overrides javax.swing.DefaultDesktopManager.dragFrame.

Implements javax.swing.DesktopManager.dragFrame.

Doc from javax.swing.DefaultDesktopManager.dragFrame.

Moves the visible location of the frame being dragged to the location specified. The means by which this occurs can vary depending on the dragging algorithm being used. The actual logical location of the frame might not change until endDraggingFrame is called.

Annotations
@Override
endDraggingFrameback to summary
public void endDraggingFrame(JComponent f)

Overrides javax.swing.DefaultDesktopManager.endDraggingFrame.

Implements javax.swing.DesktopManager.endDraggingFrame.

Doc from javax.swing.DesktopManager.endDraggingFrame.

This method signals the end of the dragging session. Any state maintained by the DesktopManager can be removed here. Normally f will be a JInternalFrame.

Annotations
@Override
endResizingFrameback to summary
public void endResizingFrame(JComponent f)

Overrides javax.swing.DefaultDesktopManager.endResizingFrame.

Implements javax.swing.DesktopManager.endResizingFrame.

Doc from javax.swing.DesktopManager.endResizingFrame.

This method signals the end of the resize session. Any state maintained by the DesktopManager can be removed here. Normally f will be a JInternalFrame.

Annotations
@Override
getIconAtback to summary
protected JInternalFrame.JDesktopIcon getIconAt(JDesktopPane desktop, JInternalFrame.JDesktopIcon icon, int x, int y)
iconifyFrameback to summary
public void iconifyFrame(JInternalFrame f)

Overrides javax.swing.DefaultDesktopManager.iconifyFrame.

Implements javax.swing.DesktopManager.iconifyFrame.

Doc from javax.swing.DefaultDesktopManager.iconifyFrame.

Removes the frame from its parent and adds its desktopIcon to the parent.

Annotations
@Override
resizeFrameback to summary
public void resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)

Overrides javax.swing.DefaultDesktopManager.resizeFrame.

Implements javax.swing.DesktopManager.resizeFrame.

Doc from javax.swing.DefaultDesktopManager.resizeFrame.

Calls setBoundsForFrame with the new values.

Annotations
@Override
setBoundsForFrameback to summary
public void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)

Overrides javax.swing.DefaultDesktopManager.setBoundsForFrame.

Implements javax.swing.DesktopManager.setBoundsForFrame.

Doc from javax.swing.DefaultDesktopManager.setBoundsForFrame.

This moves the JComponent and repaints the damaged areas.

Annotations
@Override