Top Description Fields Methods
javax.swing.plaf.synth

public Interface SynthUI

extends SynthConstants
Known Direct Implementers
javax.swing.plaf.synth.SynthViewportUI, sun.swing.plaf.synth.SynthFileChooserUI, javax.swing.plaf.synth.SynthMenuUI, javax.swing.plaf.synth.SynthButtonUI, javax.swing.plaf.synth.SynthColorChooserUI, javax.swing.plaf.synth.SynthComboBoxUI, javax.swing.plaf.synth.SynthDesktopIconUI, javax.swing.plaf.synth.SynthDesktopPaneUI, javax.swing.plaf.synth.SynthEditorPaneUI, javax.swing.plaf.synth.SynthInternalFrameTitlePane, javax.swing.plaf.synth.SynthInternalFrameUI, javax.swing.plaf.synth.SynthLabelUI, javax.swing.plaf.synth.SynthListUI, javax.swing.plaf.synth.SynthMenuBarUI, javax.swing.plaf.synth.SynthMenuItemUI, javax.swing.plaf.synth.SynthOptionPaneUI, javax.swing.plaf.synth.SynthPanelUI, javax.swing.plaf.synth.SynthPopupMenuUI, javax.swing.plaf.synth.SynthProgressBarUI, javax.swing.plaf.synth.SynthRootPaneUI, javax.swing.plaf.synth.SynthScrollBarUI, javax.swing.plaf.synth.SynthScrollPaneUI, javax.swing.plaf.synth.SynthSeparatorUI, javax.swing.plaf.synth.SynthSliderUI, javax.swing.plaf.synth.SynthSpinnerUI, javax.swing.plaf.synth.SynthSplitPaneUI, javax.swing.plaf.synth.SynthTabbedPaneUI, javax.swing.plaf.synth.SynthTableHeaderUI, javax.swing.plaf.synth.SynthTableUI, javax.swing.plaf.synth.SynthTextAreaUI, javax.swing.plaf.synth.SynthTextFieldUI, javax.swing.plaf.synth.SynthToolBarUI, javax.swing.plaf.synth.SynthToolTipUI, javax.swing.plaf.synth.SynthTreeUI
Imports
java.awt.Graphics, javax.swing.JComponent

SynthUI is used to fetch the SynthContext for a particular Component.
Author
Scott Violet
Since
1.7

Field Summary

Inherited from javax.swing.plaf.synth.SynthConstants:
DEFAULTDISABLEDENABLEDFOCUSEDMOUSE_OVERPRESSEDSELECTED

Method Summary

Modifier and TypeMethod and Description
public SynthContext

Returns:

SynthContext describing component.
getContext
(JComponent
Component requesting SynthContext.
c
)

Returns the Context for the specified component.

public void
paintBorder(SynthContext
a component context
context
,
Graphics
Graphics to paint on
g
,
int
the X coordinate
x
,
int
the Y coordinate
y
,
int
width of the border
w
,
int
height of the border
h
)

Paints the border.

Method Detail

getContextback to summary
public SynthContext getContext(JComponent c)

Returns the Context for the specified component.

Parameters
c:JComponent

Component requesting SynthContext.

Returns:SynthContext

SynthContext describing component.

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

Paints the border.

Parameters
context:SynthContext

a component context

g:Graphics

Graphics to paint on

x:int

the X coordinate

y:int

the Y coordinate

w:int

width of the border

h:int

height of the border