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

📄 stylecontext.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="reclaim(javax.swing.text.AttributeSet)"><!-- --></A><H3>reclaim</H3><PRE>public void <B>reclaim</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Returns a set no longer needed by the MutableAttributeSet implmentation. This is useful for operation under 1.1 where there are no weak  references.  This would typically be called by the finalize method of the MutableAttributeSet implementation. <p> This method is thread safe, although most Swing methods are not. Please see  <A HREF="http://java.sun.com/products/jfc/swingdoc-archive/threads.html">Threads and Swing</A> for more information.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AbstractDocument.AttributeContext.html#reclaim(javax.swing.text.AttributeSet)">reclaim</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AbstractDocument.AttributeContext.html">AbstractDocument.AttributeContext</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the set to reclaim</DL></DD></DL><HR><A NAME="getCompressionThreshold()"><!-- --></A><H3>getCompressionThreshold</H3><PRE>protected int <B>getCompressionThreshold</B>()</PRE><DL><DD>Returns the maximum number of key/value pairs to try and  compress into unique/immutable sets.  Any sets above this limit will use hashtables and be a MutableAttributeSet.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the threshold</DL></DD></DL><HR><A NAME="createSmallAttributeSet(javax.swing.text.AttributeSet)"><!-- --></A><H3>createSmallAttributeSet</H3><PRE>protected <A HREF="../../../javax/swing/text/StyleContext.SmallAttributeSet.html">StyleContext.SmallAttributeSet</A> <B>createSmallAttributeSet</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Create a compact set of attributes that might be shared. This is a hook for subclasses that want to alter the  behavior of SmallAttributeSet.  This can be reimplemented to return an AttributeSet that provides some sort of attribute conversion.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - The set of attributes to be represented in the  the compact form.</DL></DD></DL><HR><A NAME="createLargeAttributeSet(javax.swing.text.AttributeSet)"><!-- --></A><H3>createLargeAttributeSet</H3><PRE>protected <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A> <B>createLargeAttributeSet</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Create a large set of attributes that should trade off space for time.  This set will not be shared.  This is a hook for subclasses that want to alter the behavior of the larger attribute storage format (which is  SimpleAttributeSet by default).   This can be reimplemented to return a MutableAttributeSet that provides some sort of attribute conversion.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - The set of attributes to be represented in the  the larger form.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Converts a StyleContext to a String.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the string</DL></DD></DL><HR><A NAME="writeAttributes(java.io.ObjectOutputStream, javax.swing.text.AttributeSet)"><!-- --></A><H3>writeAttributes</H3><PRE>public void <B>writeAttributes</B>(<A HREF="../../../java/io/ObjectOutputStream.html">ObjectOutputStream</A>&nbsp;out,                            <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)                     throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Context-specific handling of writing out attributes<DD><DL></DL></DD></DL><HR><A NAME="readAttributes(java.io.ObjectInputStream, javax.swing.text.MutableAttributeSet)"><!-- --></A><H3>readAttributes</H3><PRE>public void <B>readAttributes</B>(<A HREF="../../../java/io/ObjectInputStream.html">ObjectInputStream</A>&nbsp;in,                           <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a)                    throws <A HREF="../../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A>,                           <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Context-specific handling of reading in attributes<DD><DL></DL></DD></DL><HR><A NAME="writeAttributeSet(java.io.ObjectOutputStream, javax.swing.text.AttributeSet)"><!-- --></A><H3>writeAttributeSet</H3><PRE>public static void <B>writeAttributeSet</B>(<A HREF="../../../java/io/ObjectOutputStream.html">ObjectOutputStream</A>&nbsp;out,                                     <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)                              throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes a set of attributes to the given object stream for the purpose of serialization.  This will take special care to deal with static attribute keys that have been registered wit the  <code>registerStaticAttributeKey</code> method. Any attribute key not regsitered as a static key will be serialized directly.  All values are expected to be serializable.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream<DD><CODE>a</CODE> - the attribute set<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="readAttributeSet(java.io.ObjectInputStream, javax.swing.text.MutableAttributeSet)"><!-- --></A><H3>readAttributeSet</H3><PRE>public static void <B>readAttributeSet</B>(<A HREF="../../../java/io/ObjectInputStream.html">ObjectInputStream</A>&nbsp;in,                                    <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a)                             throws <A HREF="../../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A>,                                    <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Reads a set of attributes from the given object input stream that have been previously written out with <code>writeAttributeSet</code>.  This will try to restore keys that were static objects to the static objects in the current virtual machine considering only those keys that have been registered with the  <code>registerStaticAttributeKey</code> method. The attributes retrieved from the stream will be placed into the given mutable set.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the object stream to read the attribute data from.<DD><CODE>a</CODE> - the attribute set to place the attribute    definitions in.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A></CODE> - passed upward if encountered  when reading the object stream.<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - passed upward if encountered when  reading the object stream.</DL></DD></DL><HR><A NAME="registerStaticAttributeKey(java.lang.Object)"><!-- --></A><H3>registerStaticAttributeKey</H3><PRE>public static void <B>registerStaticAttributeKey</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>Registers an object as a static object that is being used as a key in attribute sets.  This allows the key to be treated specially for serialization. <p> For operation under a 1.1 virtual machine, this uses the value returned by <code>toString</code> concatenated to the classname.  The value returned by toString should not have the class reference in it (ie it should be reimplemented from the  definition in Object) in order to be the same when recomputed later.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the non-null object key</DL></DD></DL><HR><A NAME="getStaticAttribute(java.lang.Object)"><!-- --></A><H3>getStaticAttribute</H3><PRE>public static <A HREF="../../../java/lang/Object.html">Object</A> <B>getStaticAttribute</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>Returns the object previously registered with <code>registerStaticAttributeKey</code>.<DD><DL></DL></DD></DL><HR><A NAME="getStaticAttributeKey(java.lang.Object)"><!-- --></A><H3>getStaticAttributeKey</H3><PRE>public static <A HREF="../../../java/lang/Object.html">Object</A> <B>getStaticAttributeKey</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>Returns the String that <code>key</code> will be registered with<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/StyleContext.html#getStaticAttribute(java.lang.Object)"><CODE>getStaticAttribute(java.lang.Object)</CODE></A>, <A HREF="../../../javax/swing/text/StyleContext.html#registerStaticAttributeKey(java.lang.Object)"><CODE>registerStaticAttributeKey(java.lang.Object)</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/StyleContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/swing/text/StyleConstants.ParagraphConstants.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/StyleContext.NamedStyle.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>  &nbsp;&nbsp;<A HREF="StyleContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -