123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837 |
- <!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:43 CEST 2014 -->
- <title>RegularTimePeriod (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="RegularTimePeriod (JFreeChart Class Library (version 1.0.19-fx))";
- }
- }
- catch(err) {
- }
- //-->
- var methods = {"i0":9,"i1":9,"i2":10,"i3":6,"i4":6,"i5":42,"i6":6,"i7":6,"i8":42,"i9":10,"i10":10,"i11":42,"i12":10,"i13":6,"i14":10,"i15":6,"i16":6,"i17":6,"i18":10};
- var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated 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/RegularTimePeriod.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/time/Quarter.html" title="class in org.jfree.data.time"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../../../org/jfree/data/time/Second.html" title="class in org.jfree.data.time"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../../index.html?org/jfree/data/time/RegularTimePeriod.html" target="_top">Frames</a></li>
- <li><a href="RegularTimePeriod.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.time</div>
- <h2 title="Class RegularTimePeriod" class="title">Class RegularTimePeriod</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li>java.lang.Object</li>
- <li>
- <ul class="inheritance">
- <li>org.jfree.data.time.RegularTimePeriod</li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <dl>
- <dt>All Implemented Interfaces:</dt>
- <dd>java.lang.Comparable, <a href="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</a>, org.jfree.date.MonthConstants</dd>
- </dl>
- <dl>
- <dt>Direct Known Subclasses:</dt>
- <dd><a href="../../../../org/jfree/data/time/Day.html" title="class in org.jfree.data.time">Day</a>, <a href="../../../../org/jfree/data/time/FixedMillisecond.html" title="class in org.jfree.data.time">FixedMillisecond</a>, <a href="../../../../org/jfree/data/time/Hour.html" title="class in org.jfree.data.time">Hour</a>, <a href="../../../../org/jfree/data/time/Millisecond.html" title="class in org.jfree.data.time">Millisecond</a>, <a href="../../../../org/jfree/data/time/Minute.html" title="class in org.jfree.data.time">Minute</a>, <a href="../../../../org/jfree/data/time/Month.html" title="class in org.jfree.data.time">Month</a>, <a href="../../../../org/jfree/data/time/Quarter.html" title="class in org.jfree.data.time">Quarter</a>, <a href="../../../../org/jfree/data/time/Second.html" title="class in org.jfree.data.time">Second</a>, <a href="../../../../org/jfree/data/time/Week.html" title="class in org.jfree.data.time">Week</a>, <a href="../../../../org/jfree/data/time/Year.html" title="class in org.jfree.data.time">Year</a></dd>
- </dl>
- <hr>
- <br>
- <pre>public abstract class <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.72">RegularTimePeriod</a>
- extends java.lang.Object
- implements <a href="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</a>, java.lang.Comparable, org.jfree.date.MonthConstants</pre>
- <div class="block">An abstract class representing a unit of time. Convenient methods are
- provided for calculating the next and previous time periods. Conversion
- methods are defined that return the first and last milliseconds of the time
- period. The results from these methods are timezone dependent.
- <P>
- This class is immutable, and all subclasses should be immutable also.</div>
- </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>static java.util.TimeZone</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#DEFAULT_TIME_ZONE">DEFAULT_TIME_ZONE</a></span></code>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span>
- <div class="block"><span class="deprecationComment">As of 1.0.11, we discourage the use of this field - use
- <code>TimeZone.getDefault()</code> instead.</span></div>
- </div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>static java.util.Calendar</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#WORKING_CALENDAR">WORKING_CALENDAR</a></span></code>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span>
- <div class="block"><span class="deprecationComment">This was a bad idea, don't use it!</span></div>
- </div>
- </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="fields.inherited.from.class.org.jfree.date.MonthConstants">
- <!-- -->
- </a>
- <h3>Fields inherited from interface org.jfree.date.MonthConstants</h3>
- <code>APRIL, AUGUST, DECEMBER, FEBRUARY, JANUARY, JULY, JUNE, MARCH, MAY, NOVEMBER, OCTOBER, SEPTEMBER</code></li>
- </ul>
- </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/time/RegularTimePeriod.html#RegularTimePeriod--">RegularTimePeriod</a></span>()</code> </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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated 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>static <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#createInstance-java.lang.Class-java.util.Date-java.util.TimeZone-">createInstance</a></span>(java.lang.Class c,
- java.util.Date millisecond,
- java.util.TimeZone zone)</code>
- <div class="block">Creates a time period that includes the specified millisecond, assuming
- the given time zone.</div>
- </td>
- </tr>
- <tr id="i1" class="rowColor">
- <td class="colFirst"><code>static java.lang.Class</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#downsize-java.lang.Class-">downsize</a></span>(java.lang.Class c)</code>
- <div class="block">Returns a subclass of <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time"><code>RegularTimePeriod</code></a> that is smaller than
- the specified class.</div>
- </td>
- </tr>
- <tr id="i2" class="altColor">
- <td class="colFirst"><code>java.util.Date</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getEnd--">getEnd</a></span>()</code>
- <div class="block">Returns the date/time that marks the end of the time period.</div>
- </td>
- </tr>
- <tr id="i3" class="rowColor">
- <td class="colFirst"><code>abstract long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond--">getFirstMillisecond</a></span>()</code>
- <div class="block">Returns the first millisecond of the time period.</div>
- </td>
- </tr>
- <tr id="i4" class="altColor">
- <td class="colFirst"><code>abstract long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.Calendar-">getFirstMillisecond</a></span>(java.util.Calendar calendar)</code>
- <div class="block">Returns the first millisecond of the time period, evaluated using the
- supplied calendar (which incorporates a timezone).</div>
- </td>
- </tr>
- <tr id="i5" class="rowColor">
- <td class="colFirst"><code>long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.TimeZone-">getFirstMillisecond</a></span>(java.util.TimeZone zone)</code>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span>
- <div class="block"><span class="deprecationComment">As of 1.0.3, you should avoid using this method (it creates
- a new Calendar instance every time it is called). You are advised
- to call <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.Calendar-"><code>getFirstMillisecond(Calendar)</code></a> instead.</span></div>
- </div>
- </td>
- </tr>
- <tr id="i6" class="altColor">
- <td class="colFirst"><code>abstract long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond--">getLastMillisecond</a></span>()</code>
- <div class="block">Returns the last millisecond of the time period.</div>
- </td>
- </tr>
- <tr id="i7" class="rowColor">
- <td class="colFirst"><code>abstract long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.Calendar-">getLastMillisecond</a></span>(java.util.Calendar calendar)</code>
- <div class="block">Returns the last millisecond of the time period, evaluated using the
- supplied calendar (which incorporates a timezone).</div>
- </td>
- </tr>
- <tr id="i8" class="altColor">
- <td class="colFirst"><code>long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.TimeZone-">getLastMillisecond</a></span>(java.util.TimeZone zone)</code>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span>
- <div class="block"><span class="deprecationComment">As of 1.0.3, you should avoid using this method (it creates
- a new Calendar instance every time it is called). You are advised
- to call <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.Calendar-"><code>getLastMillisecond(Calendar)</code></a> instead.</span></div>
- </div>
- </td>
- </tr>
- <tr id="i9" class="rowColor">
- <td class="colFirst"><code>long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond--">getMiddleMillisecond</a></span>()</code>
- <div class="block">Returns the millisecond closest to the middle of the time period.</div>
- </td>
- </tr>
- <tr id="i10" class="altColor">
- <td class="colFirst"><code>long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond-java.util.Calendar-">getMiddleMillisecond</a></span>(java.util.Calendar calendar)</code>
- <div class="block">Returns the millisecond closest to the middle of the time period,
- evaluated using the supplied calendar (which incorporates a timezone).</div>
- </td>
- </tr>
- <tr id="i11" class="rowColor">
- <td class="colFirst"><code>long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond-java.util.TimeZone-">getMiddleMillisecond</a></span>(java.util.TimeZone zone)</code>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span>
- <div class="block"><span class="deprecationComment">As of 1.0.3, you should avoid using this method (it creates
- a new Calendar instance every time it is called). You are advised
- to call <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond-java.util.Calendar-"><code>getMiddleMillisecond(Calendar)</code></a> instead.</span></div>
- </div>
- </td>
- </tr>
- <tr id="i12" class="altColor">
- <td class="colFirst"><code>long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMillisecond-org.jfree.data.time.TimePeriodAnchor-java.util.Calendar-">getMillisecond</a></span>(<a href="../../../../org/jfree/data/time/TimePeriodAnchor.html" title="class in org.jfree.data.time">TimePeriodAnchor</a> anchor,
- java.util.Calendar calendar)</code>
- <div class="block">Returns the millisecond (relative to the epoch) corresponding to the
- specified <code>anchor</code> using the supplied <code>calendar</code>
- (which incorporates a time zone).</div>
- </td>
- </tr>
- <tr id="i13" class="rowColor">
- <td class="colFirst"><code>abstract long</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getSerialIndex--">getSerialIndex</a></span>()</code>
- <div class="block">Returns a serial index number for the time unit.</div>
- </td>
- </tr>
- <tr id="i14" class="altColor">
- <td class="colFirst"><code>java.util.Date</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getStart--">getStart</a></span>()</code>
- <div class="block">Returns the date/time that marks the start of the time period.</div>
- </td>
- </tr>
- <tr id="i15" class="rowColor">
- <td class="colFirst"><code>abstract <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#next--">next</a></span>()</code>
- <div class="block">Returns the time period following this one, or <code>null</code> if some
- limit has been reached.</div>
- </td>
- </tr>
- <tr id="i16" class="altColor">
- <td class="colFirst"><code>abstract void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#peg-java.util.Calendar-">peg</a></span>(java.util.Calendar calendar)</code>
- <div class="block">Recalculates the start date/time and end date/time for this time period
- relative to the supplied calendar (which incorporates a time zone).</div>
- </td>
- </tr>
- <tr id="i17" class="rowColor">
- <td class="colFirst"><code>abstract <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#previous--">previous</a></span>()</code>
- <div class="block">Returns the time period preceding this one, or <code>null</code> if some
- lower limit has been reached.</div>
- </td>
- </tr>
- <tr id="i18" class="altColor">
- <td class="colFirst"><code>java.lang.String</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#toString--">toString</a></span>()</code>
- <div class="block">Returns a string representation of the time period.</div>
- </td>
- </tr>
- </table>
- <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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
- </ul>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.java.lang.Comparable">
- <!-- -->
- </a>
- <h3>Methods inherited from interface java.lang.Comparable</h3>
- <code>compareTo</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="DEFAULT_TIME_ZONE">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>DEFAULT_TIME_ZONE</h4>
- <pre>public static final java.util.TimeZone <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.166">DEFAULT_TIME_ZONE</a></pre>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of 1.0.11, we discourage the use of this field - use
- <code>TimeZone.getDefault()</code> instead.</span></div>
- <div class="block">The default time zone.</div>
- </li>
- </ul>
- <a name="WORKING_CALENDAR">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>WORKING_CALENDAR</h4>
- <pre>public static final java.util.Calendar <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.173">WORKING_CALENDAR</a></pre>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">This was a bad idea, don't use it!</span></div>
- <div class="block">A working calendar (recycle to avoid unnecessary object creation).</div>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.detail">
- <!-- -->
- </a>
- <h3>Constructor Detail</h3>
- <a name="RegularTimePeriod--">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>RegularTimePeriod</h4>
- <pre>public <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.72">RegularTimePeriod</a>()</pre>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.detail">
- <!-- -->
- </a>
- <h3>Method Detail</h3>
- <a name="createInstance-java.lang.Class-java.util.Date-java.util.TimeZone-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>createInstance</h4>
- <pre>public static <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a> <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.85">createInstance</a>(java.lang.Class c,
- java.util.Date millisecond,
- java.util.TimeZone zone)</pre>
- <div class="block">Creates a time period that includes the specified millisecond, assuming
- the given time zone.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>c</code> - the time period class.</dd>
- <dd><code>millisecond</code> - the time.</dd>
- <dd><code>zone</code> - the time zone.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The time period.</dd>
- </dl>
- </li>
- </ul>
- <a name="downsize-java.lang.Class-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>downsize</h4>
- <pre>public static java.lang.Class <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.108">downsize</a>(java.lang.Class c)</pre>
- <div class="block">Returns a subclass of <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time"><code>RegularTimePeriod</code></a> that is smaller than
- the specified class.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>c</code> - a subclass of <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time"><code>RegularTimePeriod</code></a>.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>A class.</dd>
- </dl>
- </li>
- </ul>
- <a name="previous--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>previous</h4>
- <pre>public abstract <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a> <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.141">previous</a>()</pre>
- <div class="block">Returns the time period preceding this one, or <code>null</code> if some
- lower limit has been reached.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The previous time period (possibly <code>null</code>).</dd>
- </dl>
- </li>
- </ul>
- <a name="next--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>next</h4>
- <pre>public abstract <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a> <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.149">next</a>()</pre>
- <div class="block">Returns the time period following this one, or <code>null</code> if some
- limit has been reached.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The next time period (possibly <code>null</code>).</dd>
- </dl>
- </li>
- </ul>
- <a name="getSerialIndex--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getSerialIndex</h4>
- <pre>public abstract long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.156">getSerialIndex</a>()</pre>
- <div class="block">Returns a serial index number for the time unit.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The serial index number.</dd>
- </dl>
- </li>
- </ul>
- <a name="peg-java.util.Calendar-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>peg</h4>
- <pre>public abstract void <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.184">peg</a>(java.util.Calendar calendar)</pre>
- <div class="block">Recalculates the start date/time and end date/time for this time period
- relative to the supplied calendar (which incorporates a time zone).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>calendar</code> - the calendar (<code>null</code> not permitted).</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>1.0.3</dd>
- </dl>
- </li>
- </ul>
- <a name="getStart--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getStart</h4>
- <pre>public java.util.Date <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.195">getStart</a>()</pre>
- <div class="block">Returns the date/time that marks the start of the time period. This
- method returns a new <code>Date</code> instance every time it is called.</div>
- <dl>
- <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
- <dd><code><a href="../../../../org/jfree/data/time/TimePeriod.html#getStart--">getStart</a></code> in interface <code><a href="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</a></code></dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The start date/time.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond--"><code>getFirstMillisecond()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getEnd--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEnd</h4>
- <pre>public java.util.Date <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.208">getEnd</a>()</pre>
- <div class="block">Returns the date/time that marks the end of the time period. This
- method returns a new <code>Date</code> instance every time it is called.</div>
- <dl>
- <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
- <dd><code><a href="../../../../org/jfree/data/time/TimePeriod.html#getEnd--">getEnd</a></code> in interface <code><a href="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</a></code></dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The end date/time.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond--"><code>getLastMillisecond()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getFirstMillisecond--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getFirstMillisecond</h4>
- <pre>public abstract long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.222">getFirstMillisecond</a>()</pre>
- <div class="block">Returns the first millisecond of the time period. This will be
- determined relative to the time zone specified in the constructor, or
- in the calendar instance passed in the most recent call to the
- <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#peg-java.util.Calendar-"><code>peg(Calendar)</code></a> method.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The first millisecond of the time period.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond--"><code>getLastMillisecond()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getFirstMillisecond-java.util.TimeZone-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getFirstMillisecond</h4>
- <pre>public long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.238">getFirstMillisecond</a>(java.util.TimeZone zone)</pre>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of 1.0.3, you should avoid using this method (it creates
- a new Calendar instance every time it is called). You are advised
- to call <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.Calendar-"><code>getFirstMillisecond(Calendar)</code></a> instead.</span></div>
- <div class="block">Returns the first millisecond of the time period, evaluated within a
- specific time zone.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>zone</code> - the time zone (<code>null</code> not permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The first millisecond of the time period.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.TimeZone-"><code>getLastMillisecond(TimeZone)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getFirstMillisecond-java.util.Calendar-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getFirstMillisecond</h4>
- <pre>public abstract long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.255">getFirstMillisecond</a>(java.util.Calendar calendar)</pre>
- <div class="block">Returns the first millisecond of the time period, evaluated using the
- supplied calendar (which incorporates a timezone).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>calendar</code> - the calendar (<code>null</code> not permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The first millisecond of the time period.</dd>
- <dt><span class="throwsLabel">Throws:</span></dt>
- <dd><code>java.lang.NullPointerException</code> - if <code>calendar</code> is <code>null</code>.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.Calendar-"><code>getLastMillisecond(Calendar)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getLastMillisecond--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getLastMillisecond</h4>
- <pre>public abstract long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.267">getLastMillisecond</a>()</pre>
- <div class="block">Returns the last millisecond of the time period. This will be
- determined relative to the time zone specified in the constructor, or
- in the calendar instance passed in the most recent call to the
- <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#peg-java.util.Calendar-"><code>peg(Calendar)</code></a> method.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The last millisecond of the time period.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond--"><code>getFirstMillisecond()</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getLastMillisecond-java.util.TimeZone-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getLastMillisecond</h4>
- <pre>public long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.283">getLastMillisecond</a>(java.util.TimeZone zone)</pre>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of 1.0.3, you should avoid using this method (it creates
- a new Calendar instance every time it is called). You are advised
- to call <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.Calendar-"><code>getLastMillisecond(Calendar)</code></a> instead.</span></div>
- <div class="block">Returns the last millisecond of the time period, evaluated within a
- specific time zone.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>zone</code> - the time zone (<code>null</code> not permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The last millisecond of the time period.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.TimeZone-"><code>getFirstMillisecond(TimeZone)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getLastMillisecond-java.util.Calendar-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getLastMillisecond</h4>
- <pre>public abstract long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.298">getLastMillisecond</a>(java.util.Calendar calendar)</pre>
- <div class="block">Returns the last millisecond of the time period, evaluated using the
- supplied calendar (which incorporates a timezone).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>calendar</code> - the calendar (<code>null</code> not permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The last millisecond of the time period.</dd>
- <dt><span class="seeLabel">See Also:</span></dt>
- <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.Calendar-"><code>getFirstMillisecond(Calendar)</code></a></dd>
- </dl>
- </li>
- </ul>
- <a name="getMiddleMillisecond--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMiddleMillisecond</h4>
- <pre>public long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.305">getMiddleMillisecond</a>()</pre>
- <div class="block">Returns the millisecond closest to the middle of the time period.</div>
- <dl>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The middle millisecond.</dd>
- </dl>
- </li>
- </ul>
- <a name="getMiddleMillisecond-java.util.TimeZone-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMiddleMillisecond</h4>
- <pre>public long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.323">getMiddleMillisecond</a>(java.util.TimeZone zone)</pre>
- <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of 1.0.3, you should avoid using this method (it creates
- a new Calendar instance every time it is called). You are advised
- to call <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond-java.util.Calendar-"><code>getMiddleMillisecond(Calendar)</code></a> instead.</span></div>
- <div class="block">Returns the millisecond closest to the middle of the time period,
- evaluated within a specific time zone.</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>zone</code> - the time zone (<code>null</code> not permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The middle millisecond.</dd>
- </dl>
- </li>
- </ul>
- <a name="getMiddleMillisecond-java.util.Calendar-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMiddleMillisecond</h4>
- <pre>public long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.338">getMiddleMillisecond</a>(java.util.Calendar calendar)</pre>
- <div class="block">Returns the millisecond closest to the middle of the time period,
- evaluated using the supplied calendar (which incorporates a timezone).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>calendar</code> - the calendar.</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The middle millisecond.</dd>
- </dl>
- </li>
- </ul>
- <a name="getMillisecond-org.jfree.data.time.TimePeriodAnchor-java.util.Calendar-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getMillisecond</h4>
- <pre>public long <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.356">getMillisecond</a>(<a href="../../../../org/jfree/data/time/TimePeriodAnchor.html" title="class in org.jfree.data.time">TimePeriodAnchor</a> anchor,
- java.util.Calendar calendar)</pre>
- <div class="block">Returns the millisecond (relative to the epoch) corresponding to the
- specified <code>anchor</code> using the supplied <code>calendar</code>
- (which incorporates a time zone).</div>
- <dl>
- <dt><span class="paramLabel">Parameters:</span></dt>
- <dd><code>anchor</code> - the anchor (<code>null</code> not permitted).</dd>
- <dd><code>calendar</code> - the calendar (<code>null</code> not permitted).</dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>Milliseconds since the epoch.</dd>
- <dt><span class="simpleTagLabel">Since:</span></dt>
- <dd>1.0.18</dd>
- </dl>
- </li>
- </ul>
- <a name="toString--">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>toString</h4>
- <pre>public java.lang.String <a href="../../../../src-html/org/jfree/data/time/RegularTimePeriod.html#line.374">toString</a>()</pre>
- <div class="block">Returns a string representation of the time period.</div>
- <dl>
- <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
- <dd><code>toString</code> in class <code>java.lang.Object</code></dd>
- <dt><span class="returnLabel">Returns:</span></dt>
- <dd>The string.</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/RegularTimePeriod.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/time/Quarter.html" title="class in org.jfree.data.time"><span class="typeNameLink">Prev Class</span></a></li>
- <li><a href="../../../../org/jfree/data/time/Second.html" title="class in org.jfree.data.time"><span class="typeNameLink">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../../index.html?org/jfree/data/time/RegularTimePeriod.html" target="_top">Frames</a></li>
- <li><a href="RegularTimePeriod.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>
|