Region. A SynthContext should only be
considered valid for the duration
of the method it is passed to. In other words you should not cache
a SynthContext that is passed to you and expect it to
remain valid.
| Modifier and Type | Field and Description |
|---|---|
| private JComponent | |
| private Region | |
| private int | |
| private SynthStyle |
| Access | Constructor and Description |
|---|---|
| private | |
| public | SynthContext(JComponent
JComponent component, Region Identifies the portion of the JComponent region, SynthStyle Style associated with the component style, int State of the component as defined in SynthConstants. state)Creates a SynthContext with the specified values. |
| Modifier and Type | Method and Description |
|---|---|
| public JComponent | |
| public int | Returns: State of ComponentReturns the state of the widget, which is a bitmask of the
values defined in |
| pack-priv static SynthContext | |
| pack-priv static SynthContext | |
| pack-priv SynthPainter | |
| public Region | |
| public SynthStyle | Returns: SynthStyle associated with the region.Returns the style associated with this Region. |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void |
| component | back to summary |
|---|---|
| private JComponent component | |
| region | back to summary |
|---|---|
| private Region region | |
| state | back to summary |
|---|---|
| private int state | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| SynthContext | back to summary |
|---|---|
| private SynthContext() | |
| SynthContext | back to summary |
|---|---|
| public SynthContext(JComponent component, Region region, SynthStyle style, int state) Creates a SynthContext with the specified values. This is meant for subclasses and custom UI implementors. You very rarely need to construct a SynthContext, though some methods will take one.
| |
| getComponent | back to summary |
|---|---|
| public JComponent getComponent() Returns the hosting component containing the region.
| |
| getComponentState | back to summary |
|---|---|
| public int getComponentState() Returns the state of the widget, which is a bitmask of the
values defined in
| |
| getContext | back to summary |
|---|---|
| pack-priv static SynthContext getContext(JComponent c, SynthStyle style, int state) | |
| getContext | back to summary |
|---|---|
| pack-priv static SynthContext getContext(JComponent component, Region region, SynthStyle style, int state) | |
| getPainter | back to summary |
|---|---|
| pack-priv SynthPainter getPainter() Convenience method to get the Painter from the current SynthStyle. This will NEVER return null. | |
| getRegion | back to summary |
|---|---|
| public Region getRegion() Returns the Region identifying this state.
| |
| getStyle | back to summary |
|---|---|
| public SynthStyle getStyle() Returns the style associated with this Region.
| |
| isSubregion | back to summary |
|---|---|
| pack-priv boolean isSubregion() A convenience method for | |
| setComponentState | back to summary |
|---|---|
| pack-priv void setComponentState(int state) | |
| setStyle | back to summary |
|---|---|
| pack-priv void setStyle(SynthStyle style) | |