|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.AsyncBoxView.ChildState
public class AsyncBoxView.ChildState
Represents the layout state of a child view.
Constructor Summary | |
---|---|
AsyncBoxView.ChildState(View view)
Creates a new ChildState object for the specified child
view. |
Method Summary | |
---|---|
View |
getChildView()
Returns the child view for which this ChildState represents
the layout state. |
float |
getMajorOffset()
Returns the offset of the child view along the major layout axis. |
float |
getMajorSpan()
Returns the span of the child view along the major layout axis. |
float |
getMinorOffset()
Returns the offset of the child view along the minor layout axis. |
float |
getMinorSpan()
Returns the span of the child view along the minor layout axis. |
boolean |
isLayoutValid()
Returns true if the current layout information is valid,
false otherwise. |
void |
preferenceChanged(boolean width,
boolean height)
Mark the preferences changed for that child. |
void |
run()
Performs the layout update for the child view managed by this ChildState . |
void |
setMajorOffset(float offset)
Sets the offset of the child view along the major layout axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncBoxView.ChildState(View view)
ChildState
object for the specified child
view.
view
- the child view for which to create the state recordMethod Detail |
---|
public View getChildView()
ChildState
represents
the layout state.
public boolean isLayoutValid()
true
if the current layout information is valid,
false
otherwise.
true
if the current layout information is valid,
false
otherwisepublic void run()
ChildState
.
run
in interface Runnable
public float getMinorSpan()
public float getMinorOffset()
public float getMajorSpan()
public float getMajorOffset()
public void setMajorOffset(float offset)
offset
- the offset to setpublic void preferenceChanged(boolean width, boolean height)
AsyncBoxView.preferenceChanged(javax.swing.text.View, boolean, boolean)
.
width
- true
if the width preference has changedheight
- true
if the height preference has changed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |