dateaxis.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 1,242 行 · 第 1/5 页
HTML
1,242 行
<PRE>public void <B>setTickMarkPosition</B>(<A HREF="../../../../org/jfree/chart/axis/DateTickMarkPosition.html">DateTickMarkPosition</A> position)</PRE><DL><DD>Sets the tick mark position (start, middle or end of the time period). 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>position</CODE> - the new position.</DL></DD></DL><HR><A NAME="configure()"><!-- --></A><H3>configure</H3><PRE>public void <B>configure</B>()</PRE><DL><DD>Configures the axis to work with the specified plot. If the axis has auto-scaling, then sets the maximum and minimum values.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#configure()">configure</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html">Axis</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isHiddenValue(long)"><!-- --></A><H3>isHiddenValue</H3><PRE>public boolean <B>isHiddenValue</B>(long millis)</PRE><DL><DD>Returns <code>true</code> if the axis hides this value, and <code>false</code> otherwise.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>millis</CODE> - the data value.<DT><B>Returns:</B><DD><code>false</code>.</DL></DD></DL><HR><A NAME="translateValueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>translateValueToJava2D</H3><PRE>public double <B>translateValueToJava2D</B>(double value, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Translates the data value to the display coordinates (Java 2D User Space) of the chart.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#translateValueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">translateValueToJava2D</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>value</CODE> - the date to be plotted.<DD><CODE>dataArea</CODE> - the rectangle (in Java2D space) where the data is to be plotted.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the coordinate corresponding to the supplied data value.</DL></DD></DL><HR><A NAME="translateDateToJava2D(java.util.Date, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>translateDateToJava2D</H3><PRE>public double <B>translateDateToJava2D</B>(java.util.Date date, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Translates a date to Java2D coordinates, based on the range displayed by this axis for the specified data area.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the date.<DD><CODE>dataArea</CODE> - the rectangle (in Java2D space) where the data is to be plotted.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the coordinate corresponding to the supplied date.</DL></DD></DL><HR><A NAME="translateJava2DtoValue(float, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)"><!-- --></A><H3>translateJava2DtoValue</H3><PRE>public double <B>translateJava2DtoValue</B>(float java2DValue, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)</PRE><DL><DD>Translates the Java2D (vertical) coordinate back to the corresponding data value.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#translateJava2DtoValue(float, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)">translateJava2DtoValue</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>java2DValue</CODE> - the coordinate in Java2D space.<DD><CODE>dataArea</CODE> - the rectangle (in Java2D space) where the data is to be plotted.<DD><CODE>edge</CODE> - the axis location.<DT><B>Returns:</B><DD>the data value corresponding to the Java2D coordinate.</DL></DD></DL><HR><A NAME="calculateLowestVisibleTickValue(org.jfree.chart.axis.DateTickUnit)"><!-- --></A><H3>calculateLowestVisibleTickValue</H3><PRE>public java.util.Date <B>calculateLowestVisibleTickValue</B>(<A HREF="../../../../org/jfree/chart/axis/DateTickUnit.html">DateTickUnit</A> unit)</PRE><DL><DD>Calculates the value of the lowest visible tick on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - date unit to use.<DT><B>Returns:</B><DD>The value of the lowest visible tick on the axis.</DL></DD></DL><HR><A NAME="calculateHighestVisibleTickValue(org.jfree.chart.axis.DateTickUnit)"><!-- --></A><H3>calculateHighestVisibleTickValue</H3><PRE>public java.util.Date <B>calculateHighestVisibleTickValue</B>(<A HREF="../../../../org/jfree/chart/axis/DateTickUnit.html">DateTickUnit</A> unit)</PRE><DL><DD>Calculates the value of the highest visible tick on the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unit</CODE> - date unit to use.<DT><B>Returns:</B><DD>the value of the highest visible tick on the axis.</DL></DD></DL><HR><A NAME="previousStandardDate(java.util.Date, org.jfree.chart.axis.DateTickUnit)"><!-- --></A><H3>previousStandardDate</H3><PRE>protected java.util.Date <B>previousStandardDate</B>(java.util.Date date, <A HREF="../../../../org/jfree/chart/axis/DateTickUnit.html">DateTickUnit</A> unit)</PRE><DL><DD>Returns the previous "standard" date, for a given date and tick unit.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the reference date.<DD><CODE>unit</CODE> - the tick unit.<DT><B>Returns:</B><DD>the previous "standard" date.</DL></DD></DL><HR><A NAME="nextStandardDate(java.util.Date, org.jfree.chart.axis.DateTickUnit)"><!-- --></A><H3>nextStandardDate</H3><PRE>protected java.util.Date <B>nextStandardDate</B>(java.util.Date date, <A HREF="../../../../org/jfree/chart/axis/DateTickUnit.html">DateTickUnit</A> unit)</PRE><DL><DD>Returns the first "standard" date (based on the specified field and units).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the reference date.<DD><CODE>unit</CODE> - the date tick unit.<DT><B>Returns:</B><DD>the next "standard" date.</DL></DD></DL><HR><A NAME="createStandardDateTickUnits()"><!-- --></A><H3>createStandardDateTickUnits</H3><PRE>public static <A HREF="../../../../org/jfree/chart/axis/TickUnits.html">TickUnits</A> <B>createStandardDateTickUnits</B>()</PRE><DL><DD>Returns a collection of standard date tick units. This collection will be used by default, but you are free to create your own collection if you want to (see the setStandardTickUnits(...) method inherited from the ValueAxis class).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a collection of standard date tick units.</DL></DD></DL><HR><A NAME="autoAdjustRange()"><!-- --></A><H3>autoAdjustRange</H3><PRE>protected void <B>autoAdjustRange</B>()</PRE><DL><DD>Rescales the axis to ensure that all data is visible.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html#autoAdjustRange()">autoAdjustRange</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/ValueAxis.html">ValueAxis</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isCompatiblePlot(org.jfree.chart.plot.Plot)"><!-- --></A><H3>isCompatiblePlot</H3><PRE>protected boolean <B>isCompatiblePlot</B>(<A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A> plot)</PRE><DL><DD>Checks the compatibility of a plot with this type of axis, returning true if the plot is compatible and false otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html#isCompatiblePlot(org.jfree.chart.plot.Plot)">isCompatiblePlot</A></CODE> in class <CODE><A HREF="../../../../org/jfree/chart/axis/Axis.html">Axis</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>plot</CODE> - the plot.<DT><B>Returns:</B><DD>a boolean indicating whether the plot is compatible with the axis.</DL></DD></DL><HR><A NAME="reserveSpace(java.awt.Graphics2D, org.jfree.chart.plot.Plot, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.axis.AxisSpace)"><!-- --></A><H3>reserveSpace</H3><PRE>public <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html">AxisSpace</A> <B>reserveSpace</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/Plot.html">Plot</A> plot, java.awt.geom.Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge, <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html">AxisSpace</A> space)</PRE><DL><DD>Returns the space required to draw the axis.<P><DD><DL><DT><B>Specified by:</B>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?