📄 logarithmicaxis.html
字号:
<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="setAllowNegativesFlag(boolean)"><!-- --></A><H3>setAllowNegativesFlag</H3><PRE>public void <B>setAllowNegativesFlag</B>(boolean flgVal)</PRE><DL><DD>Sets 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>Parameters:</B><DD><CODE>flgVal</CODE> - the new value of the flag.</DL></DD></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" title="class in org.jfree.data">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" title="class in org.jfree.chart.axis">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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -