📄 chartpanel.html
字号:
Sets the minimum drawing width for the chart on this 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#setMouseZoomable(boolean)">setMouseZoomable</A></B>(boolean flag)</CODE><BR> A flag that controls mouse-based zooming.</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#setMouseZoomable(boolean, boolean)">setMouseZoomable</A></B>(boolean flag, boolean fillRectangle)</CODE><BR> Controls mouse zooming and how the zoom rectangle is displayed</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#setPopupMenu(javax.swing.JPopupMenu)">setPopupMenu</A></B>(javax.swing.JPopupMenu popup)</CODE><BR> Sets the popup menu for 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#setRefreshBuffer(boolean)">setRefreshBuffer</A></B>(boolean flag)</CODE><BR> Sets the refresh buffer flag.</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#setVerticalAxisTrace(boolean)">setVerticalAxisTrace</A></B>(boolean flag)</CODE><BR> A flag that controls trace lines 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#setVerticalZoom(boolean)">setVerticalZoom</A></B>(boolean flag)</CODE><BR> A flag that controls mouse-based zooming on the vertical axis.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Point</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#translateJava2DToScreen(java.awt.geom.Point2D)">translateJava2DToScreen</A></B>(java.awt.geom.Point2D java2DPoint)</CODE><BR> Translates a Java2D point on the chart to a screen location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.geom.Point2D</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartPanel.html#translateScreenToJava2D(java.awt.Point)">translateScreenToJava2D</A></B>(java.awt.Point screenPoint)</CODE><BR> Translates a screen location to a Java2D point.</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#zoom(java.awt.geom.Rectangle2D)">zoom</A></B>(java.awt.geom.Rectangle2D selection)</CODE><BR> Zooms in on a selected region.</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#zoomInBoth(double, double)">zoomInBoth</A></B>(double x, double y)</CODE><BR> Zooms in on an anchor point (measured in Java2D coordinates).</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#zoomInHorizontal(double)">zoomInHorizontal</A></B>(double x)</CODE><BR> Decreases the range on the horizontal axis, centered about a Java2D x coordinate.</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#zoomInVertical(double)">zoomInVertical</A></B>(double y)</CODE><BR> Decreases the range on the vertical axis, centered about a Java2D y coordinate.</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#zoomOutBoth(double, double)">zoomOutBoth</A></B>(double x, double y)</CODE><BR> Zooms out on an anchor point (measured in Java2D coordinates).</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#zoomOutHorizontal(double)">zoomOutHorizontal</A></B>(double x)</CODE><BR> Increases the range on the horizontal axis, centered about a Java2D x coordinate.</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#zoomOutVertical(double)">zoomOutVertical</A></B>(double y)</CODE><BR> Increases the range on the vertical axis, centered about a Java2D y coordinate.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.JPanel"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.JPanel</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.JComponent</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.awt.Container</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.awt.Component</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="localizationResources"><!-- --></A><H3>localizationResources</H3><PRE>protected static java.util.ResourceBundle <B>localizationResources</B></PRE><DL><DD>The resourceBundle for the localization.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ChartPanel(org.jfree.chart.JFreeChart)"><!-- --></A><H3>ChartPanel</H3><PRE>public <B>ChartPanel</B>(<A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart)</PRE><DL><DD>Constructs a JFreeChart panel.<P><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart.</DL><HR><A NAME="ChartPanel(org.jfree.chart.JFreeChart, boolean)"><!-- --></A><H3>ChartPanel</H3><PRE>public <B>ChartPanel</B>(<A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, boolean useBuffer)</PRE><DL><DD>Constructs a panel containing a chart.<P><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart.<DD><CODE>useBuffer</CODE> - a flag controlling whether or not an off-screen buffer is used.</DL><HR><A NAME="ChartPanel(org.jfree.chart.JFreeChart, boolean, boolean, boolean, boolean, boolean)"><!-- --></A><H3>ChartPanel</H3><PRE>public <B>ChartPanel</B>(<A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips)</PRE><DL><DD>Constructs a JFreeChart panel.<P><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart.<DD><CODE>properties</CODE> - a flag indicating whether or not the chart property editor should be available via the popup menu.<DD><CODE>save</CODE> - a flag indicating whether or not save options should be available via the popup menu.<DD><CODE>print</CODE> - a flag indicating whether or not the print option should be available via the popup menu.<DD><CODE>zoom</CODE> - a flag indicating whether or not zoom options should be added to the popup menu.<DD><CODE>tooltips</CODE> - a flag indicating whether or not tooltips should be enabled for the chart.</DL><HR><A NAME="ChartPanel(org.jfree.chart.JFreeChart, int, int, int, int, int, int, boolean, boolean, boolean, boolean, boolean, boolean)"><!-- --></A><H3>ChartPanel</H3><PRE>public <B>ChartPanel</B>(<A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, boolean useBuffer, boolean properties, boolean save, boolean print, boolean zoom, boolean tooltips)</PRE><DL><DD>Constructs a JFreeChart panel.<P><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the preferred width of the panel.<DD><CODE>height</CODE> - the preferred height of the panel.<DD><CODE>minimumDrawWidth</CODE> - the minimum drawing width.<DD><CODE>minimumDrawHeight</CODE> - the minimum drawing height.<DD><CODE>maximumDrawWidth</CODE> - the maximum drawing width.<DD><CODE>maximumDrawHeight</CODE> - the maximum drawing height.<DD><CODE>useBuffer</CODE> - a flag that indicates whether to use the off-screen buffer to improve performance (at the expense of memory).<DD><CODE>properties</CODE> - a flag indicating whether or not the chart property editor should be available via the popup menu.<DD><CODE>save</CODE> - a flag indicating whether or not save options should be available via the popup menu.<DD><CODE>print</CODE> - a flag indicating whether or not the print option should be available via the popup menu.<DD><CODE>zoom</CODE> - a flag indicating whether or not zoom options should be added to the popup menu.<DD><CODE>tooltips</CODE> - a flag indicating whether or not tooltips should be enabled for the chart.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getChart()"><!-- --></A><H3>getChart</H3><PRE>public <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> <B>getChart</B>()</PRE><DL><DD>Returns the chart contained in the panel.<P><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -