dateaxis.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,242 行 · 第 1/5 页

HTML
1,242 行
字号
<DT><B>Returns:</B><DD>The timeline.</DL></DD></DL><HR><A NAME="setTimeline(org.jfree.chart.axis.Timeline)"><!-- --></A><H3>setTimeline</H3><PRE>public void <B>setTimeline</B>(<A HREF="../../../../org/jfree/chart/axis/Timeline.html">Timeline</A>&nbsp;timeline)</PRE><DL><DD>Sets the underlying timeline to use for this axis. <P> If the timeline is changed, an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.\<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>timeline</CODE> - the new timeline.</DL></DD></DL><HR><A NAME="getTickUnit()"><!-- --></A><H3>getTickUnit</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/DateTickUnit.html">DateTickUnit</A> <B>getTickUnit</B>()</PRE><DL><DD>Returns the tick unit for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the tick unit for the axis.</DL></DD></DL><HR><A NAME="setTickUnit(org.jfree.chart.axis.DateTickUnit)"><!-- --></A><H3>setTickUnit</H3><PRE>public void <B>setTickUnit</B>(<A HREF="../../../../org/jfree/chart/axis/DateTickUnit.html">DateTickUnit</A>&nbsp;unit)</PRE><DL><DD>Sets the tick unit for the axis.  The auto-tick-unit-selection flag is set to <code>false</code>, and registered listeners are notified that the axis has been changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the new tick unit.</DL></DD></DL><HR><A NAME="setTickUnit(org.jfree.chart.axis.DateTickUnit, boolean, boolean)"><!-- --></A><H3>setTickUnit</H3><PRE>public void <B>setTickUnit</B>(<A HREF="../../../../org/jfree/chart/axis/DateTickUnit.html">DateTickUnit</A>&nbsp;unit,                        boolean&nbsp;notify,                        boolean&nbsp;turnOffAutoSelection)</PRE><DL><DD>Sets the tick unit attribute without any other side effects.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - the new tick unit.<DD><CODE>notify</CODE> - notify registered listeners?<DD><CODE>turnOffAutoSelection</CODE> - turn off auto selection?</DL></DD></DL><HR><A NAME="getDateFormatOverride()"><!-- --></A><H3>getDateFormatOverride</H3><PRE>public java.text.DateFormat <B>getDateFormatOverride</B>()</PRE><DL><DD>Returns the date format override.  If this is non-null, then it will be used to format the dates on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the date format override.</DL></DD></DL><HR><A NAME="setDateFormatOverride(java.text.DateFormat)"><!-- --></A><H3>setDateFormatOverride</H3><PRE>public void <B>setDateFormatOverride</B>(java.text.DateFormat&nbsp;formatter)</PRE><DL><DD>Sets the date format override.  If this is non-null, then it will be used to format the dates on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>formatter</CODE> - the date formatter (<code>null</code> permitted).</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>&nbsp;range)</PRE><DL><DD>Sets the upper and lower bounds for the axis.  An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.  As a side-effect, the auto-range flag is set to false.<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="setRange(java.util.Date, java.util.Date)"><!-- --></A><H3>setRange</H3><PRE>public void <B>setRange</B>(java.util.Date&nbsp;lower,                     java.util.Date&nbsp;upper)</PRE><DL><DD>Sets the axis range.  An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>lower</CODE> - the lower bound for the axis.<DD><CODE>upper</CODE> - the upper bound for the axis.</DL></DD></DL><HR><A NAME="setRange(double, double)"><!-- --></A><H3>setRange</H3><PRE>public void <B>setRange</B>(double&nbsp;lower,                     double&nbsp;upper)</PRE><DL><DD>Sets the axis range.  An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#setRange(double, double)">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>lower</CODE> - the lower bound for the axis.<DD><CODE>upper</CODE> - the upper bound for the axis.</DL></DD></DL><HR><A NAME="getMinimumDate()"><!-- --></A><H3>getMinimumDate</H3><PRE>public java.util.Date <B>getMinimumDate</B>()</PRE><DL><DD>Returns the earliest date visible on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the earliest date visible on the axis.</DL></DD></DL><HR><A NAME="setMinimumDate(java.util.Date)"><!-- --></A><H3>setMinimumDate</H3><PRE>public void <B>setMinimumDate</B>(java.util.Date&nbsp;minimumDate)</PRE><DL><DD>Sets the minimum date visible on the axis.  An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>minimumDate</CODE> - the new minimum date.</DL></DD></DL><HR><A NAME="getMaximumDate()"><!-- --></A><H3>getMaximumDate</H3><PRE>public java.util.Date <B>getMaximumDate</B>()</PRE><DL><DD>Returns the latest date visible on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the latest date visible on the axis.</DL></DD></DL><HR><A NAME="setMaximumDate(java.util.Date)"><!-- --></A><H3>setMaximumDate</H3><PRE>public void <B>setMaximumDate</B>(java.util.Date&nbsp;maximumDate)</PRE><DL><DD>Sets the maximum date visible on the axis.  An <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html"><CODE>AxisChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maximumDate</CODE> - the new maximum date.</DL></DD></DL><HR><A NAME="getTickMarkPosition()"><!-- --></A><H3>getTickMarkPosition</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/DateTickMarkPosition.html">DateTickMarkPosition</A> <B>getTickMarkPosition</B>()</PRE><DL><DD>Returns the tick mark position (start, middle or end of the time period).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The position.</DL></DD></DL><HR><A NAME="setTickMarkPosition(org.jfree.chart.axis.DateTickMarkPosition)"><!-- --></A><H3>setTickMarkPosition</H3>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?