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

📄 defaultkeyedvalues.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DD></DL><HR><A NAME="getKey(int)"><!-- --></A><H3>getKey</H3><PRE>public java.lang.Comparable <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.127"><B>getKey</B></A>(int&nbsp;index)</PRE><DL><DD>Returns a key.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues.html#getKey(int)">getKey</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the item index (zero-based).<DT><B>Returns:</B><DD>The row key.<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>item</code> is out of bounds.</DL></DD></DL><HR><A NAME="getIndex(java.lang.Comparable)"><!-- --></A><H3>getIndex</H3><PRE>public int <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.146"><B>getIndex</B></A>(java.lang.Comparable&nbsp;key)</PRE><DL><DD>Returns the index for a given key.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues.html#getIndex(java.lang.Comparable)">getIndex</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The index, or <code>-1</code> if the key is not recognised.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>key</code> is      <code>null</code>.</DL></DD></DL><HR><A NAME="getKeys()"><!-- --></A><H3>getKeys</H3><PRE>public java.util.List <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.167"><B>getKeys</B></A>()</PRE><DL><DD>Returns the keys for the values in the collection.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues.html#getKeys()">getKeys</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The keys (never <code>null</code>).</DL></DD></DL><HR><A NAME="getValue(java.lang.Comparable)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Number <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.186"><B>getValue</B></A>(java.lang.Comparable&nbsp;key)</PRE><DL><DD>Returns the value for a given key.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues.html#getValue(java.lang.Comparable)">getValue</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key.<DT><B>Returns:</B><DD>The value (possibly <code>null</code>).<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfree/data/UnknownKeyException.html" title="class in org.jfree.data">UnknownKeyException</A></CODE> - if the key is not recognised.</DL></DD></DL><HR><A NAME="addValue(java.lang.Comparable, double)"><!-- --></A><H3>addValue</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.200"><B>addValue</B></A>(java.lang.Comparable&nbsp;key,                     double&nbsp;value)</PRE><DL><DD>Updates an existing value, or adds a new value to the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key (<code>null</code> not permitted).<DD><CODE>value</CODE> - the value.</DL></DD></DL><HR><A NAME="addValue(java.lang.Comparable, java.lang.Number)"><!-- --></A><H3>addValue</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.212"><B>addValue</B></A>(java.lang.Comparable&nbsp;key,                     java.lang.Number&nbsp;value)</PRE><DL><DD>Adds a new value to the collection, or updates an existing value. This method passes control directly to the  <A HREF="../../../org/jfree/data/DefaultKeyedValues.html#setValue(java.lang.Comparable, java.lang.Number)"><CODE>setValue(Comparable, Number)</CODE></A> method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key (<code>null</code> not permitted).<DD><CODE>value</CODE> - the value (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="setValue(java.lang.Comparable, double)"><!-- --></A><H3>setValue</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.222"><B>setValue</B></A>(java.lang.Comparable&nbsp;key,                     double&nbsp;value)</PRE><DL><DD>Updates an existing value, or adds a new value to the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key (<code>null</code> not permitted).<DD><CODE>value</CODE> - the value.</DL></DD></DL><HR><A NAME="setValue(java.lang.Comparable, java.lang.Number)"><!-- --></A><H3>setValue</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.232"><B>setValue</B></A>(java.lang.Comparable&nbsp;key,                     java.lang.Number&nbsp;value)</PRE><DL><DD>Updates an existing value, or adds a new value to the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key (<code>null</code> not permitted).<DD><CODE>value</CODE> - the value (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="removeValue(int)"><!-- --></A><H3>removeValue</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.256"><B>removeValue</B></A>(int&nbsp;index)</PRE><DL><DD>Removes a value from the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the item to remove (in the range      <code>0</code> to <code>getItemCount() - 1</code>).<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>index</code> is not within     the specified range.</DL></DD></DL><HR><A NAME="removeValue(java.lang.Comparable)"><!-- --></A><H3>removeValue</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.269"><B>removeValue</B></A>(java.lang.Comparable&nbsp;key)</PRE><DL><DD>Removes a value from the collection.  If there is no item with the  specified key, this method does nothing.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the item key (<code>null</code> not permitted).<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>key</code> is      <code>null</code>.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.281"><B>clear</B></A>()</PRE><DL><DD>Clears all values from the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>1.0.2</DD></DL></DD></DL><HR><A NAME="sortByKeys(org.jfree.util.SortOrder)"><!-- --></A><H3>sortByKeys</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.290"><B>sortByKeys</B></A>(org.jfree.util.SortOrder&nbsp;order)</PRE><DL><DD>Sorts the items in the list by key.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>order</CODE> - the sort order (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="sortByValues(org.jfree.util.SortOrder)"><!-- --></A><H3>sortByValues</H3><PRE>public void <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.304"><B>sortByValues</B></A>(org.jfree.util.SortOrder&nbsp;order)</PRE><DL><DD>Sorts the items in the list by value.  If the list contains  <code>null</code> values, they will sort to the end of the list,  irrespective of the sort order.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>order</CODE> - the sort order (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.318"><B>equals</B></A>(java.lang.Object&nbsp;obj)</PRE><DL><DD>Tests if this object is equal to another.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.360"><B>hashCode</B></A>()</PRE><DL><DD>Returns a hash code.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A hash code.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <A HREF="../../../src-html/org/jfree/data/DefaultKeyedValues.html#line.372"><B>clone</B></A>()                       throws java.lang.CloneNotSupportedException</PRE><DL><DD>Returns a clone.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>clone</CODE> in interface <CODE>org.jfree.util.PublicCloneable</CODE><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - this class will not throw this          exception, but subclasses might.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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/DefaultKeyedValues.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jfree/data/DefaultKeyedValue.html" title="class in org.jfree.data"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/data/DefaultKeyedValues2D.html" title="class in org.jfree.data"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/jfree/data/DefaultKeyedValues.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DefaultKeyedValues.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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