123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!-- NewPage -->
- <html lang="en">
- <head>
- <!-- Generated by javadoc (1.8.0_05) on Thu Jul 31 14:50:42 CEST 2014 -->
- <title>ComparableObjectSeries (JFreeChart Class Library (version 1.0.19-fx))</title>
- <meta name="date" content="2014-07-31">
- <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
- <script type="text/javascript" src="../../../script.js"></script>
- </head>
- <body>
- <script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="ComparableObjectSeries (JFreeChart Class Library (version 1.0.19-fx))";
- }
- }
- catch(err) {
- }
- //-->
- var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10};
- var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
- var altColor = "altColor";
- var rowColor = "rowColor";
- var tableTab = "tableTab";
- var activeTableTab = "activeTableTab";
- </script>
- <noscript>
- <div>JavaScript is disabled on your browser.</div>
- </noscript>
- <!-- ========= START OF TOP NAVBAR ======= -->
- <div class="topNav"><a name="navbar.top">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
- <a name="navbar.top.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../../../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="class-use/ComparableObjectSeries.html">Use</a></li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../../../deprecated-list.html">Deprecated</a></li>
- <li><a href="../../../index-files/index-1.html">Index</a></li>
- <li><a href="../../../help-doc.html">Help</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../../org/jfree/data/DataUtilities.html" title="class in org.jfree.data"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../index.html?org/jfree/data/ComparableObjectSeries.html" target="_top">Frames</a></li>
- <li><a href="ComparableObjectSeries.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_top">
- <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li><a href="#field.summary">Field</a> | </li>
- <li><a href="#constructor.summary">Constr</a> | </li>
- <li><a href="#method.summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li><a href="#field.detail">Field</a> | </li>
- <li><a href="#constructor.detail">Constr</a> | </li>
- <li><a href="#method.detail">Method</a></li>
- </ul>
- </div>
- <a name="skip.navbar.top">
- <!-- -->
- </a></div>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <!-- ======== START OF CLASS DATA ======== -->
- <div class="header">
- <div class="subTitle">org.jfree.data</div>
- <h2 title="Class ComparableObjectSeries" class="title">Class ComparableObjectSeries</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li>java.lang.Object</li>
- <li>
- <ul class="inheritance">
- <li><a href="../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">org.jfree.data.general.Series</a></li>
- <li>
- <ul class="inheritance">
- <li>org.jfree.data.ComparableObjectSeries</li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <dl>
- <dt>All Implemented Interfaces:</dt>
- <dd>java.io.Serializable, java.lang.Cloneable</dd>
- </dl>
- <dl>
- <dt>Direct Known Subclasses:</dt>
- <dd><a href="../../../org/jfree/data/time/ohlc/OHLCSeries.html" title="class in org.jfree.data.time.ohlc">OHLCSeries</a>, <a href="../../../org/jfree/data/xy/VectorSeries.html" title="class in org.jfree.data.xy">VectorSeries</a>, <a href="../../../org/jfree/data/xy/XIntervalSeries.html" title="class in org.jfree.data.xy">XIntervalSeries</a>, <a href="../../../org/jfree/data/xy/XYIntervalSeries.html" title="class in org.jfree.data.xy">XYIntervalSeries</a>, <a href="../../../org/jfree/data/xy/YIntervalSeries.html" title="class in org.jfree.data.xy">YIntervalSeries</a></dd>
- </dl>
- <hr>
- <br>
- <pre>public class <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.60">ComparableObjectSeries</a>
- extends <a href="../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a>
- implements java.lang.Cloneable, java.io.Serializable</pre>
- <div class="block">A (possibly ordered) list of (Comparable, Object) data items.</div>
- <dl>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>1.0.3</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../serialized-form.html#org.jfree.data.ComparableObjectSeries">Serialized Form</a></dd>
- </dl>
- </li>
- </ul>
- </div>
- <div class="summary">
- <ul class="blockList">
- <li class="blockList">
- <!-- =========== FIELD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.summary">
- <!-- -->
- </a>
- <h3>Field Summary</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
- <caption><span>Fields</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colFirst" scope="col">Modifier and Type</th>
- <th class="colLast" scope="col">Field and Description</th>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>protected java.util.List</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#data">data</a></span></code>
- <div class="block">Storage for the data items in the series.</div>
- </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.summary">
- <!-- -->
- </a>
- <h3>Constructor Summary</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
- <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colOne" scope="col">Constructor and Description</th>
- </tr>
- <tr class="altColor">
- <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#ComparableObjectSeries-java.lang.Comparable-">ComparableObjectSeries</a></span>(java.lang.Comparable key)</code>
- <div class="block">Creates a new empty series.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#ComparableObjectSeries-java.lang.Comparable-boolean-boolean-">ComparableObjectSeries</a></span>(java.lang.Comparable key,
- boolean autoSort,
- boolean allowDuplicateXValues)</code>
- <div class="block">Constructs a new series that contains no data.</div>
- </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ========== METHOD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.summary">
- <!-- -->
- </a>
- <h3>Method Summary</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
- <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
- <tr>
- <th class="colFirst" scope="col">Modifier and Type</th>
- <th class="colLast" scope="col">Method and Description</th>
- </tr>
- <tr id="i0" class="altColor">
- <td class="colFirst"><code>protected void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#add-java.lang.Comparable-java.lang.Object-">add</a></span>(java.lang.Comparable x,
- java.lang.Object y)</code>
- <div class="block">Adds new data to the series and sends a <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to
- all registered listeners.</div>
- </td>
- </tr>
- <tr id="i1" class="rowColor">
- <td class="colFirst"><code>protected void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#add-java.lang.Comparable-java.lang.Object-boolean-">add</a></span>(java.lang.Comparable x,
- java.lang.Object y,
- boolean notify)</code>
- <div class="block">Adds new data to the series and, if requested, sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- </td>
- </tr>
- <tr id="i2" class="altColor">
- <td class="colFirst"><code>protected void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#add-org.jfree.data.ComparableObjectItem-boolean-">add</a></span>(<a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a> item,
- boolean notify)</code>
- <div class="block">Adds a data item to the series and, if requested, sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- </td>
- </tr>
- <tr id="i3" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#clear--">clear</a></span>()</code>
- <div class="block">Removes all data items from the series and, unless the series is
- already empty, sends a <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered
- listeners.</div>
- </td>
- </tr>
- <tr id="i4" class="altColor">
- <td class="colFirst"><code>protected void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#delete-int-int-">delete</a></span>(int start,
- int end)</code>
- <div class="block">Deletes a range of items from the series and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- </td>
- </tr>
- <tr id="i5" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object obj)</code>
- <div class="block">Tests this series for equality with an arbitrary object.</div>
- </td>
- </tr>
- <tr id="i6" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#getAllowDuplicateXValues--">getAllowDuplicateXValues</a></span>()</code>
- <div class="block">Returns a flag that controls whether duplicate x-values are allowed.</div>
- </td>
- </tr>
- <tr id="i7" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#getAutoSort--">getAutoSort</a></span>()</code>
- <div class="block">Returns the flag that controls whether the items in the series are
- automatically sorted.</div>
- </td>
- </tr>
- <tr id="i8" class="altColor">
- <td class="colFirst"><code>protected <a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#getDataItem-int-">getDataItem</a></span>(int index)</code>
- <div class="block">Return the data item with the specified index.</div>
- </td>
- </tr>
- <tr id="i9" class="rowColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#getItemCount--">getItemCount</a></span>()</code>
- <div class="block">Returns the number of items in the series.</div>
- </td>
- </tr>
- <tr id="i10" class="altColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#getMaximumItemCount--">getMaximumItemCount</a></span>()</code>
- <div class="block">Returns the maximum number of items that will be retained in the series.</div>
- </td>
- </tr>
- <tr id="i11" class="rowColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#hashCode--">hashCode</a></span>()</code>
- <div class="block">Returns a hash code.</div>
- </td>
- </tr>
- <tr id="i12" class="altColor">
- <td class="colFirst"><code>int</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#indexOf-java.lang.Comparable-">indexOf</a></span>(java.lang.Comparable x)</code>
- <div class="block">Returns the index of the item with the specified x-value, or a negative
- index if the series does not contain an item with that x-value.</div>
- </td>
- </tr>
- <tr id="i13" class="rowColor">
- <td class="colFirst"><code><a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#remove-java.lang.Comparable-">remove</a></span>(java.lang.Comparable x)</code>
- <div class="block">Removes the item with the specified x-value and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- </td>
- </tr>
- <tr id="i14" class="altColor">
- <td class="colFirst"><code>protected <a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#remove-int-">remove</a></span>(int index)</code>
- <div class="block">Removes the item at the specified index and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- </td>
- </tr>
- <tr id="i15" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#setMaximumItemCount-int-">setMaximumItemCount</a></span>(int maximum)</code>
- <div class="block">Sets the maximum number of items that will be retained in the series.</div>
- </td>
- </tr>
- <tr id="i16" class="altColor">
- <td class="colFirst"><code>protected void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#update-java.lang.Comparable-java.lang.Object-">update</a></span>(java.lang.Comparable x,
- java.lang.Object y)</code>
- <div class="block">Updates an item in the series.</div>
- </td>
- </tr>
- <tr id="i17" class="rowColor">
- <td class="colFirst"><code>protected void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/ComparableObjectSeries.html#updateByIndex-int-java.lang.Object-">updateByIndex</a></span>(int index,
- java.lang.Object y)</code>
- <div class="block">Updates the value of an item in the series and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.org.jfree.data.general.Series">
- <!-- -->
- </a>
- <h3>Methods inherited from class org.jfree.data.general.<a href="../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></h3>
- <code><a href="../../../org/jfree/data/general/Series.html#addChangeListener-org.jfree.data.general.SeriesChangeListener-">addChangeListener</a>, <a href="../../../org/jfree/data/general/Series.html#addPropertyChangeListener-java.beans.PropertyChangeListener-">addPropertyChangeListener</a>, <a href="../../../org/jfree/data/general/Series.html#addVetoableChangeListener-java.beans.VetoableChangeListener-">addVetoableChangeListener</a>, <a href="../../../org/jfree/data/general/Series.html#clone--">clone</a>, <a href="../../../org/jfree/data/general/Series.html#firePropertyChange-java.lang.String-java.lang.Object-java.lang.Object-">firePropertyChange</a>, <a href="../../../org/jfree/data/general/Series.html#fireSeriesChanged--">fireSeriesChanged</a>, <a href="../../../org/jfree/data/general/Series.html#fireVetoableChange-java.lang.String-java.lang.Object-java.lang.Object-">fireVetoableChange</a>, <a href="../../../org/jfree/data/general/Series.html#getDescription--">getDescription</a>, <a href="../../../org/jfree/data/general/Series.html#getKey--">getKey</a>, <a href="../../../org/jfree/data/general/Series.html#getNotify--">getNotify</a>, <a href="../../../org/jfree/data/general/Series.html#isEmpty--">isEmpty</a>, <a href="../../../org/jfree/data/general/Series.html#notifyListeners-org.jfree.data.general.SeriesChangeEvent-">notifyListeners</a>, <a href="../../../org/jfree/data/general/Series.html#removeChangeListener-org.jfree.data.general.SeriesChangeListener-">removeChangeListener</a>, <a href="../../../org/jfree/data/general/Series.html#removePropertyChangeListener-java.beans.PropertyChangeListener-">removePropertyChangeListener</a>, <a href="../../../org/jfree/data/general/Series.html#removeVetoableChangeListener-java.beans.VetoableChangeListener-">removeVetoableChangeListener</a>, <a href="../../../org/jfree/data/general/Series.html#setDescription-java.lang.String-">setDescription</a>, <a href="../../../org/jfree/data/general/Series.html#setKey-java.lang.Comparable-">setKey</a>, <a href="../../../org/jfree/data/general/Series.html#setNotify-boolean-">setNotify</a></code></li>
- </ul>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
- <!-- -->
- </a>
- <h3>Methods inherited from class java.lang.Object</h3>
- <code>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</code></li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <div class="details">
- <ul class="blockList">
- <li class="blockList">
- <!-- ============ FIELD DETAIL =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.detail">
- <!-- -->
- </a>
- <h3>Field Detail</h3>
- <a name="data">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>data</h4>
- <pre>protected java.util.List <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.64">data</a></pre>
- <div class="block">Storage for the data items in the series.</div>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.detail">
- <!-- -->
- </a>
- <h3>Constructor Detail</h3>
- <a name="ComparableObjectSeries-java.lang.Comparable-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ComparableObjectSeries</h4>
- <pre>public <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.82">ComparableObjectSeries</a>(java.lang.Comparable key)</pre>
- <div class="block">Creates a new empty series. By default, items added to the series will
- be sorted into ascending order by x-value, and duplicate x-values will
- be allowed (these defaults can be modified with another constructor.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>key</code> - the series key (<code>null</code> not permitted).</dd>
- </dl>
- </li>
- </ul>
- <a name="ComparableObjectSeries-java.lang.Comparable-boolean-boolean-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>ComparableObjectSeries</h4>
- <pre>public <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.96">ComparableObjectSeries</a>(java.lang.Comparable key,
- boolean autoSort,
- boolean allowDuplicateXValues)</pre>
- <div class="block">Constructs a new series that contains no data. You can specify
- whether or not duplicate x-values are allowed for the series.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>key</code> - the series key (<code>null</code> not permitted).</dd>
- <dd><code>autoSort</code> - a flag that controls whether or not the items in the
- series are sorted.</dd>
- <dd><code>allowDuplicateXValues</code> - a flag that controls whether duplicate
- x-values are allowed.</dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.detail">
- <!-- -->
- </a>
- <h3>Method Detail</h3>
- <a name="getAutoSort--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAutoSort</h4>
- <pre>public boolean <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.111">getAutoSort</a>()</pre>
- <div class="block">Returns the flag that controls whether the items in the series are
- automatically sorted. There is no setter for this flag, it must be
- defined in the series constructor.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>A boolean.</dd>
- </dl>
- </li>
- </ul>
- <a name="getAllowDuplicateXValues--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getAllowDuplicateXValues</h4>
- <pre>public boolean <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.121">getAllowDuplicateXValues</a>()</pre>
- <div class="block">Returns a flag that controls whether duplicate x-values are allowed.
- This flag can only be set in the constructor.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>A boolean.</dd>
- </dl>
- </li>
- </ul>
- <a name="getItemCount--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getItemCount</h4>
- <pre>public int <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.131">getItemCount</a>()</pre>
- <div class="block">Returns the number of items in the series.</div>
- <dl>
- <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
- <dd><code><a href="../../../org/jfree/data/general/Series.html#getItemCount--">getItemCount</a></code> in class <code><a href="../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></code></dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The item count.</dd>
- </dl>
- </li>
- </ul>
- <a name="getMaximumItemCount--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMaximumItemCount</h4>
- <pre>public int <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.142">getMaximumItemCount</a>()</pre>
- <div class="block">Returns the maximum number of items that will be retained in the series.
- The default value is <code>Integer.MAX_VALUE</code>.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The maximum item count.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../org/jfree/data/ComparableObjectSeries.html#setMaximumItemCount-int-"><code>setMaximumItemCount(int)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="setMaximumItemCount-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>setMaximumItemCount</h4>
- <pre>public void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.160">setMaximumItemCount</a>(int maximum)</pre>
- <div class="block">Sets the maximum number of items that will be retained in the series.
- If you add a new item to the series such that the number of items will
- exceed the maximum item count, then the first element in the series is
- automatically removed, ensuring that the maximum item count is not
- exceeded.
- <p>
- Typically this value is set before the series is populated with data,
- but if it is applied later, it may cause some items to be removed from
- the series (in which case a <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> will be sent to
- all registered listeners.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>maximum</code> - the maximum number of items for the series.</dd>
- </dl>
- </li>
- </ul>
- <a name="add-java.lang.Comparable-java.lang.Object-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>add</h4>
- <pre>protected void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.182">add</a>(java.lang.Comparable x,
- java.lang.Object y)</pre>
- <div class="block">Adds new data to the series and sends a <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to
- all registered listeners.
- <P>
- Throws an exception if the x-value is a duplicate AND the
- allowDuplicateXValues flag is false.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>x</code> - the x-value (<code>null</code> not permitted).</dd>
- <dd><code>y</code> - the y-value (<code>null</code> permitted).</dd>
- </dl>
- </li>
- </ul>
- <a name="add-java.lang.Comparable-java.lang.Object-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>add</h4>
- <pre>protected void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.200">add</a>(java.lang.Comparable x,
- java.lang.Object y,
- boolean notify)</pre>
- <div class="block">Adds new data to the series and, if requested, sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.
- <P>
- Throws an exception if the x-value is a duplicate AND the
- allowDuplicateXValues flag is false.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>x</code> - the x-value (<code>null</code> not permitted).</dd>
- <dd><code>y</code> - the y-value (<code>null</code> permitted).</dd>
- <dd><code>notify</code> - a flag the controls whether or not a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> is sent to all registered
- listeners.</dd>
- </dl>
- </li>
- </ul>
- <a name="add-org.jfree.data.ComparableObjectItem-boolean-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>add</h4>
- <pre>protected void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.215">add</a>(<a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a> item,
- boolean notify)</pre>
- <div class="block">Adds a data item to the series and, if requested, sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>item</code> - the (x, y) item (<code>null</code> not permitted).</dd>
- <dd><code>notify</code> - a flag that controls whether or not a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> is sent to all registered
- listeners.</dd>
- </dl>
- </li>
- </ul>
- <a name="indexOf-java.lang.Comparable-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>indexOf</h4>
- <pre>public int <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.272">indexOf</a>(java.lang.Comparable x)</pre>
- <div class="block">Returns the index of the item with the specified x-value, or a negative
- index if the series does not contain an item with that x-value. Be
- aware that for an unsorted series, the index is found by iterating
- through all items in the series.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>x</code> - the x-value (<code>null</code> not permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The index.</dd>
- </dl>
- </li>
- </ul>
- <a name="update-java.lang.Comparable-java.lang.Object-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>update</h4>
- <pre>protected void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.298">update</a>(java.lang.Comparable x,
- java.lang.Object y)</pre>
- <div class="block">Updates an item in the series.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>x</code> - the x-value (<code>null</code> not permitted).</dd>
- <dd><code>y</code> - the y-value (<code>null</code> permitted).</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code><a href="../../../org/jfree/data/general/SeriesException.html" title="class in org.jfree.data.general">SeriesException</a></code> - if there is no existing item with the specified
- x-value.</dd>
- </dl>
- </li>
- </ul>
- <a name="updateByIndex-int-java.lang.Object-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>updateByIndex</h4>
- <pre>protected void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.317">updateByIndex</a>(int index,
- java.lang.Object y)</pre>
- <div class="block">Updates the value of an item in the series and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>index</code> - the item (zero based index).</dd>
- <dd><code>y</code> - the new value (<code>null</code> permitted).</dd>
- </dl>
- </li>
- </ul>
- <a name="getDataItem-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getDataItem</h4>
- <pre>protected <a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a> <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.330">getDataItem</a>(int index)</pre>
- <div class="block">Return the data item with the specified index.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>index</code> - the index.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The data item with the specified index.</dd>
- </dl>
- </li>
- </ul>
- <a name="delete-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>delete</h4>
- <pre>protected void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.341">delete</a>(int start,
- int end)</pre>
- <div class="block">Deletes a range of items from the series and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>start</code> - the start index (zero-based).</dd>
- <dd><code>end</code> - the end index (zero-based).</dd>
- </dl>
- </li>
- </ul>
- <a name="clear--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>clear</h4>
- <pre>public void <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.353">clear</a>()</pre>
- <div class="block">Removes all data items from the series and, unless the series is
- already empty, sends a <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered
- listeners.</div>
- </li>
- </ul>
- <a name="remove-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>remove</h4>
- <pre>protected <a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a> <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.368">remove</a>(int index)</pre>
- <div class="block">Removes the item at the specified index and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>index</code> - the index.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The item removed.</dd>
- </dl>
- </li>
- </ul>
- <a name="remove-java.lang.Comparable-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>remove</h4>
- <pre>public <a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data">ComparableObjectItem</a> <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.383">remove</a>(java.lang.Comparable x)</pre>
- <div class="block">Removes the item with the specified x-value and sends a
- <a href="../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><code>SeriesChangeEvent</code></a> to all registered listeners.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>x</code> - the x-value.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The item removed.</dd>
- </dl>
- </li>
- </ul>
- <a name="equals-java.lang.Object-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>equals</h4>
- <pre>public boolean <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.396">equals</a>(java.lang.Object obj)</pre>
- <div class="block">Tests this series for equality with an arbitrary object.</div>
- <dl>
- <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
- <dd><code><a href="../../../org/jfree/data/general/Series.html#equals-java.lang.Object-">equals</a></code> in class <code><a href="../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></code></dd>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>obj</code> - the object to test against for equality
- (<code>null</code> permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>A boolean.</dd>
- </dl>
- </li>
- </ul>
- <a name="hashCode--">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>hashCode</h4>
- <pre>public int <a href="../../../src-html/org/jfree/data/ComparableObjectSeries.html#line.428">hashCode</a>()</pre>
- <div class="block">Returns a hash code.</div>
- <dl>
- <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
- <dd><code><a href="../../../org/jfree/data/general/Series.html#hashCode--">hashCode</a></code> in class <code><a href="../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</a></code></dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>A hash code.</dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- <!-- ========= END OF CLASS DATA ========= -->
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <div class="bottomNav"><a name="navbar.bottom">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
- <a name="navbar.bottom.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../../../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="class-use/ComparableObjectSeries.html">Use</a></li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../../../deprecated-list.html">Deprecated</a></li>
- <li><a href="../../../index-files/index-1.html">Index</a></li>
- <li><a href="../../../help-doc.html">Help</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../../../org/jfree/data/ComparableObjectItem.html" title="class in org.jfree.data"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../../org/jfree/data/DataUtilities.html" title="class in org.jfree.data"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../index.html?org/jfree/data/ComparableObjectSeries.html" target="_top">Frames</a></li>
- <li><a href="ComparableObjectSeries.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_bottom">
- <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li><a href="#field.summary">Field</a> | </li>
- <li><a href="#constructor.summary">Constr</a> | </li>
- <li><a href="#method.summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li><a href="#field.detail">Field</a> | </li>
- <li><a href="#constructor.detail">Constr</a> | </li>
- <li><a href="#method.detail">Method</a></li>
- </ul>
- </div>
- <a name="skip.navbar.bottom">
- <!-- -->
- </a></div>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- </body>
- </html>
|