APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.plaf.synth

public Class SynthDesktopIconUI

extends BasicDesktopIconUI
implements SynthUI, PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.plaf.synth.SynthUI, javax.swing.plaf.synth.SynthConstants
Imports
java.awt.BorderLayout, .Graphics, java.awt.event.ActionEvent, .ActionListener, java.beans.PropertyChangeEvent, .PropertyChangeListener, .PropertyVetoException, javax.swing.Icon, .JComponent, .JInternalFrame, .JPopupMenu, .JToggleButton, .ToolTipManager, .UIManager, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicDesktopIconUI

Provides the Synth L&F UI delegate for a minimized internal frame on a desktop.
Author
Joshua Outwater
Since
1.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private SynthDesktopIconUI.Handler
private SynthStyle
Inherited from javax.swing.plaf.basic.BasicDesktopIconUI:
desktopIconframeiconPane

Constructor Summary

AccessConstructor and Description
public
SynthDesktopIconUI()

Constructs a SynthDesktopIconUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

the UI object
createUI
(JComponent
component to create UI object for
c
)

Hides javax.swing.plaf.basic.BasicDesktopIconUI.createUI.

Creates a new UI object for the given component.

private int
public SynthContext
getContext(JComponent c)

Implements javax.swing.plaf.synth.SynthUI.getContext.

Returns the Context for the specified component.

private SynthContext
getContext(JComponent c, int state)

protected void
protected void
protected void
public void
paint(Graphics
the Graphics object used for painting
g
,
JComponent
the component being painted
c
)

Overrides javax.swing.plaf.ComponentUI.paint.

Paints the specified component according to the Look and Feel.

protected void
paint(SynthContext
context for the component being painted
context
,
Graphics
the Graphics object used for painting
g
)

Paints the specified component.

public void
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Paints the border.

public void
propertyChange(PropertyChangeEvent evt)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

protected void
protected void
protected void
public void
update(Graphics
the Graphics object used for painting
g
,
JComponent
the component being painted
c
)

Overrides javax.swing.plaf.ComponentUI.update.

Notifies this UI delegate to repaint the specified component.

private void
Inherited from javax.swing.plaf.basic.BasicDesktopIconUI:
createMouseInputListenerdeiconizegetInsetsgetMaximumSizegetMinimumSizegetPreferredSizeinstallUIuninstallUI

Field Detail

handlerback to summary
private SynthDesktopIconUI.Handler handler
styleback to summary
private SynthStyle style

Constructor Detail

SynthDesktopIconUIback to summary
public SynthDesktopIconUI()

Constructs a SynthDesktopIconUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicDesktopIconUI.createUI.

Creates a new UI object for the given component.

Parameters
c:JComponent

component to create UI object for

Returns:ComponentUI

the UI object

getComponentStateback to summary
private int getComponentState(JComponent c)
getContextback to summary
public SynthContext getContext(JComponent c)

Implements javax.swing.plaf.synth.SynthUI.getContext.

Doc from javax.swing.plaf.synth.SynthUI.getContext.

Returns the Context for the specified component.

Annotations
@Override
getContextback to summary
private SynthContext getContext(JComponent c, int state)
installComponentsback to summary
protected void installComponents()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.installComponents.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.installComponents.

Registers components.

Annotations
@Override
installDefaultsback to summary
protected void installDefaults()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.installDefaults.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.installDefaults.

Installs default properties.

Annotations
@Override
installListenersback to summary
protected void installListeners()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.installListeners.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.installListeners.

Registers listeners.

Annotations
@Override
paintback to summary
public void paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.ComponentUI.paint.

Paints the specified component according to the Look and Feel.

This method is not used by Synth Look and Feel. Painting is handled by the paint(SynthContext, Graphics) method.

Parameters
g:Graphics

the Graphics object used for painting

c:JComponent

the component being painted

Annotations
@Override
See Also
paint(SynthContext, Graphics)
paintback to summary
protected void paint(SynthContext context, Graphics g)

Paints the specified component. This implementation does nothing.

Parameters
context:SynthContext

context for the component being painted

g:Graphics

the Graphics object used for painting

See Also
update(Graphics, JComponent)
paintBorderback to summary
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Doc from javax.swing.plaf.synth.SynthUI.paintBorder.

Paints the border.

Annotations
@Override
propertyChangeback to summary
public void propertyChange(PropertyChangeEvent evt)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

uninstallComponentsback to summary
protected void uninstallComponents()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.uninstallComponents.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.uninstallComponents.

Unregisters components.

Annotations
@Override
uninstallDefaultsback to summary
protected void uninstallDefaults()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.uninstallDefaults.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.uninstallDefaults.

Uninstalls default properties.

Annotations
@Override
uninstallListenersback to summary
protected void uninstallListeners()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.uninstallListeners.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.uninstallListeners.

Unregisters listeners.

Annotations
@Override
updateback to summary
public void update(Graphics g, JComponent c)

Overrides javax.swing.plaf.ComponentUI.update.

Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the paint(SynthContext, Graphics) method.

In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint method.

Parameters
g:Graphics

the Graphics object used for painting

c:JComponent

the component being painted

Annotations
@Override
See Also
paint(SynthContext, Graphics)
updateStyleback to summary
private void updateStyle(JComponent c)
javax.swing.plaf.synth back to summary

private final Class SynthDesktopIconUI.Handler

extends Object
implements ActionListener
Class Inheritance
All Implemented Interfaces
java.awt.event.ActionListener, java.util.EventListener

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent evt)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Handlerback to summary
private Handler()

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent evt)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.