public class AsyncBoxView.ChildState extends Object implements Runnable
| Constructor and Description | 
|---|
| ChildState(View v)
              构建小孩状态。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| View | getChildView()
              获取此记录代表的子视图 
             | 
| float | getMajorOffset()
              沿着主轴获得偏移 
             | 
| float | getMajorSpan()
              沿长轴的跨度是多少? 
             | 
| float | getMinorOffset()
              沿着短轴的偏移是多少? 
             | 
| float | getMinorSpan()
              沿着短轴的跨度是多少? 
             | 
| boolean | isLayoutValid()
              孩子的观点已被布置。 
             | 
| void | preferenceChanged(boolean width, boolean height)
              此孩子的标记偏好已更改。 
             | 
| void | run()
              更新子状态。 
             | 
| void | setMajorOffset(float offs)
              该方法只能由ChildLocator调用,它只是一个方便的地方来保存缓存的位置。 
             | 
public ChildState(View v)
public View getChildView()
public void run()
在更新期间,它会获取相关文档上的读取锁定,以确保模型在运行时不会更改。 首先要做的是看是否需要做任何工作。 以下可能会在国家等待更新时可能发生:
run在界面 
            Runnable 
           Thread.run() 
           public float getMinorSpan()
public float getMinorOffset()
public float getMajorSpan()
public float getMajorOffset()
public void setMajorOffset(float offs)
public void preferenceChanged(boolean width,
                              boolean height) 
          width - 如果宽度首选项已更改,则为true 
           height - 如果高度偏好已更改,则为true 
           JComponent.revalidate() 
           public boolean isLayoutValid()
 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.