⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compositeview.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                                    <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasRet)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the next visual position for the cursor, in either the east or west direction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><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></B>(int&nbsp;pos,                          <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b,                          <A HREF="../../../java/awt/Shape.html">Shape</A>&nbsp;a,                          int&nbsp;direction,                          <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasRet)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a way to determine the next visually represented model  location that one might place a caret.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;short</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getRightInset()">getRightInset</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the right inset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;short</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getTopInset()">getTopInset</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the top inset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getView(int)">getView</A></B>(int&nbsp;n)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the n-th view in this container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract &nbsp;<A HREF="../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getViewAtPoint(int, int, java.awt.Rectangle)">getViewAtPoint</A></B>(int&nbsp;x,               int&nbsp;y,               <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;alloc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the child view at the given point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getViewAtPosition(int, java.awt.Rectangle)">getViewAtPosition</A></B>(int&nbsp;pos,                  <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the child view that represents the given position in the model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getViewCount()">getViewCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of child views of this view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getViewIndex(int, javax.swing.text.Position.Bias)">getViewIndex</A></B>(int&nbsp;pos,             <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns 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>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#getViewIndexAtPosition(int)">getViewIndexAtPosition</A></B>(int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>protected abstract &nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#isAfter(int, int, java.awt.Rectangle)">isAfter</A></B>(int&nbsp;x,        int&nbsp;y,        <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;alloc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests whether a point lies after the rectangle range.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract &nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#isBefore(int, int, java.awt.Rectangle)">isBefore</A></B>(int&nbsp;x,         int&nbsp;y,         <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;alloc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests whether a point lies before the rectangle range.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</A></B>(<A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><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></B>(int&nbsp;p0,            <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b0,            int&nbsp;p1,            <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b1,            <A HREF="../../../java/awt/Shape.html">Shape</A>&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A></B>(int&nbsp;pos,            <A HREF="../../../java/awt/Shape.html">Shape</A>&nbsp;a,            <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#replace(int, int, javax.swing.text.View[])">replace</A></B>(int&nbsp;offset,        int&nbsp;length,        <A HREF="../../../javax/swing/text/View.html">View</A>[]&nbsp;views)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replace child views.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#setInsets(short, short, short, short)">setInsets</A></B>(short&nbsp;top,          short&nbsp;left,          short&nbsp;bottom,          short&nbsp;right)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the insets for the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#setParagraphInsets(javax.swing.text.AttributeSet)">setParagraphInsets</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the insets from the paragraph attributes specified in the given attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#setParent(javax.swing.text.View)">setParent</A></B>(<A HREF="../../../javax/swing/text/View.html">View</A>&nbsp;parent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the parent of the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/CompositeView.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])">viewToModel</A></B>(float&nbsp;x,            float&nbsp;y,            <A HREF="../../../java/awt/Shape.html">Shape</A>&nbsp;a,            <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;bias)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a mapping from the view coordinate space to the logical coordinate space of the model.</TD></TR></TABLE>&nbsp;<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#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A>, <A HREF="../../../javax/swing/text/View.html#createFragment(int, int)">createFragment</A>, <A HREF="../../../javax/swing/text/View.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/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#getAlignment(int)">getAlignment</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#getMaximumSpan(int)">getMaximumSpan</A>, <A HREF="../../../javax/swing/text/View.html#getMinimumSpan(int)">getMinimumSpan</A>, <A HREF="../../../javax/swing/text/View.html#getParent()">getParent</A>, <A HREF="../../../javax/swing/text/View.html#getPreferredSpan(int)">getPreferredSpan</A>, <A HREF="../../../javax/swing/text/View.html#getResizeWeight(int)">getResizeWeight</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#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</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#paint(java.awt.Graphics, java.awt.Shape)">paint</A>, <A HREF="../../../javax/swing/text/View.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</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#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A>, <A HREF="../../../javax/swing/text/View.html#setSize(float, float)">setSize</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>&nbsp;<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>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="CompositeView(javax.swing.text.Element)"><!-- --></A><H3>CompositeView</H3><PRE>public <B>CompositeView</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</PRE><DL><DD>Constructs a CompositeView for the given element.<DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element this view is responsible for</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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -