📄 segmentedtimeline.segment.html
字号:
<DL><DD>Returns <code>true</code> if a segment is contained in this segment.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>segment</CODE> - the segment to test for inclusion<DT><B>Returns:</B><DD><code>true</code> if the segment is contained in this segment.</DL></DD></DL><HR><A NAME="contained(long, long)"><!-- --></A><H3>contained</H3><PRE>public boolean <B>contained</B>(long from, long to)</PRE><DL><DD>Returns <code>true</code> if this segment is contained in an interval.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>from</CODE> - the start of the interval.<DD><CODE>to</CODE> - the end of the interval.<DT><B>Returns:</B><DD>true this segment is contained in the interval</DL></DD></DL><HR><A NAME="intersect(long, long)"><!-- --></A><H3>intersect</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.Segment.html" title="class in org.jfree.chart.axis">SegmentedTimeline.Segment</A> <B>intersect</B>(long from, long to)</PRE><DL><DD>Returns a segment that is the intersection of this segment and the interval.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>from</CODE> - the start of the interval.<DD><CODE>to</CODE> - the end of the interval.<DT><B>Returns:</B><DD>A segment.</DL></DD></DL><HR><A NAME="before(org.jfree.chart.axis.SegmentedTimeline.Segment)"><!-- --></A><H3>before</H3><PRE>public boolean <B>before</B>(<A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.Segment.html" title="class in org.jfree.chart.axis">SegmentedTimeline.Segment</A> other)</PRE><DL><DD>Returns <code>true</code> if this segment is wholly before another segment.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - the other segment.<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="after(org.jfree.chart.axis.SegmentedTimeline.Segment)"><!-- --></A><H3>after</H3><PRE>public boolean <B>after</B>(<A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.Segment.html" title="class in org.jfree.chart.axis">SegmentedTimeline.Segment</A> other)</PRE><DL><DD>Returns <code>true</code> if this segment is wholly after another segment.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - the other segment.<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object object)</PRE><DL><DD>Tests an object (usually another <code>Segment</code>) for equality with this segment.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - The other segment to compare with us<DT><B>Returns:</B><DD>true if we are the same segment</DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.Segment.html" title="class in org.jfree.chart.axis">SegmentedTimeline.Segment</A> <B>copy</B>()</PRE><DL><DD>Returns a copy of ourselves or <code>null</code> if there was an exception during cloning.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A copy of this segment.</DL></DD></DL><HR><A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(java.lang.Object object)</PRE><DL><DD>Will compare this Segment with another Segment (from Comparable interface).<P><DD><DL><DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - The other Segment to compare with<DT><B>Returns:</B><DD>-1: this < object, 0: this.equal(object) and +1: this > object</DL></DD></DL><HR><A NAME="inIncludeSegments()"><!-- --></A><H3>inIncludeSegments</H3><PRE>public boolean <B>inIncludeSegments</B>()</PRE><DL><DD>Returns true if we are an included segment and we are not an exception.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><HR><A NAME="inExcludeSegments()"><!-- --></A><H3>inExcludeSegments</H3><PRE>public boolean <B>inExcludeSegments</B>()</PRE><DL><DD>Returns true if we are an excluded segment.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</DL></DD></DL><HR><A NAME="inExceptionSegments()"><!-- --></A><H3>inExceptionSegments</H3><PRE>public boolean <B>inExceptionSegments</B>()</PRE><DL><DD>Returns true if we are an exception segment. This is implemented via a binary search on the exceptionSegments sorted list. If the segment is not listed as an exception in our list and we have a baseTimeline, a check is performed to see if the segment is inside an excluded segment from our base. If so, it is also considered an exception.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if we are an exception segment.</DL></DD></DL><HR><A NAME="inc(long)"><!-- --></A><H3>inc</H3><PRE>public void <B>inc</B>(long n)</PRE><DL><DD>Increments the internal attributes of this segment by a number of segments.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Number of segments to increment.</DL></DD></DL><HR><A NAME="inc()"><!-- --></A><H3>inc</H3><PRE>public void <B>inc</B>()</PRE><DL><DD>Increments the internal attributes of this segment by one segment. The exact time incremented is segmentSize.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="dec(long)"><!-- --></A><H3>dec</H3><PRE>public void <B>dec</B>(long n)</PRE><DL><DD>Decrements the internal attributes of this segment by a number of segments.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Number of segments to decrement.</DL></DD></DL><HR><A NAME="dec()"><!-- --></A><H3>dec</H3><PRE>public void <B>dec</B>()</PRE><DL><DD>Decrements the internal attributes of this segment by one segment. The exact time decremented is segmentSize.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="moveIndexToStart()"><!-- --></A><H3>moveIndexToStart</H3><PRE>public void <B>moveIndexToStart</B>()</PRE><DL><DD>Moves the index of this segment to the beginning if the segment.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="moveIndexToEnd()"><!-- --></A><H3>moveIndexToEnd</H3><PRE>public void <B>moveIndexToEnd</B>()</PRE><DL><DD>Moves the index of this segment to the end of the segment.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </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/SegmentedTimeline.BaseTimelineSegmentRange.html" title="class in org.jfree.chart.axis"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/chart/axis/SegmentedTimeline.SegmentRange.html" title="class in org.jfree.chart.axis"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="SegmentedTimeline.Segment.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -