javax.swing.plaf.synth
public class SynthContext extends Object
Constructor and Description |
---|
SynthContext(JComponent component,
Region region,
SynthStyle style,
int state)
Creates a new
SynthContext object. |
Modifier and Type | Method and Description |
---|---|
JComponent |
getComponent()
Returns the component that contains the region.
|
int |
getComponentState()
Returns the state of the component.
|
Region |
getRegion()
Returns the region that identifies this state.
|
SynthStyle |
getStyle()
Returns the style of the region.
|
public SynthContext(JComponent component, Region region, SynthStyle style, int state)
SynthContext
object.component
- the component for which this context is usedregion
- the region of the componentstyle
- the style associated with the componentstate
- a or'ed bitmask of the constants from SynthConstants
public JComponent getComponent()
public Region getRegion()
public SynthStyle getStyle()
public int getComponentState()
SynthConstants
.SynthConstants