📄 segmentedtimeline.html
字号:
<BR> Translates a date into a value relative to the segmented timeline.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.html#toTimelineValue(long)">toTimelineValue</A></B>(long millisecond)</CODE><BR> Translates a value relative to the domain value (all Dates) into a value relative to the segmented timeline.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="DAY_SEGMENT_SIZE"><!-- --></A><H3>DAY_SEGMENT_SIZE</H3><PRE>public static final long <B>DAY_SEGMENT_SIZE</B></PRE><DL><DD>Defines a day segment size in ms.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.chart.axis.SegmentedTimeline.DAY_SEGMENT_SIZE">Constant Field Values</A></DL></DL><HR><A NAME="HOUR_SEGMENT_SIZE"><!-- --></A><H3>HOUR_SEGMENT_SIZE</H3><PRE>public static final long <B>HOUR_SEGMENT_SIZE</B></PRE><DL><DD>Defines a one hour segment size in ms.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.chart.axis.SegmentedTimeline.HOUR_SEGMENT_SIZE">Constant Field Values</A></DL></DL><HR><A NAME="FIFTEEN_MINUTE_SEGMENT_SIZE"><!-- --></A><H3>FIFTEEN_MINUTE_SEGMENT_SIZE</H3><PRE>public static final long <B>FIFTEEN_MINUTE_SEGMENT_SIZE</B></PRE><DL><DD>Defines a 15-minute segment size in ms.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.chart.axis.SegmentedTimeline.FIFTEEN_MINUTE_SEGMENT_SIZE">Constant Field Values</A></DL></DL><HR><A NAME="MINUTE_SEGMENT_SIZE"><!-- --></A><H3>MINUTE_SEGMENT_SIZE</H3><PRE>public static final long <B>MINUTE_SEGMENT_SIZE</B></PRE><DL><DD>Defines a one-minute segment size in ms.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jfree.chart.axis.SegmentedTimeline.MINUTE_SEGMENT_SIZE">Constant Field Values</A></DL></DL><HR><A NAME="FIRST_MONDAY_AFTER_1900"><!-- --></A><H3>FIRST_MONDAY_AFTER_1900</H3><PRE>public static long <B>FIRST_MONDAY_AFTER_1900</B></PRE><DL><DD>Utility constant that defines the startTime as the first monday after 1/1/1970. This should be used when creating a SegmentedTimeline for Monday through Friday. See static block below for calculation of this constant.<P><DL></DL></DL><HR><A NAME="NO_DST_TIME_ZONE"><!-- --></A><H3>NO_DST_TIME_ZONE</H3><PRE>public static java.util.TimeZone <B>NO_DST_TIME_ZONE</B></PRE><DL><DD>Utility TimeZone object that has no DST and an offset equal to the default TimeZone. This allows easy arithmetic between days as each one will have equal size.<P><DL></DL></DL><HR><A NAME="DEFAULT_TIME_ZONE"><!-- --></A><H3>DEFAULT_TIME_ZONE</H3><PRE>public static java.util.TimeZone <B>DEFAULT_TIME_ZONE</B></PRE><DL><DD>This is the default time zone where the application is running. See getTime() below where we make use of certain transformations between times in the default time zone and the no-dst time zone used for our calculations.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="SegmentedTimeline(long, int, int)"><!-- --></A><H3>SegmentedTimeline</H3><PRE>public <B>SegmentedTimeline</B>(long segmentSize, int segmentsIncluded, int segmentsExcluded)</PRE><DL><DD>Constructs a new segmented timeline, optionaly using another segmented timeline as its base. This chaining of SegmentedTimelines allows further segmentation into smaller timelines. If a base<P><DT><B>Parameters:</B><DD><CODE>segmentSize</CODE> - the size of a segment in ms. This time unit will be used to compute the included and excluded segments of the timeline.<DD><CODE>segmentsIncluded</CODE> - Number of consecutive segments to include.<DD><CODE>segmentsExcluded</CODE> - Number of consecutive segments to exclude.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="newMondayThroughFridayTimeline()"><!-- --></A><H3>newMondayThroughFridayTimeline</H3><PRE>public static <A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.html" title="class in org.jfree.chart.axis">SegmentedTimeline</A> <B>newMondayThroughFridayTimeline</B>()</PRE><DL><DD>Factory method to create a Monday through Friday SegmentedTimeline. <P> The <code>startTime</code> of the resulting timeline will be midnight of the firt Monday after 1/1/1900.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A fully initialized SegmentedTimeline.</DL></DD></DL><HR><A NAME="newFifteenMinuteTimeline()"><!-- --></A><H3>newFifteenMinuteTimeline</H3><PRE>public static <A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.html" title="class in org.jfree.chart.axis">SegmentedTimeline</A> <B>newFifteenMinuteTimeline</B>()</PRE><DL><DD>Factory method to create a 15-min, 9:00 AM thought 4:00 PM, Monday through Friday SegmentedTimeline. <P> This timeline uses a segmentSize of FIFTEEN_MIN_SEGMENT_SIZE. The segment group is defined as 28 included segments (9:00 AM through 4:00 PM) and 68 excluded segments (4:00 PM through 9:00 AM the next day). <P> In order to exclude Saturdays and Sundays it uses a baseTimeline that only includes Monday through Friday days. <P> The <code>startTime</code> of the resulting timeline will be 9:00 AM after the startTime of the baseTimeline. This will correspond to 9:00 AM of the firt Monday after 1/1/1900.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A fully initialized SegmentedTimeline.</DL></DD></DL><HR><A NAME="getAdjustForDaylightSaving()"><!-- --></A><H3>getAdjustForDaylightSaving</H3><PRE>public boolean <B>getAdjustForDaylightSaving</B>()</PRE><DL><DD>Returns the flag that controls whether or not the daylight saving adjustment is applied.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="setAdjustForDaylightSaving(boolean)"><!-- --></A><H3>setAdjustForDaylightSaving</H3><PRE>public void <B>setAdjustForDaylightSaving</B>(boolean adjust)</PRE><DL><DD>Sets the flag that controls whether or not the daylight saving adjustment is applied.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adjust</CODE> - the flag.</DL></DD></DL><HR><A NAME="setStartTime(long)"><!-- --></A><H3>setStartTime</H3><PRE>public void <B>setStartTime</B>(long millisecond)</PRE><DL><DD>Sets the start time for the timeline. This is the beginning of segment zero.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>millisecond</CODE> - the start time (encoded as in java.util.Date).</DL></DD></DL><HR><A NAME="getStartTime()"><!-- --></A><H3>getStartTime</H3><PRE>public long <B>getStartTime</B>()</PRE><DL><DD>Returns the start time for the timeline. This is the beginning of segment zero.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The start time.</DL></DD></DL><HR><A NAME="getSegmentsExcluded()"><!-- --></A><H3>getSegmentsExcluded</H3><PRE>public int <B>getSegmentsExcluded</B>()</PRE><DL><DD>Returns the number of segments excluded per segment group.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of segments excluded.</DL></DD></DL><HR><A NAME="getSegmentsExcludedSize()"><!-- --></A><H3>getSegmentsExcludedSize</H3><PRE>public long <B>getSegmentsExcludedSize</B>()</PRE><DL><DD>Returns the size in milliseconds of the segments excluded per segment group.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The size in milliseconds.</DL></DD></DL><HR><A NAME="getGroupSegmentCount()"><!-- --></A><H3>getGroupSegmentCount</H3><PRE>public int <B>getGroupSegmentCount</B>()</PRE><DL><DD>Returns the number of segments in a segment group. This will be equal to segments included plus segments excluded.<P><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -