Runnable
public class AsyncBoxView.ChildState extends Object implements Runnable
Constructor | Description |
---|---|
ChildState(View v) |
Construct a child status.
|
Modifier and Type | Method | Description |
---|---|---|
View |
getChildView() |
Fetch the child view this record represents.
|
float |
getMajorOffset() |
Get the offset along the major axis.
|
float |
getMajorSpan() |
What is the span along the major axis.
|
float |
getMinorOffset() |
What is the offset along the minor axis
|
float |
getMinorSpan() |
What is the span along the minor axis.
|
boolean |
isLayoutValid() |
Has the child view been laid out.
|
void |
preferenceChanged(boolean width,
boolean height) |
Mark preferences changed for this child.
|
void |
run() |
Update the child state.
|
void |
setMajorOffset(float offs) |
This method should only be called by the ChildLocator,
it is simply a convenient place to hold the cached
location.
|
public ChildState(View v)
v
- the viewpublic View getChildView()
public void run()
This acquires a read lock on the associated document for the duration of the update to ensure the model is not changed while it is operating. The first thing to do would be to see if any work actually needs to be done. The following could have conceivably happened while the state was waiting to be updated:
run
in interface Runnable
Thread.run()
public float getMinorSpan()
public float getMinorOffset()
public float getMajorSpan()
public float getMajorOffset()
public void setMajorOffset(float offs)
offs
- offsetspublic void preferenceChanged(boolean width, boolean height)
width
- true if the width preference has changedheight
- true if the height preference has changedJComponent.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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps