timeline.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 376 行 · 第 1/2 页
HTML
376 行
<BR> Translates a millisecond (as defined by java.util.Date) into an index along this timeline.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="toTimelineValue(long)"><!-- --></A><H3>toTimelineValue</H3><PRE>public long <B>toTimelineValue</B>(long millisecond)</PRE><DL><DD>Translates a millisecond (as defined by java.util.Date) into an index along this timeline.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>millisecond</CODE> - the millisecond.<DT><B>Returns:</B><DD>A timeline value.</DL></DD></DL><HR><A NAME="toTimelineValue(java.util.Date)"><!-- --></A><H3>toTimelineValue</H3><PRE>public long <B>toTimelineValue</B>(java.util.Date date)</PRE><DL><DD>Translates a date into a value on this timeline.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the date.<DT><B>Returns:</B><DD>A timeline value</DL></DD></DL><HR><A NAME="toMillisecond(long)"><!-- --></A><H3>toMillisecond</H3><PRE>public long <B>toMillisecond</B>(long timelineValue)</PRE><DL><DD>Translates a value relative to this timeline into a domain value. The domain value obtained by this method is not always the same domain value that could have been supplied to translateDomainValueToTimelineValue(domainValue). This is because the original tranformation may not be complete reversable.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>timelineValue</CODE> - a timeline value.<DT><B>Returns:</B><DD>A domain value.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.html"><CODE>SegmentedTimeline</CODE></A></DL></DD></DL><HR><A NAME="containsDomainValue(long)"><!-- --></A><H3>containsDomainValue</H3><PRE>public boolean <B>containsDomainValue</B>(long millisecond)</PRE><DL><DD>Returns <code>true</code> if a value is contained in the timeline values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>millisecond</CODE> - the millisecond.<DT><B>Returns:</B><DD><code>true</code> if value is contained in the timeline and <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="containsDomainValue(java.util.Date)"><!-- --></A><H3>containsDomainValue</H3><PRE>public boolean <B>containsDomainValue</B>(java.util.Date date)</PRE><DL><DD>Returns <code>true</code> if a date is contained in the timeline values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the date to verify.<DT><B>Returns:</B><DD><code>true</code> if value is contained in the timeline and <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="containsDomainRange(long, long)"><!-- --></A><H3>containsDomainRange</H3><PRE>public boolean <B>containsDomainRange</B>(long fromMillisecond, long toMillisecond)</PRE><DL><DD>Returns <code>true</code> if a range of values are contained in the timeline.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fromMillisecond</CODE> - the start of the range to verify.<DD><CODE>toMillisecond</CODE> - the end of the range to verify.<DT><B>Returns:</B><DD><code>true</code> if the range is contained in the timeline or <code>false</code> otherwise</DL></DD></DL><HR><A NAME="containsDomainRange(java.util.Date, java.util.Date)"><!-- --></A><H3>containsDomainRange</H3><PRE>public boolean <B>containsDomainRange</B>(java.util.Date fromDate, java.util.Date toDate)</PRE><DL><DD>Returns <code>true</code> if a range of dates are contained in the timeline.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fromDate</CODE> - the start of the range to verify.<DD><CODE>toDate</CODE> - the end of the range to verify.<DT><B>Returns:</B><DD><code>true</code> if the range is contained in the timeline or <code>false</code> otherwise</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jfree/chart/axis/AxisConstants.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Timeline.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?