public class SynthContext extends Object
Region变的瞬态对象。 
       A SynthContext应仅在传递给它的方法的持续时间内被认为是有效的。 
       换句话说,您不应该缓存传递给您的SynthContext ,并希望它保持有效。 
      | Constructor and Description | 
|---|
| SynthContext(JComponent component, Region region, SynthStyle style, int state)
              创建具有指定值的SynthContext。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| JComponent | getComponent()
              返回包含区域的托管组件。 
             | 
| int | getComponentState()
              返回窗口小部件的状态,这是 
              SynthConstants定义的值的位掩码。 | 
| Region | getRegion()
              返回标识此状态的区域。 
             | 
| SynthStyle | getStyle()
              返回与该区域相关联的样式。 
             | 
public SynthContext(JComponent component, Region region, SynthStyle style, int state)
component - JComponent 
           region - 标识JComponent的部分 
           style - 与组件关联的样式 
           state - SynthConstants中定义的组件的状态。 
           NullPointerException - 如果组件,样式的区域为空。 
           public JComponent getComponent()
public Region getRegion()
public SynthStyle getStyle()
public int getComponentState()
SynthConstants定义的值的位掩码。 
           的区域将至少在一个ENABLED , MOUSE_OVER , PRESSED或DISABLED 。 
          SynthConstants 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.