📄 chartpanel.html
字号:
int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, boolean useBuffer, boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips)</CODE><BR> Constructs a JFreeChart panel.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#actionPerformed(java.awt.event.ActionEvent)">actionPerformed</A></B>(java.awt.event.ActionEvent event)</CODE><BR> Handles action events generated by the popup menu.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#addChartMouseListener(org.jfree.chart.ChartMouseListener)">addChartMouseListener</A></B>(<A HREF="../../../org/jfree/chart/ChartMouseListener.html" title="interface in org.jfree.chart">ChartMouseListener</A> listener)</CODE><BR> Adds a listener to the list of objects listening for chart mouse events.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#autoRangeBoth()">autoRangeBoth</A></B>()</CODE><BR> Restores the auto-range calculation on both axes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#autoRangeHorizontal()">autoRangeHorizontal</A></B>()</CODE><BR> Restores the auto-range calculation on the horizontal axis.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#autoRangeVertical()">autoRangeVertical</A></B>()</CODE><BR> Restores the auto-range calculation on the vertical axis.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#chartChanged(org.jfree.chart.event.ChartChangeEvent)">chartChanged</A></B>(<A HREF="../../../org/jfree/chart/event/ChartChangeEvent.html" title="class in org.jfree.chart.event">ChartChangeEvent</A> event)</CODE><BR> Receives notification of changes to the chart, and redraws the chart.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#chartProgress(org.jfree.chart.event.ChartProgressEvent)">chartProgress</A></B>(<A HREF="../../../org/jfree/chart/event/ChartProgressEvent.html" title="class in org.jfree.chart.event">ChartProgressEvent</A> event)</CODE><BR> Receives notification of a chart progress event.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#createChartPrintJob()">createChartPrintJob</A></B>()</CODE><BR> Creates a print job for the chart.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected javax.swing.JPopupMenu</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#createPopupMenu(boolean, boolean, boolean, boolean)">createPopupMenu</A></B>(boolean properties, boolean save, boolean print, boolean zoom)</CODE><BR> Creates a popup menu for the panel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#displayPopupMenu(int, int)">displayPopupMenu</A></B>(int x, int y)</CODE><BR> The idea is to modify the zooming options depending on the type of chart being displayed by the panel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#doSaveAs()">doSaveAs</A></B>()</CODE><BR> Opens a file chooser and gives the user an opportunity to save the chart in PNG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jfree/chart/JFreeChart.html" title="class in org.jfree.chart">JFreeChart</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getChart()">getChart</A></B>()</CODE><BR> Returns the chart contained in the panel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getChartRenderingInfo()">getChartRenderingInfo</A></B>()</CODE><BR> Returns the chart rendering info from the most recent chart redraw.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getDismissDelay()">getDismissDelay</A></B>()</CODE><BR> Returns the dismissal tooltip delay value used inside this chart panel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jfree/chart/entity/ChartEntity.html" title="class in org.jfree.chart.entity">ChartEntity</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getEntityForPoint(int, int)">getEntityForPoint</A></B>(int viewX, int viewY)</CODE><BR> Returns the chart entity at a given point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getInitialDelay()">getInitialDelay</A></B>()</CODE><BR> Returns the initial tooltip delay value used inside this chart panel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getMaximumDrawHeight()">getMaximumDrawHeight</A></B>()</CODE><BR> Returns the maximum drawing height for charts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getMaximumDrawWidth()">getMaximumDrawWidth</A></B>()</CODE><BR> Returns the maximum drawing width for charts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getMinimumDrawHeight()">getMinimumDrawHeight</A></B>()</CODE><BR> Returns the minimum drawing height for charts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getMinimumDrawWidth()">getMinimumDrawWidth</A></B>()</CODE><BR> Returns the minimum drawing width for charts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> javax.swing.JPopupMenu</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getPopupMenu()">getPopupMenu</A></B>()</CODE><BR> Returns the popup menu.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getReshowDelay()">getReshowDelay</A></B>()</CODE><BR> Returns the reshow tooltip delay value used inside this chart panel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.geom.Rectangle2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getScaledDataArea()">getScaledDataArea</A></B>()</CODE><BR> Returns the data area for the chart (the area inside the axes) with the current scaling applied.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getScaleX()">getScaleX</A></B>()</CODE><BR> Returns the X scale factor for the chart.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getScaleY()">getScaleY</A></B>()</CODE><BR> Returns the Y scale factory for the chart.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getToolTipText(java.awt.event.MouseEvent)">getToolTipText</A></B>(java.awt.event.MouseEvent e)</CODE><BR> Returns a string for the tooltip.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getZoomInFactor()">getZoomInFactor</A></B>()</CODE><BR> Returns the zoom in factor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#getZoomOutFactor()">getZoomOutFactor</A></B>()</CODE><BR> Returns the zoom out factor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -