📄 range.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getLowerBound()"><!-- --></A><H3>getLowerBound</H3><PRE>public double <B>getLowerBound</B>()</PRE><DL><DD>Returns the lower bound for the range.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The lower bound.</DL></DD></DL><HR><A NAME="getUpperBound()"><!-- --></A><H3>getUpperBound</H3><PRE>public double <B>getUpperBound</B>()</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 <B>getLength</B>()</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 <B>getCentralValue</B>()</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 <B>contains</B>(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 <B>intersects</B>(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.<DD><CODE>b1</CODE> - the upper bound.<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="constrain(double)"><!-- --></A><H3>constrain</H3><PRE>public double <B>constrain</B>(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> <B>combine</B>(<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="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> <B>expand</B>(<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="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object object)</PRE><DL><DD>Tests this object for equality with an arbitrary object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</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 <B>hashCode</B>()</PRE><DL><DD>Returns a hash code.<P><DD><DL></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 <B>toString</B>()</PRE><DL><DD>Returns a string representation of this Range.<P><DD><DL></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=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/data/PowerFunction2D.html" title="class in org.jfree.data"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/data/Regression.html" title="class in org.jfree.data"><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="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 + -