📄 range.html
字号:
</DL><HR><A NAME="getUpperBound()"><!-- --></A><H3>getUpperBound</H3><PRE>public double <A HREF="../../../src-html/org/jfree/data/Range.html#line.109"><B>getUpperBound</B></A>()</PRE><DL><DD>Returns the upper bound for the range.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The upper bound.</DL></DD></DL><HR><A NAME="getLength()"><!-- --></A><H3>getLength</H3><PRE>public double <A HREF="../../../src-html/org/jfree/data/Range.html#line.118"><B>getLength</B></A>()</PRE><DL><DD>Returns the length of the range.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The length.</DL></DD></DL><HR><A NAME="getCentralValue()"><!-- --></A><H3>getCentralValue</H3><PRE>public double <A HREF="../../../src-html/org/jfree/data/Range.html#line.127"><B>getCentralValue</B></A>()</PRE><DL><DD>Returns the central value for the range.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The central value.</DL></DD></DL><HR><A NAME="contains(double)"><!-- --></A><H3>contains</H3><PRE>public boolean <A HREF="../../../src-html/org/jfree/data/Range.html#line.139"><B>contains</B></A>(double value)</PRE><DL><DD>Returns <code>true</code> if the range contains the specified value and <code>false</code> otherwise.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the value to lookup.<DT><B>Returns:</B><DD><code>true</code> if the range contains the specified value.</DL></DD></DL><HR><A NAME="intersects(double, double)"><!-- --></A><H3>intersects</H3><PRE>public boolean <A HREF="../../../src-html/org/jfree/data/Range.html#line.152"><B>intersects</B></A>(double b0, double b1)</PRE><DL><DD>Returns <code>true</code> if the range intersects with the specified range, and <code>false</code> otherwise.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b0</CODE> - the lower bound (should be <= b1).<DD><CODE>b1</CODE> - the upper bound (should be >= b0).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="constrain(double)"><!-- --></A><H3>constrain</H3><PRE>public double <A HREF="../../../src-html/org/jfree/data/Range.html#line.169"><B>constrain</B></A>(double value)</PRE><DL><DD>Returns the value within the range that is closest to the specified value.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the value.<DT><B>Returns:</B><DD>The constrained value.</DL></DD></DL><HR><A NAME="combine(org.jfree.data.Range, org.jfree.data.Range)"><!-- --></A><H3>combine</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../src-html/org/jfree/data/Range.html#line.198"><B>combine</B></A>(<A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> range1, <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> range2)</PRE><DL><DD>Creates a new range by combining two existing ranges. <P> Note that: <ul> <li>either range can be <code>null</code>, in which case the other range is returned;</li> <li>if both ranges are <code>null</code> the return value is <code>null</code>.</li> </ul><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>range1</CODE> - the first range (<code>null</code> permitted).<DD><CODE>range2</CODE> - the second range (<code>null</code> permitted).<DT><B>Returns:</B><DD>A new range (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="expandToInclude(org.jfree.data.Range, double)"><!-- --></A><H3>expandToInclude</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../src-html/org/jfree/data/Range.html#line.227"><B>expandToInclude</B></A>(<A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> range, double value)</PRE><DL><DD>Returns a range that includes all the values in the specified <code>range</code> AND the specified <code>value</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>range</CODE> - the range (<code>null</code> permitted).<DD><CODE>value</CODE> - the value that must be included.<DT><B>Returns:</B><DD>A range.<DT><B>Since:</B></DT> <DD>1.0.1</DD></DL></DD></DL><HR><A NAME="expand(org.jfree.data.Range, double, double)"><!-- --></A><H3>expand</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../src-html/org/jfree/data/Range.html#line.253"><B>expand</B></A>(<A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> range, double lowerMargin, double upperMargin)</PRE><DL><DD>Creates a new range by adding margins to an existing range.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>range</CODE> - the range (<code>null</code> not permitted).<DD><CODE>lowerMargin</CODE> - the lower margin (expressed as a percentage of the range length).<DD><CODE>upperMargin</CODE> - the upper margin (expressed as a percentage of the range length).<DT><B>Returns:</B><DD>The expanded range.</DL></DD></DL><HR><A NAME="shift(org.jfree.data.Range, double)"><!-- --></A><H3>shift</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../src-html/org/jfree/data/Range.html#line.273"><B>shift</B></A>(<A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> base, double delta)</PRE><DL><DD>Shifts the range by the specified amount.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>base</CODE> - the base range.<DD><CODE>delta</CODE> - the shift amount.<DT><B>Returns:</B><DD>A new range.</DL></DD></DL><HR><A NAME="shift(org.jfree.data.Range, double, boolean)"><!-- --></A><H3>shift</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../src-html/org/jfree/data/Range.html#line.288"><B>shift</B></A>(<A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> base, double delta, boolean allowZeroCrossing)</PRE><DL><DD>Shifts the range by the specified amount.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>base</CODE> - the base range.<DD><CODE>delta</CODE> - the shift amount.<DD><CODE>allowZeroCrossing</CODE> - a flag that determines whether or not the bounds of the range are allowed to cross zero after adjustment.<DT><B>Returns:</B><DD>A new range.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../src-html/org/jfree/data/Range.html#line.329"><B>equals</B></A>(java.lang.Object obj)</PRE><DL><DD>Tests this object for equality with an arbitrary object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to test against (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <A HREF="../../../src-html/org/jfree/data/Range.html#line.348"><B>hashCode</B></A>()</PRE><DL><DD>Returns a hash code.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A hash code.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <A HREF="../../../src-html/org/jfree/data/Range.html#line.364"><B>toString</B></A>()</PRE><DL><DD>Returns a string representation of this Range.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A String "Range[lower,upper]" where lower=lower range and upper=upper range.</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=2 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="class-use/Range.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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/data/KeyToGroupMap.html" title="class in org.jfree.data"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/data/RangeInfo.html" title="interface in org.jfree.data"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/jfree/data/Range.html" target="_top"><B>FRAMES</B></A> <A HREF="Range.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -