logarithmicaxis.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,074 行 · 第 1/5 页
HTML
1,074 行
</DL><HR><A NAME="getAllowNegativesFlag()"><!-- --></A><H3>getAllowNegativesFlag</H3><PRE>public boolean <B>getAllowNegativesFlag</B>()</PRE><DL><DD>Returns the 'allowNegativesFlag' flag; true to allow negative values in data, false to be able to plot positive values arbitrarily close to zero.<P><DD><DL><DT><B>Returns:</B><DD>the flag.</DL></DD></DL><HR><A NAME="setStrictValuesFlag(boolean)"><!-- --></A><H3>setStrictValuesFlag</H3><PRE>public void <B>setStrictValuesFlag</B>(boolean flgVal)</PRE><DL><DD>Sets the 'strictValuesFlag' flag; if true and 'allowNegativesFlag' is false then this axis will throw a runtime exception if any of its values are less than or equal to zero; if false then the axis will adjust for values less than or equal to zero as needed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>flgVal</CODE> - true for strict enforcement.</DL></DD></DL><HR><A NAME="getStrictValuesFlag()"><!-- --></A><H3>getStrictValuesFlag</H3><PRE>public boolean <B>getStrictValuesFlag</B>()</PRE><DL><DD>Returns the 'strictValuesFlag' flag; if true and 'allowNegativesFlag' is false then this axis will throw a runtime exception if any of its values are less than or equal to zero; if false then the axis will adjust for values less than or equal to zero as needed.<P><DD><DL><DT><B>Returns:</B><DD>true if strict enforcement is enabled.</DL></DD></DL><HR><A NAME="setExpTickLabelsFlag(boolean)"><!-- --></A><H3>setExpTickLabelsFlag</H3><PRE>public void <B>setExpTickLabelsFlag</B>(boolean flgVal)</PRE><DL><DD>Sets the 'expTickLabelsFlag' flag. If the 'log10TickLabelsFlag' is false then this will set whether or not "1e#"-style tick labels are used. The default is to use "1e#"-style tick labels.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>flgVal</CODE> - true for "1e#"-style tick labels, false for log10 or regular numeric tick labels.</DL></DD></DL><HR><A NAME="getExpTickLabelsFlag()"><!-- --></A><H3>getExpTickLabelsFlag</H3><PRE>public boolean <B>getExpTickLabelsFlag</B>()</PRE><DL><DD>Returns the 'expTickLabelsFlag' flag.<P><DD><DL><DT><B>Returns:</B><DD>true for "1e#"-style tick labels, false for log10 or regular numeric tick labels.</DL></DD></DL><HR><A NAME="setLog10TickLabelsFlag(boolean)"><!-- --></A><H3>setLog10TickLabelsFlag</H3><PRE>public void <B>setLog10TickLabelsFlag</B>(boolean flag)</PRE><DL><DD>Sets the 'log10TickLabelsFlag' flag. The default value is false.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - true for "10^n"-style tick labels, false for "1e#"-style or regular numeric tick labels.</DL></DD></DL><HR><A NAME="getLog10TickLabelsFlag()"><!-- --></A><H3>getLog10TickLabelsFlag</H3><PRE>public boolean <B>getLog10TickLabelsFlag</B>()</PRE><DL><DD>Returns the 'log10TickLabelsFlag' flag.<P><DD><DL><DT><B>Returns:</B><DD>true for "10^n"-style tick labels, false for "1e#"-style or regular numeric tick labels.</DL></DD></DL><HR><A NAME="setRange(org.jfree.data.Range)"><!-- --></A><H3>setRange</H3><PRE>public void <B>setRange</B>(<A HREF="../../../../org/jfree/data/Range.html">Range</A> range)</PRE><DL><DD>Overridden version that calls original and then sets up flag for log axis processing.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#setRange(org.jfree.data.Range)">setRange</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>range</CODE> - the new range.</DL></DD></DL><HR><A NAME="setupSmallLogFlag()"><!-- --></A><H3>setupSmallLogFlag</H3><PRE>protected void <B>setupSmallLogFlag</B>()</PRE><DL><DD>Sets up flag for log axis processing. Set true if negative values not allowed and the lower bound is between 0 and 10.<P><DD><DL></DL></DD></DL><HR><A NAME="setupNumberFmtObj()"><!-- --></A><H3>setupNumberFmtObj</H3><PRE>protected void <B>setupNumberFmtObj</B>()</PRE><DL><DD>Sets up the number formatter object according to the 'expTickLabelsFlag' flag.<P><DD><DL></DL></DD></DL><HR><A NAME="switchedLog10(double)"><!-- --></A><H3>switchedLog10</H3><PRE>protected double <B>switchedLog10</B>(double val)</PRE><DL><DD>Returns the log10 value, depending on if values between 0 and 1 are being plotted. If negative values are not allowed and the lower bound is between 0 and 10 then a normal log is returned; otherwise the returned value is adjusted if the given value is less than 10.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>val</CODE> - the value.<DT><B>Returns:</B><DD>log<sub>10</sub>(val).</DL></DD></DL><HR><A NAME="adjustedLog10(double)"><!-- --></A><H3>adjustedLog10</H3><PRE>public double <B>adjustedLog10</B>(double val)</PRE><DL><DD>Returns an adjusted log10 value for graphing purposes. The first adjustment is that negative values are changed to positive during the calculations, and then the answer is negated at the end. The second is that, for values less than 10, an increasingly large (0 to 1) scaling factor is added such that at 0 the value is adjusted to 1, resulting in a returned result of 0.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>val</CODE> - value for which log10 should be calculated.<DT><B>Returns:</B><DD>an adjusted log<sub>10</sub>(val).</DL></DD></DL><HR><A NAME="computeLogFloor(double)"><!-- --></A><H3>computeLogFloor</H3><PRE>protected double <B>computeLogFloor</B>(double lower)</PRE><DL><DD>Returns the largest (closest to positive infinity) double value that is not greater than the argument, is equal to a mathematical integer and satisfying the condition that log base 10 of the value is an integer (i.e., the value returned will be a power of 10: 1, 10, 100, 1000, etc.).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lower</CODE> - a double value below which a floor will be calcualted.<DT><B>Returns:</B><DD>10<sup>N</sup> with N .. { 1 ... }</DL></DD></DL><HR><A NAME="computeLogCeil(double)"><!-- --></A><H3>computeLogCeil</H3><PRE>protected double <B>computeLogCeil</B>(double upper)</PRE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?