javax.swing.text
public class AsyncBoxView.ChildState extends Object implements Runnable
Constructor Summary | |
---|---|
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. |
ChildState
object for the specified child
view.
Parameters: view the child view for which to create the state record
ChildState
represents
the layout state.
Returns: the child view for this child state object
Returns: the offset of the child view along the major layout axis
Returns: the span of the child view along the major layout axis
Returns: the offset of the child view along the minor layout axis
Returns: the span of the child view along the minor layout axis
true
if the current layout information is valid,
false
otherwise.
Returns: true
if the current layout information is valid,
false
otherwise
Parameters: width true
if the width preference has changed height true
if the height preference has changed
ChildState
.Parameters: offset the offset to set