javax.swing.text
public class AsyncBoxView.ChildState extends Object implements Runnable
Constructor and Description |
---|
AsyncBoxView.ChildState(View view)
Creates a new
ChildState object for the specified child
view. |
Modifier and Type | Method and Description |
---|---|
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.
|
public AsyncBoxView.ChildState(View view)
ChildState
object for the specified child
view.view
- the child view for which to create the state recordpublic 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
.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