📄 labelview.html
字号:
setSubscript</H3><PRE>protected void <B>setSubscript</B>(boolean s)</PRE><DL><DD>Set whether or not the view represents a subscript.<DD><DL></DL></DD></DL><HR><A NAME="setPropertiesFromAttributes()"><!-- --></A><H3>setPropertiesFromAttributes</H3><PRE>protected void <B>setPropertiesFromAttributes</B>()</PRE><DL><DD>Set the cached properties from the attributes.<DD><DL></DL></DD></DL><HR><A NAME="getFontMetrics()"><!-- --></A><H3>getFontMetrics</H3><PRE>protected <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A> <B>getFontMetrics</B>()</PRE><DL><DD><B>Deprecated.</B> <I>FontMetrics are not used for glyph rendering when running in the Java2 SDK.</I><P><DD>Fetch the FontMetrics used for this view.<DD><DL></DL></DD></DL><HR><A NAME="getBackground()"><!-- --></A><H3>getBackground</H3><PRE>public <A HREF="../../../java/awt/Color.html">Color</A> <B>getBackground</B>()</PRE><DL><DD>Fetch the background color to use to render the glyphs. If there is no background color, null should be returned. This is implemented to return a cached background color.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#getBackground()">getBackground</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD></DL><HR><A NAME="getForeground()"><!-- --></A><H3>getForeground</H3><PRE>public <A HREF="../../../java/awt/Color.html">Color</A> <B>getForeground</B>()</PRE><DL><DD>Fetch the foreground color to use to render the glyphs. If there is no foreground color, null should be returned. This is implemented to return a cached foreground color.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#getForeground()">getForeground</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD></DL><HR><A NAME="getFont()"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../../java/awt/Font.html">Font</A> <B>getFont</B>()</PRE><DL><DD>Fetch the font that the glyphs should be based upon. This is implemented to return a cached font.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#getFont()">getFont</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD></DL><HR><A NAME="isUnderline()"><!-- --></A><H3>isUnderline</H3><PRE>public boolean <B>isUnderline</B>()</PRE><DL><DD>Determine if the glyphs should be underlined. If true, an underline should be drawn through the baseline.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#isUnderline()">isUnderline</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD></DL><HR><A NAME="isStrikeThrough()"><!-- --></A><H3>isStrikeThrough</H3><PRE>public boolean <B>isStrikeThrough</B>()</PRE><DL><DD>Determine if the glyphs should have a strikethrough line. If true, a line should be drawn through the center of the glyphs.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#isStrikeThrough()">isStrikeThrough</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD></DL><HR><A NAME="isSubscript()"><!-- --></A><H3>isSubscript</H3><PRE>public boolean <B>isSubscript</B>()</PRE><DL><DD>Determine if the glyphs should be rendered as superscript.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#isSubscript()">isSubscript</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD></DL><HR><A NAME="isSuperscript()"><!-- --></A><H3>isSuperscript</H3><PRE>public boolean <B>isSuperscript</B>()</PRE><DL><DD>Determine if the glyphs should be rendered as subscript.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#isSuperscript()">isSuperscript</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD></DL><HR><A NAME="changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><!-- --></A><H3>changedUpdate</H3><PRE>public void <B>changedUpdate</B>(<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)</PRE><DL><DD>Gives notification from the document that attributes were changed in a location that this view is responsible for.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/GlyphView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/GlyphView.html">GlyphView</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the change information from the associated document<DD><CODE>a</CODE> - the current allocation of the view<DD><CODE>f</CODE> - the factory to use to rebuild if the view has children<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><CODE>View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LabelView.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/swing/text/JTextComponent.KeyBinding.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/swing/text/LayeredHighlighter.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="LabelView.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_classes_inherited_from_class_javax.swing.text.GlyphView">INNER</A> | <A HREF="#fields_inherited_from_class_javax.swing.text.View">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -