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

📄 view.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>ParagraphView.</B><B><A HREF="../../../../javax/swing/text/ParagraphView.html#breakView(int, float, java.awt.Shape)">breakView</A></B>(int&nbsp;axis,          float&nbsp;len,          <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Breaks this view on the given axis at the given length.</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>FlowView.FlowStrategy.</B><B><A HREF="../../../../javax/swing/text/FlowView.FlowStrategy.html#getLogicalView(javax.swing.text.FlowView)">getLogicalView</A></B>(<A HREF="../../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method gives flow strategies access to the logical view of the FlowView.</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>FlowView.FlowStrategy.</B><B><A HREF="../../../../javax/swing/text/FlowView.FlowStrategy.html#createView(javax.swing.text.FlowView, int, int, int)">createView</A></B>(<A HREF="../../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv,           int&nbsp;startOffset,           int&nbsp;spanLeft,           int&nbsp;rowIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a view that can be used to represent the current piece of the flow.</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>AsyncBoxView.</B><B><A HREF="../../../../javax/swing/text/AsyncBoxView.html#getView(int)">getView</A></B>(int&nbsp;n)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the nth child view.</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>AsyncBoxView.ChildState.</B><B><A HREF="../../../../javax/swing/text/AsyncBoxView.ChildState.html#getChildView()">getChildView</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch the child view this record represents</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>TableView.</B><B><A HREF="../../../../javax/swing/text/TableView.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>protected &nbsp;<A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>TableView.TableRow.</B><B><A HREF="../../../../javax/swing/text/TableView.TableRow.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>protected &nbsp;<A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>ZoneView.</B><B><A HREF="../../../../javax/swing/text/ZoneView.html#createZone(int, int)">createZone</A></B>(int&nbsp;p0,           int&nbsp;p1)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a view to represent a zone for the given range within the model (which should be within the range of this objects responsibility).</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> with parameters of type <A HREF="../../../../javax/swing/text/View.html">View</A></FONT></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>View.</B><B><A HREF="../../../../javax/swing/text/View.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</A></B>(<A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;child,                  boolean&nbsp;width,                  boolean&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Child views can call this on the parent to indicate that the preference has changed and should be reconsidered for layout.</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>View.</B><B><A HREF="../../../../javax/swing/text/View.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;Establishes the parent view for this view.</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>View.</B><B><A HREF="../../../../javax/swing/text/View.html#insert(int, javax.swing.text.View)">insert</A></B>(int&nbsp;offs,       <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;v)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a single child view.</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>View.</B><B><A HREF="../../../../javax/swing/text/View.html#append(javax.swing.text.View)">append</A></B>(<A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;v)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Appends a single child view.</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>View.</B><B><A HREF="../../../../javax/swing/text/View.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>View.</B><B><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></B>(<A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;v,                    <A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,                    <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,                    <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forward the DocumentEvent to the give child view.</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>CompositeView.</B><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;void</CODE></FONT></TD><TD><CODE><B>CompositeView.</B><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>&nbsp;void</CODE></FONT></TD><TD><CODE><B>BoxView.</B><B><A HREF="../../../../javax/swing/text/BoxView.html#replace(int, int, javax.swing.text.View[])">replace</A></B>(int&nbsp;index,        int&nbsp;length,        <A HREF="../../../../javax/swing/text/View.html">View</A>[]&nbsp;elems)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invalidates the layout and resizes the cache of  requests/allocations.</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>BoxView.</B><B><A HREF="../../../../javax/swing/text/BoxView.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</A></B>(<A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;child,                  boolean&nbsp;width,                  boolean&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is called by a child to indicated its  preferred span has changed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B>LayeredHighlighter.</B><B><A HREF="../../../../javax/swing/text/LayeredHighlighter.html#paintLayeredHighlights(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View)">paintLayeredHighlights</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A>&nbsp;g,                       int&nbsp;p0,                       int&nbsp;p1,                       <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;viewBounds,                       <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;editor,                       <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When leaf Views (such as LabelView) are rendering they should call into this method.</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>DefaultHighlighter.</B><B><A HREF="../../../../javax/swing/text/DefaultHighlighter.html#paintLayeredHighlights(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View)">paintLayeredHighlights</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A>&nbsp;g,                       int&nbsp;p0,                       int&nbsp;p1,                       <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;viewBounds,                       <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;editor,                       <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When leaf Views (such as LabelView) are rendering they should call into this method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<A HREF="../../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B>LayeredHighlighter.LayerPainter.</B><B><A HREF="../../../../javax/swing/text/LayeredHighlighter.LayerPainter.html#paintLayer(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View)">paintLayer</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A>&nbsp;g,           int&nbsp;p0,           int&nbsp;p1,           <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;viewBounds,           <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;editor,           <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>DefaultHighlighter.DefaultHighlightPainter.</B><B><A HREF="../../../../javax/swing/text/DefaultHighlighter.DefaultHighlightPainter.html#paintLayer(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View)">paintLayer</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A>&nbsp;g,           int&nbsp;offs0,           int&nbsp;offs1,           <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;bounds,           <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;c,           <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints a portion of a highlight.</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/AsyncBoxView.ChildState.html">AsyncBoxView.ChildState</A></CODE></FONT></TD><TD><CODE><B>AsyncBoxView.</B><B><A HREF="../../../../javax/swing/text/AsyncBoxView.html#createChildState(javax.swing.text.View)">createChildState</A></B>(<A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;v)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;New ChildState records are created through this method to allow subclasses the extend the ChildState records to do/hold more</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>AsyncBoxView.</B><B><A HREF="../../../../javax/swing/text/AsyncBoxView.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;Calls the superclass to update the child views, and updates the status records for the children.</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>AsyncBoxView.</B><B><A HREF="../../../../javax/swing/text/AsyncBoxView.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">

⌨️ 快捷键说明

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