📄 view.html
字号:
<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> <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 axis, float len, <A HREF="../../../../java/awt/Shape.html">Shape</A> a)</CODE><BR> 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 <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> fv)</CODE><BR> 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 <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> fv, int startOffset, int spanLeft, int rowIndex)</CODE><BR> 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> <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 n)</CODE><BR> Gets the nth child view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> 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 <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 pos, <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A> a)</CODE><BR> 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 <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 pos, <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A> a)</CODE><BR> 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 <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 p0, int p1)</CODE><BR> 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> <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> 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> child, boolean width, boolean height)</CODE><BR> 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> 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> parent)</CODE><BR> 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> 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 offs, <A HREF="../../../../javax/swing/text/View.html">View</A> v)</CODE><BR> Inserts a single child 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>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> v)</CODE><BR> Appends a single child 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>View.</B><B><A HREF="../../../../javax/swing/text/View.html#replace(int, int, javax.swing.text.View[])">replace</A></B>(int offset, int length, <A HREF="../../../../javax/swing/text/View.html">View</A>[] views)</CODE><BR> Replace child views.</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>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> v, <A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> parent)</CODE><BR> Sets the parent of 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>CompositeView.</B><B><A HREF="../../../../javax/swing/text/CompositeView.html#replace(int, int, javax.swing.text.View[])">replace</A></B>(int offset, int length, <A HREF="../../../../javax/swing/text/View.html">View</A>[] views)</CODE><BR> Replace child views.</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>BoxView.</B><B><A HREF="../../../../javax/swing/text/BoxView.html#replace(int, int, javax.swing.text.View[])">replace</A></B>(int index, int length, <A HREF="../../../../javax/swing/text/View.html">View</A>[] elems)</CODE><BR> 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> 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> child, boolean width, boolean height)</CODE><BR> 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 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> g, int p0, int p1, <A HREF="../../../../java/awt/Shape.html">Shape</A> viewBounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> editor, <A HREF="../../../../javax/swing/text/View.html">View</A> view)</CODE><BR> 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> 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> g, int p0, int p1, <A HREF="../../../../java/awt/Shape.html">Shape</A> viewBounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> editor, <A HREF="../../../../javax/swing/text/View.html">View</A> view)</CODE><BR> 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 <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> g, int p0, int p1, <A HREF="../../../../java/awt/Shape.html">Shape</A> viewBounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> editor, <A HREF="../../../../javax/swing/text/View.html">View</A> view)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> g, int offs0, int offs1, <A HREF="../../../../java/awt/Shape.html">Shape</A> bounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c, <A HREF="../../../../javax/swing/text/View.html">View</A> view)</CODE><BR> 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 <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> v)</CODE><BR> 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> 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 offset, int length, <A HREF="../../../../javax/swing/text/View.html">View</A>[] views)</CODE><BR> 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> 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> parent)</CODE><BR> 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 + -