📄 axis.html
字号:
</DD></DL><HR><A NAME="getTickLabelInsets()"><!-- --></A><H3>getTickLabelInsets</H3><PRE>public java.awt.Insets <B>getTickLabelInsets</B>()</PRE><DL><DD>Returns the insets for the tick labels.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The insets (never <code>null</code>).</DL></DD></DL><HR><A NAME="setTickLabelInsets(java.awt.Insets)"><!-- --></A><H3>setTickLabelInsets</H3><PRE>public void <B>setTickLabelInsets</B>(java.awt.Insets insets)</PRE><DL><DD>Sets the insets for the tick labels and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>insets</CODE> - the insets (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="isTickMarksVisible()"><!-- --></A><H3>isTickMarksVisible</H3><PRE>public boolean <B>isTickMarksVisible</B>()</PRE><DL><DD>Returns the flag that indicates whether or not the tick marks are showing.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the flag that indicates whether or not the tick marks are showing.</DL></DD></DL><HR><A NAME="setTickMarksVisible(boolean)"><!-- --></A><H3>setTickMarksVisible</H3><PRE>public void <B>setTickMarksVisible</B>(boolean flag)</PRE><DL><DD>Sets the flag that indicates whether or not the tick marks are showing and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the flag.</DL></DD></DL><HR><A NAME="getTickMarkInsideLength()"><!-- --></A><H3>getTickMarkInsideLength</H3><PRE>public float <B>getTickMarkInsideLength</B>()</PRE><DL><DD>Returns the inside length of the tick marks.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The length.</DL></DD></DL><HR><A NAME="setTickMarkInsideLength(float)"><!-- --></A><H3>setTickMarkInsideLength</H3><PRE>public void <B>setTickMarkInsideLength</B>(float length)</PRE><DL><DD>Sets the inside length of the tick marks and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>length</CODE> - the new length.</DL></DD></DL><HR><A NAME="getTickMarkOutsideLength()"><!-- --></A><H3>getTickMarkOutsideLength</H3><PRE>public float <B>getTickMarkOutsideLength</B>()</PRE><DL><DD>Returns the outside length of the tick marks.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The length.</DL></DD></DL><HR><A NAME="setTickMarkOutsideLength(float)"><!-- --></A><H3>setTickMarkOutsideLength</H3><PRE>public void <B>setTickMarkOutsideLength</B>(float length)</PRE><DL><DD>Sets the outside length of the tick marks and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>length</CODE> - the new length.</DL></DD></DL><HR><A NAME="getTickMarkStroke()"><!-- --></A><H3>getTickMarkStroke</H3><PRE>public java.awt.Stroke <B>getTickMarkStroke</B>()</PRE><DL><DD>Returns the pen/brush used to draw tick marks (if they are showing).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The pen/brush used to draw tick marks.</DL></DD></DL><HR><A NAME="setTickMarkStroke(java.awt.Stroke)"><!-- --></A><H3>setTickMarkStroke</H3><PRE>public void <B>setTickMarkStroke</B>(java.awt.Stroke stroke)</PRE><DL><DD>Sets the pen/brush used to draw tick marks (if they are showing) and sends an <A HREF="../../../../org/jfree/chart/event/AxisChangeEvent.html" title="class in org.jfree.chart.event"><CODE>AxisChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>stroke</CODE> - the new pen/brush (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getTickMarkPaint()"><!-- --></A><H3>getTickMarkPaint</H3><PRE>public java.awt.Paint <B>getTickMarkPaint</B>()</PRE><DL><DD>Returns the paint used to draw tick marks (if they are showing).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The paint.</DL></DD></DL><HR><A NAME="setTickMarkPaint(java.awt.Paint)"><!-- --></A><H3>setTickMarkPaint</H3><PRE>public void <B>setTickMarkPaint</B>(java.awt.Paint paint)</PRE><DL><DD>Sets the paint used to draw tick marks (if they are showing). <P> Registered listeners are notified of a general change to the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paint</CODE> - the new paint (null not permitted).</DL></DD></DL><HR><A NAME="getPlot()"><!-- --></A><H3>getPlot</H3><PRE>public <A HREF="../../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A> <B>getPlot</B>()</PRE><DL><DD>Returns the plot that the axis is assigned to. <P> This method will return null if the axis is not currently assigned to a plot.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The plot that the axis is assigned to.</DL></DD></DL><HR><A NAME="setPlot(org.jfree.chart.plot.Plot)"><!-- --></A><H3>setPlot</H3><PRE>public void <B>setPlot</B>(<A HREF="../../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A> plot)</PRE><DL><DD>Sets a reference to the plot that the axis is assigned to. <P> This method is used internally, you shouldn't need to call it yourself.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>plot</CODE> - the plot.</DL></DD></DL><HR><A NAME="getFixedDimension()"><!-- --></A><H3>getFixedDimension</H3><PRE>public double <B>getFixedDimension</B>()</PRE><DL><DD>Returns the fixed dimension for the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The fixed dimension.</DL></DD></DL><HR><A NAME="setFixedDimension(double)"><!-- --></A><H3>setFixedDimension</H3><PRE>public void <B>setFixedDimension</B>(double dimension)</PRE><DL><DD>Sets the fixed dimension for the axis. <P> This is used when combining more than one plot on a chart. In this case, there may be several axes that need to have the same height or width so that they are aligned. This method is used to fix a dimension for the axis (the context determines whether the dimension is horizontal or vertical).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dimension</CODE> - the fixed dimension.</DL></DD></DL><HR><A NAME="configure()"><!-- --></A><H3>configure</H3><PRE>public abstract void <B>configure</B>()</PRE><DL><DD>Configures the axis to work with the current plot. Override this method to perform any special processing (such as auto-rescaling).<P><DD><DL></DL></DD><DD><DL></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 abstract <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html" title="class in org.jfree.chart.axis">AxisSpace</A> <B>reserveSpace</B>(java.awt.Graphics2D g2, <A HREF="../../../../org/jfree/chart/plot/Plot.html" title="class in org.jfree.chart.plot">Plot</A> plot, java.awt.geom.Rectangle2D plotArea, org.jfree.ui.RectangleEdge edge, <A HREF="../../../../org/jfree/chart/axis/AxisSpace.html" title="class in org.jfree.chart.axis">AxisSpace</A> space)</PRE><DL><DD>Estimates the space (height or width) required to draw the axis.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device.<DD><CODE>plot</CODE> - the plot that the axis belongs to.<DD><CODE>plotArea</CODE> - the area within which the plot (including axes) should be drawn.<DD><CODE>edge</CODE> - the axis location.<DD><CODE>space</CODE> - space already reserved.<DT><B>Returns:</B><DD>The space required to draw the axis (including pre-reserved space).</DL></DD></DL><HR><A NAME="draw(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.plot.PlotRenderingInfo)"><!-- --></A><H3>draw</H3><PRE>public abstract <A HREF="../../../../org/jfree/chart/axis/AxisState.html" title="class in org.jfree.chart.axis">AxisState</A> <B>draw</B>(java.awt.Graphics2D g2, double cursor, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, <A HREF="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</A> plotState)</PRE><DL><DD>Draws the axis on a Java 2D graphics device (such as the screen or a printer).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g2</CODE> - the graphics device (<code>null</code> not permitted).<DD><CODE>cursor</CODE> - the cursor location (determines where to draw the axis).<DD><CODE>plotArea</CODE> - the area within which the axes and plot should be drawn.<DD><CODE>dataArea</CODE> - the area within which the data should be drawn.<DD><CODE>edge</CODE> - the axis location (<code>null</code> not permitted).<DD><CODE>plotState</CODE> - collects information about the plot (<code>null</code> permitted).<DT><B>Returns:</B><DD>the axis state (never <code>null</code>).</DL></DD></D
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -