|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.synth.SynthContext
public class SynthContext
Contains some contextual information about a region. The information passed in objects of this class can only be considered valid during the method call that it was passed to.
Constructor Summary | |
---|---|
SynthContext(JComponent component,
Region region,
SynthStyle style,
int state)
Creates a new SynthContext object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
public JComponent getComponent()
public Region getRegion()
public SynthStyle getStyle()
public int getComponentState()
SynthConstants
.
SynthConstants
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |