AsyncBoxView (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
protected [AsyncBoxView.ChildState](../../../javax/swing/text/AsyncBoxView.ChildState.html "class in javax.swing.text")
[createChildState](../../../javax/swing/text/AsyncBoxView.html#createChildState-javax.swing.text.View-)([View](../../../javax/swing/text/View.html "class in javax.swing.text") v)
New ChildState records are created through this method to allow subclasses the extend the ChildState records to do/hold more
protected void
[flushRequirementChanges](../../../javax/swing/text/AsyncBoxView.html#flushRequirementChanges--)()
Publish the changes in preferences upward to the parent view.
float
[getBottomInset](../../../javax/swing/text/AsyncBoxView.html#getBottomInset--)()
Get the bottom part of the margin around the view.
[Shape](../../../java/awt/Shape.html "interface in java.awt")
[getChildAllocation](../../../javax/swing/text/AsyncBoxView.html#getChildAllocation-int-java.awt.Shape-)(int index,[Shape](../../../java/awt/Shape.html "interface in java.awt") a)
Fetches the allocation for the given child view.
protected [AsyncBoxView.ChildState](../../../javax/swing/text/AsyncBoxView.ChildState.html "class in javax.swing.text")
[getChildState](../../../javax/swing/text/AsyncBoxView.html#getChildState-int-)(int index)
Fetch the object representing the layout state of of the child at the given index.
protected boolean
[getEstimatedMajorSpan](../../../javax/swing/text/AsyncBoxView.html#getEstimatedMajorSpan--)()
Is the major span currently estimated?
protected float
[getInsetSpan](../../../javax/swing/text/AsyncBoxView.html#getInsetSpan-int-)(int axis)
Fetch the span along an axis that is taken up by the insets.
protected [LayoutQueue](../../../javax/swing/text/LayoutQueue.html "class in javax.swing.text")
[getLayoutQueue](../../../javax/swing/text/AsyncBoxView.html#getLayoutQueue--)()
Fetch the queue to use for layout.
float
[getLeftInset](../../../javax/swing/text/AsyncBoxView.html#getLeftInset--)()
Get the left part of the margin around the view.
int
[getMajorAxis](../../../javax/swing/text/AsyncBoxView.html#getMajorAxis--)()
Fetch the major axis (the axis the children are tiled along).
float
[getMaximumSpan](../../../javax/swing/text/AsyncBoxView.html#getMaximumSpan-int-)(int axis)
Determines the maximum span for this view along an axis.
float
[getMinimumSpan](../../../javax/swing/text/AsyncBoxView.html#getMinimumSpan-int-)(int axis)
Determines the minimum span for this view along an axis.
int
[getMinorAxis](../../../javax/swing/text/AsyncBoxView.html#getMinorAxis--)()
Fetch the minor axis (the axis orthogonal to the tiled axis).
int
[getNextVisualPositionFrom](../../../javax/swing/text/AsyncBoxView.html#getNextVisualPositionFrom-int-javax.swing.text.Position.Bias-java.awt.Shape-int-javax.swing.text.Position.Bias:A-)(int pos,[Position.Bias](../../../javax/swing/text/Position.Bias.html "class in javax.swing.text") b,[Shape](../../../java/awt/Shape.html "interface in java.awt") a, int direction,[Position.Bias](../../../javax/swing/text/Position.Bias.html "class in javax.swing.text")[] biasRet)
Provides a way to determine the next visually represented model location that one might place a caret.
float
[getPreferredSpan](../../../javax/swing/text/AsyncBoxView.html#getPreferredSpan-int-)(int axis)
Determines the preferred span for this view along an axis.
float
[getRightInset](../../../javax/swing/text/AsyncBoxView.html#getRightInset--)()
Get the right part of the margin around the view.
float
[getTopInset](../../../javax/swing/text/AsyncBoxView.html#getTopInset--)()
Get the top part of the margin around the view.
[View](../../../javax/swing/text/View.html "class in javax.swing.text")
[getView](../../../javax/swing/text/AsyncBoxView.html#getView-int-)(int n)
Gets the nth child view.
int
[getViewCount](../../../javax/swing/text/AsyncBoxView.html#getViewCount--)()
Returns the number of views in this view.
int
[getViewIndex](../../../javax/swing/text/AsyncBoxView.html#getViewIndex-int-javax.swing.text.Position.Bias-)(int pos,[Position.Bias](../../../javax/swing/text/Position.Bias.html "class in javax.swing.text") b)
Returns the child view index representing the given position in the model.
protected int
[getViewIndexAtPosition](../../../javax/swing/text/AsyncBoxView.html#getViewIndexAtPosition-int-javax.swing.text.Position.Bias-)(int pos,[Position.Bias](../../../javax/swing/text/Position.Bias.html "class in javax.swing.text") b)
Fetches the child view index representing the given position in the model.
protected void
[loadChildren](../../../javax/swing/text/AsyncBoxView.html#loadChildren-javax.swing.text.ViewFactory-)([ViewFactory](../../../javax/swing/text/ViewFactory.html "interface in javax.swing.text") f)
Loads all of the children to initialize the view.
protected void
[majorRequirementChange](../../../javax/swing/text/AsyncBoxView.html#majorRequirementChange-javax.swing.text.AsyncBoxView.ChildState-float-)([AsyncBoxView.ChildState](../../../javax/swing/text/AsyncBoxView.ChildState.html "class in javax.swing.text") cs, float delta)
Requirements changed along the major axis.
protected void
[minorRequirementChange](../../../javax/swing/text/AsyncBoxView.html#minorRequirementChange-javax.swing.text.AsyncBoxView.ChildState-)([AsyncBoxView.ChildState](../../../javax/swing/text/AsyncBoxView.ChildState.html "class in javax.swing.text") cs)
Requirements changed along the minor axis.
[Shape](../../../java/awt/Shape.html "interface in java.awt")
[modelToView](../../../javax/swing/text/AsyncBoxView.html#modelToView-int-java.awt.Shape-javax.swing.text.Position.Bias-)(int pos,[Shape](../../../java/awt/Shape.html "interface in java.awt") a,[Position.Bias](../../../javax/swing/text/Position.Bias.html "class in javax.swing.text") b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.
void
[paint](../../../javax/swing/text/AsyncBoxView.html#paint-java.awt.Graphics-java.awt.Shape-)([Graphics](../../../java/awt/Graphics.html "class in java.awt") g,[Shape](../../../java/awt/Shape.html "interface in java.awt") alloc)
Render the view using the given allocation and rendering surface.
void
[preferenceChanged](../../../javax/swing/text/AsyncBoxView.html#preferenceChanged-javax.swing.text.View-boolean-boolean-)([View](../../../javax/swing/text/View.html "class in javax.swing.text") child, boolean width, boolean height)
Child views can call this on the parent to indicate that the preference has changed and should be reconsidered for layout.
void
[replace](../../../javax/swing/text/AsyncBoxView.html#replace-int-int-javax.swing.text.View:A-)(int offset, int length,[View](../../../javax/swing/text/View.html "class in javax.swing.text")[] views)
Calls the superclass to update the child views, and updates the status records for the children.
void
[setBottomInset](../../../javax/swing/text/AsyncBoxView.html#setBottomInset-float-)(float i)
Set the bottom part of the margin around the view.
protected void
[setEstimatedMajorSpan](../../../javax/swing/text/AsyncBoxView.html#setEstimatedMajorSpan-boolean-)(boolean isEstimated)
Set the estimatedMajorSpan property that determines if the major span should be treated as being estimated.
void
[setLeftInset](../../../javax/swing/text/AsyncBoxView.html#setLeftInset-float-)(float i)
Set the left part of the margin around the view.
void
[setParent](../../../javax/swing/text/AsyncBoxView.html#setParent-javax.swing.text.View-)([View](../../../javax/swing/text/View.html "class in javax.swing.text") parent)
Sets the parent of the view.
void
[setRightInset](../../../javax/swing/text/AsyncBoxView.html#setRightInset-float-)(float i)
Set the right part of the margin around the view.
void
[setSize](../../../javax/swing/text/AsyncBoxView.html#setSize-float-float-)(float width, float height)
Sets the size of the view.
void
[setTopInset](../../../javax/swing/text/AsyncBoxView.html#setTopInset-float-)(float i)
Set the top part of the margin around the view.
protected void
[updateLayout](../../../javax/swing/text/AsyncBoxView.html#updateLayout-javax.swing.event.DocumentEvent.ElementChange-javax.swing.event.DocumentEvent-java.awt.Shape-)([DocumentEvent.ElementChange](../../../javax/swing/event/DocumentEvent.ElementChange.html "interface in javax.swing.event") ec,[DocumentEvent](../../../javax/swing/event/DocumentEvent.html "interface in javax.swing.event") e,[Shape](../../../java/awt/Shape.html "interface in java.awt") a)
Update the layout in response to receiving notification of change from the model.
int
[viewToModel](../../../javax/swing/text/AsyncBoxView.html#viewToModel-float-float-java.awt.Shape-javax.swing.text.Position.Bias:A-)(float x, float y,[Shape](../../../java/awt/Shape.html "interface in java.awt") a,[Position.Bias](../../../javax/swing/text/Position.Bias.html "class in javax.swing.text")[] biasReturn)
Provides a mapping from the view coordinate space to the logical coordinate space of the model.