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

public Class SynthInternalFrameUI

extends BasicInternalFrameUI
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.*, java.awt.event.*, javax.swing.*, javax.swing.plaf.*, javax.swing.plaf.basic.BasicInternalFrameUI, java.beans.*

Provides the Synth L&F UI delegate for javax.swing.JInternalFrame.
Authors
David Kloba, Joshua Outwater, Rich Schiavi
Since
1.7

Field Summary

Modifier and TypeField and Description
private SynthStyle
Inherited from javax.swing.plaf.basic.BasicInternalFrameUI:
borderListenercomponentListenereastPaneframeglassPaneDispatcherinternalFrameLayoutnorthPaneopenMenuKeypropertyChangeListenersouthPanetitlePanewestPane

Constructor Summary

AccessConstructor and Description
protected
SynthInternalFrameUI(JInternalFrame
an internal frame
b
)

Constructs a SynthInternalFrameUI.

Method Summary

Modifier and TypeMethod and Description
protected ComponentListener
protected JComponent
public static ComponentUI

Returns:

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

Hides javax.swing.plaf.basic.BasicInternalFrameUI.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)

public 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.BasicInternalFrameUI:
activateFramecloseFramecreateBorderListenercreateDesktopManagercreateEastPanecreateGlassPaneDispatchercreateInternalFrameListenercreateLayoutManagercreatePropertyChangeListenercreateSouthPanecreateWestPanedeactivateFramedeiconifyFramedeinstallMouseHandlersgetDesktopManagergetEastPanegetMaximumSizegetMinimumSizegetNorthPanegetPreferredSizegetSouthPanegetWestPaneiconifyFrameinstallComponentsinstallKeyboardActionsinstallMouseHandlersinstallUIisKeyBindingActiveisKeyBindingRegisteredmaximizeFrameminimizeFramereplacePanesetEastPanesetKeyBindingActivesetKeyBindingRegisteredsetNorthPanesetSouthPanesetupMenuCloseKeysetupMenuOpenKeysetWestPaneuninstallKeyboardActionsuninstallUI

Field Detail

styleback to summary
private SynthStyle style

Constructor Detail

SynthInternalFrameUIback to summary
protected SynthInternalFrameUI(JInternalFrame b)

Constructs a SynthInternalFrameUI.

Parameters
b:JInternalFrame

an internal frame

Method Detail

createComponentListenerback to summary
protected ComponentListener createComponentListener()

Overrides javax.swing.plaf.basic.BasicInternalFrameUI.createComponentListener.

Doc from javax.swing.plaf.basic.BasicInternalFrameUI.createComponentListener.

Creates a component listener.

Annotations
@Override
createNorthPaneback to summary
protected JComponent createNorthPane(JInternalFrame w)

Overrides javax.swing.plaf.basic.BasicInternalFrameUI.createNorthPane.

Doc from javax.swing.plaf.basic.BasicInternalFrameUI.createNorthPane.

Creates the north pane.

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent b)

Hides javax.swing.plaf.basic.BasicInternalFrameUI.createUI.

Creates a new UI object for the given component.

Parameters
b: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)
installDefaultsback to summary
public void installDefaults()

Overrides javax.swing.plaf.basic.BasicInternalFrameUI.installDefaults.

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

Installs the defaults.

Annotations
@Override
installListenersback to summary
protected void installListeners()

Overrides javax.swing.plaf.basic.BasicInternalFrameUI.installListeners.

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

Installs the 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.

Annotations
@Override
uninstallComponentsback to summary
protected void uninstallComponents()

Overrides javax.swing.plaf.basic.BasicInternalFrameUI.uninstallComponents.

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

Uninstalls the components.

Annotations
@Override
uninstallDefaultsback to summary
protected void uninstallDefaults()

Overrides javax.swing.plaf.basic.BasicInternalFrameUI.uninstallDefaults.

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

Uninstalls the defaults.

Annotations
@Override
uninstallListenersback to summary
protected void uninstallListeners()

Overrides javax.swing.plaf.basic.BasicInternalFrameUI.uninstallListeners.

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

Uninstalls the 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)