📄 view.html
字号:
<BR> A view that is composed of other views (has children).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/FieldView.html">FieldView</A></B></CODE><BR> Extends the multi-line plain text view to be suitable for a single-line editor view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/FlowView.html">FlowView</A></B></CODE><BR> A View that tries to flow it's children into some partially constrained space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/GlyphView.html">GlyphView</A></B></CODE><BR> A GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/IconView.html">IconView</A></B></CODE><BR> Icon decorator that implements the view interface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/LabelView.html">LabelView</A></B></CODE><BR> A LabelView is a styled chunk of text that represents a view mapped over an element in the text model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/ParagraphView.html">ParagraphView</A></B></CODE><BR> View of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/PasswordView.html">PasswordView</A></B></CODE><BR> Implements a View suitable for use in JPasswordField UI implementations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/PlainView.html">PlainView</A></B></CODE><BR> Implements View interface for a simple multi-line text view that has text in one font and color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/TableView.html">TableView</A></B></CODE><BR> Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/TableView.TableCell.html">TableView.TableCell</A></B></CODE><BR> <B>Deprecated.</B> <I>A table cell can now be any View implementation.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/TableView.TableRow.html">TableView.TableRow</A></B></CODE><BR> View of a row in a row-centric table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/WrappedPlainView.html">WrappedPlainView</A></B></CODE><BR> View of plain text (text with only one font and color) that does line-wrapping.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/ZoneView.html">ZoneView</A></B></CODE><BR> ZoneView is a View implementation that creates zones for which the child views are not created or stored until they are needed for display or model/view translations.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Fields in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> declared as <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>protected <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>FlowView.</B><B><A HREF="../../../../javax/swing/text/FlowView.html#layoutPool">layoutPool</A></B></CODE><BR> These are the views that represent the child elements of the element this view represents (The logical view to translate to a physical view).</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> that return <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> <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#getParent()">getParent</A></B>()</CODE><BR> Returns the parent of the 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>View.</B><B><A HREF="../../../../javax/swing/text/View.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>View.</B><B><A HREF="../../../../javax/swing/text/View.html#breakView(int, int, float, float)">breakView</A></B>(int axis, int offset, float pos, float len)</CODE><BR> Tries to break this view on the given axis.</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>View.</B><B><A HREF="../../../../javax/swing/text/View.html#createFragment(int, int)">createFragment</A></B>(int p0, int p1)</CODE><BR> Create a view that represents a portion of the element.</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>CompositeView.</B><B><A HREF="../../../../javax/swing/text/CompositeView.html#getView(int)">getView</A></B>(int n)</CODE><BR> 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 <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>CompositeView.</B><B><A HREF="../../../../javax/swing/text/CompositeView.html#getViewAtPoint(int, int, java.awt.Rectangle)">getViewAtPoint</A></B>(int x, int y, <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A> alloc)</CODE><BR> 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 <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>CompositeView.</B><B><A HREF="../../../../javax/swing/text/CompositeView.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> <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>GlyphView.</B><B><A HREF="../../../../javax/swing/text/GlyphView.html#breakView(int, int, float, float)">breakView</A></B>(int axis, int p0, float pos, float len)</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> <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>GlyphView.</B><B><A HREF="../../../../javax/swing/text/GlyphView.html#createFragment(int, int)">createFragment</A></B>(int p0, int p1)</CODE><BR> Creates a view that represents a portion of the element.</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>ViewFactory.</B><B><A HREF="../../../../javax/swing/text/ViewFactory.html#create(javax.swing.text.Element)">create</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem)</CODE><BR> Creates a view from the given structural element of a document.</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>BoxView.</B><B><A HREF="../../../../javax/swing/text/BoxView.html#getViewAtPoint(int, int, java.awt.Rectangle)">getViewAtPoint</A></B>(int x, int y, <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A> alloc)</CODE><BR> 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 abstract <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>FlowView.</B><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>protected <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#getLayoutView(int)">getLayoutView</A></B>(int index)</CODE><BR> The child views of the paragraph are rows which have been used to arrange pieces of the Views that represent the child elements.</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>ParagraphView.</B><B><A HREF="../../../../javax/swing/text/ParagraphView.html#createRow()">createRow</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -