📄 flowview.html
字号:
Gives notification from the document that attributes were changed in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract <A HREF="../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#createRow()">createRow</A></B>()</CODE><BR> Create a View that should be used to hold a a rows worth of children in a flow.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#getFlowAxis()">getFlowAxis</A></B>()</CODE><BR> Fetch the axis along which views should be flowed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#getFlowSpan(int)">getFlowSpan</A></B>(int index)</CODE><BR> Fetch the constraining span to flow against for the given child index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#getFlowStart(int)">getFlowStart</A></B>(int index)</CODE><BR> Fetch the location along the flow axis that the flow span will start at.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#getViewIndexAtPosition(int)">getViewIndexAtPosition</A></B>(int pos)</CODE><BR> Fetches the child view index representing the given position in the model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A> changes, <A HREF="../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> Gives notification that something was inserted into the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#layout(int, int)">layout</A></B>(int width, int height)</CODE><BR> Lays out the children.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</A></B>(<A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> Loads all of the children to initialize the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/FlowView.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A> changes, <A HREF="../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> Gives notification that something was removed from the document in a location that this view is responsible for.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.text.BoxView"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/text/BoxView.html#baselineLayout(int, int, int[], int[])">baselineLayout</A>, <A HREF="../../../javax/swing/text/BoxView.html#baselineRequirements(int, javax.swing.SizeRequirements)">baselineRequirements</A>, <A HREF="../../../javax/swing/text/BoxView.html#calculateMajorAxisRequirements(int, javax.swing.SizeRequirements)">calculateMajorAxisRequirements</A>, <A HREF="../../../javax/swing/text/BoxView.html#childAllocation(int, java.awt.Rectangle)">childAllocation</A>, <A HREF="../../../javax/swing/text/BoxView.html#flipEastAndWestAtEnds(int, javax.swing.text.Position.Bias)">flipEastAndWestAtEnds</A>, <A HREF="../../../javax/swing/text/BoxView.html#forwardUpdate(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">forwardUpdate</A>, <A HREF="../../../javax/swing/text/BoxView.html#getAlignment(int)">getAlignment</A>, <A HREF="../../../javax/swing/text/BoxView.html#getAxis()">getAxis</A>, <A HREF="../../../javax/swing/text/BoxView.html#getChildAllocation(int, java.awt.Shape)">getChildAllocation</A>, <A HREF="../../../javax/swing/text/BoxView.html#getHeight()">getHeight</A>, <A HREF="../../../javax/swing/text/BoxView.html#getMaximumSpan(int)">getMaximumSpan</A>, <A HREF="../../../javax/swing/text/BoxView.html#getMinimumSpan(int)">getMinimumSpan</A>, <A HREF="../../../javax/swing/text/BoxView.html#getOffset(int, int)">getOffset</A>, <A HREF="../../../javax/swing/text/BoxView.html#getPreferredSpan(int)">getPreferredSpan</A>, <A HREF="../../../javax/swing/text/BoxView.html#getResizeWeight(int)">getResizeWeight</A>, <A HREF="../../../javax/swing/text/BoxView.html#getSpan(int, int)">getSpan</A>, <A HREF="../../../javax/swing/text/BoxView.html#getViewAtPoint(int, int, java.awt.Rectangle)">getViewAtPoint</A>, <A HREF="../../../javax/swing/text/BoxView.html#getWidth()">getWidth</A>, <A HREF="../../../javax/swing/text/BoxView.html#isAfter(int, int, java.awt.Rectangle)">isAfter</A>, <A HREF="../../../javax/swing/text/BoxView.html#isAllocationValid()">isAllocationValid</A>, <A HREF="../../../javax/swing/text/BoxView.html#isBefore(int, int, java.awt.Rectangle)">isBefore</A>, <A HREF="../../../javax/swing/text/BoxView.html#layoutChanged(int)">layoutChanged</A>, <A HREF="../../../javax/swing/text/BoxView.html#layoutMajorAxis(int, int, int[], int[])">layoutMajorAxis</A>, <A HREF="../../../javax/swing/text/BoxView.html#layoutMinorAxis(int, int, int[], int[])">layoutMinorAxis</A>, <A HREF="../../../javax/swing/text/BoxView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A>, <A HREF="../../../javax/swing/text/BoxView.html#paint(java.awt.Graphics, java.awt.Shape)">paint</A>, <A HREF="../../../javax/swing/text/BoxView.html#paintChild(java.awt.Graphics, java.awt.Rectangle, int)">paintChild</A>, <A HREF="../../../javax/swing/text/BoxView.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</A>, <A HREF="../../../javax/swing/text/BoxView.html#replace(int, int, javax.swing.text.View[])">replace</A>, <A HREF="../../../javax/swing/text/BoxView.html#setAxis(int)">setAxis</A>, <A HREF="../../../javax/swing/text/BoxView.html#setSize(float, float)">setSize</A>, <A HREF="../../../javax/swing/text/BoxView.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])">viewToModel</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.text.CompositeView"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#getBottomInset()">getBottomInset</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getInsideAllocation(java.awt.Shape)">getInsideAllocation</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getLeftInset()">getLeftInset</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getNextEastWestVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextEastWestVisualPositionFrom</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getNextNorthSouthVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextNorthSouthVisualPositionFrom</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getNextVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextVisualPositionFrom</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getRightInset()">getRightInset</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getTopInset()">getTopInset</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getView(int)">getView</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getViewAtPosition(int, java.awt.Rectangle)">getViewAtPosition</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getViewCount()">getViewCount</A>, <A HREF="../../../javax/swing/text/CompositeView.html#getViewIndex(int, javax.swing.text.Position.Bias)">getViewIndex</A>, <A HREF="../../../javax/swing/text/CompositeView.html#modelToView(int, javax.swing.text.Position.Bias, int, javax.swing.text.Position.Bias, java.awt.Shape)">modelToView</A>, <A HREF="../../../javax/swing/text/CompositeView.html#setInsets(short, short, short, short)">setInsets</A>, <A HREF="../../../javax/swing/text/CompositeView.html#setParagraphInsets(javax.swing.text.AttributeSet)">setParagraphInsets</A>, <A HREF="../../../javax/swing/text/CompositeView.html#setParent(javax.swing.text.View)">setParent</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.text.View"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/View.html">View</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/text/View.html#append(javax.swing.text.View)">append</A>, <A HREF="../../../javax/swing/text/View.html#breakView(int, int, float, float)">breakView</A>, <A HREF="../../../javax/swing/text/View.html#createFragment(int, int)">createFragment</A>, <A HREF="../../../javax/swing/text/View.html#forwardUpdateToView(javax.swing.text.View, javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">forwardUpdateToView</A>, <A HREF="../../../javax/swing/text/View.html#getAttributes()">getAttributes</A>, <A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)">getBreakWeight</A>, <A HREF="../../../javax/swing/text/View.html#getContainer()">getContainer</A>, <A HREF="../../../javax/swing/text/View.html#getDocument()">getDocument</A>, <A HREF="../../../javax/swing/text/View.html#getElement()">getElement</A>, <A HREF="../../../javax/swing/text/View.html#getEndOffset()">getEndOffset</A>, <A HREF="../../../javax/swing/text/View.html#getGraphics()">getGraphics</A>, <A HREF="../../../javax/swing/text/View.html#getParent()">getParent</A>, <A HREF="../../../javax/swing/text/View.html#getStartOffset()">getStartOffset</A>, <A HREF="../../../javax/swing/text/View.html#getViewFactory()">getViewFactory</A>, <A HREF="../../../javax/swing/text/View.html#insert(int, javax.swing.text.View)">insert</A>, <A HREF="../../../javax/swing/text/View.html#isVisible()">isVisible</A>, <A HREF="../../../javax/swing/text/View.html#modelToView(int, java.awt.Shape)">modelToView</A>, <A HREF="../../../javax/swing/text/View.html#remove(int)">remove</A>, <A HREF="../../../javax/swing/text/View.html#removeAll()">removeAll</A>, <A HREF="../../../javax/swing/text/View.html#updateChildren(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, javax.swing.text.ViewFactory)">updateChildren</A>, <A HREF="../../../javax/swing/text/View.html#updateLayout(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, java.awt.Shape)">updateLayout</A>, <A HREF="../../../javax/swing/text/View.html#viewToModel(float, float, java.awt.Shape)">viewToModel</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="layoutSpan"><!-- --></A><H3>layoutSpan</H3><PRE>protected int <B>layoutSpan</B></PRE><DL><DD>Default constraint against which the flow is created against.</DL><HR><A NAME="layoutPool"><!-- --></A><H3>layoutPool</H3><PRE>protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>layoutPool</B></PRE><DL><DD>These are the views that represent the child elements of the element this view represents (The logical view to translate to a physical view). These are not directly children of this view. These are either placed into the rows directly or used for the purpose of breaking into smaller chunks, to form the physical view.</DL><HR><A NAME="strategy"><!-- --></A><H3>strategy</H3><PRE>protected <A HREF="../../../javax/swing/text/FlowView.FlowStrategy.html">FlowView.FlowStrategy</A> <B>strategy</B></PRE><DL><DD>The behavior for keeping the flow updated. By default this is a singleton shared by all instances of FlowView (FlowStrategy is stateless). Subclasses can create an alternative strategy, which might keep state.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="FlowView(javax.swing.text.Element, int)"><!-- --></A><H3>FlowView</H3><PRE>public <B>FlowView</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A> elem, int axis)</PRE><DL><DD>Constructs a FlowView for the given element.<DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element that this view is responsible for<DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getFlowAxis()"><!-- --></A><H3>getFlowAxis</H3><PRE>public int <B>getFlowAxis</B>()</PRE><DL><DD>Fetch the axis along which views should be flowed. By default, this will be the axis orthoginal to the axis along which the flow rows are tiled (the axis of the default flow rows themselves). This is typically used by the FlowStrategy.</DL><HR><A NAME="getFlowSpan(int)"><!-- --></A><H3>getFlowSpan</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -