java.lang.Object javax.swing.text.AsyncBoxView.ChildState
public class AsyncBoxView.ChildState
A record representing the layout state of a child view. It is runnable as a task on another thread. All access to the child view that is based upon a read-lock on the model should synchronize on this object (i.e. The layout thread and the GUI thread can both have a read lock on the model at the same time and are not protected from each other). Access to a child view hierarchy is serialized via synchronization on the ChildState instance.
Method Summary View
getChildView()
float
getMajorOffset()
float
getMajorSpan()
float
getMinorOffset()
float
getMinorSpan()
boolean
isLayoutValid()
void
preferenceChanged(boolean width, boolean height)
void
run()
void
setMajorOffset(float offs)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
AsyncBoxView.ChildState
public AsyncBoxView.ChildState(View v)
public View getChildView()
public void run()
This aquires 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)
public void preferenceChanged(boolean width, boolean height)
width
- true if the width preference has changed
height
- true if the height preference has changed
JComponent.revalidate()
public boolean isLayoutValid()
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4