Java org.jfree.chart ChartPanel fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.chart ChartPanel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.chart ChartPanel.

The text is from its open source code.

Subclass

org.jfree.chart.ChartPanel has subclasses.
Click this link to see all its subclasses.

Field

booleanDEFAULT_BUFFER_USED
Default setting for buffer usage.
intDEFAULT_WIDTH
The default panel width.
intDEFAULT_HEIGHT
The default panel height.
intDEFAULT_MINIMUM_DRAW_WIDTH
The default limit below which chart scaling kicks in.
intDEFAULT_MINIMUM_DRAW_HEIGHT
The default limit below which chart scaling kicks in.
intDEFAULT_MAXIMUM_DRAW_WIDTH
The default limit above which chart scaling kicks in.
intDEFAULT_MAXIMUM_DRAW_HEIGHT
The default limit above which chart scaling kicks in.
StringPROPERTIES_COMMAND
Properties action command.
StringZOOM_IN_BOTH_COMMAND
Zoom in (both axes) action command.
StringZOOM_IN_DOMAIN_COMMAND
Zoom in (domain axis only) action command.
StringZOOM_IN_RANGE_COMMAND
Zoom in (range axis only) action command.
StringZOOM_OUT_BOTH_COMMAND
Zoom out (both axes) action command.
StringZOOM_OUT_DOMAIN_COMMAND
Zoom out (domain axis only) action command.
StringZOOM_OUT_RANGE_COMMAND
Zoom out (range axis only) action command.
StringZOOM_RESET_BOTH_COMMAND
Zoom reset (both axes) action command.
StringZOOM_RESET_DOMAIN_COMMAND
Zoom reset (domain axis only) action command.
StringZOOM_RESET_RANGE_COMMAND
Zoom reset (range axis only) action command.

Constructor

Method

Componentadd(Component comp)
Appends the specified component to the end of this container.
Componentadd(String name, Component comp)
Adds the specified component to this container.
voidaddChartMouseListener(ChartMouseListener listener)
Adds a listener to the list of objects listening for chart mouse events.
voidaddKeyListener(KeyListener l)
Adds the specified key listener to receive key events from this component.
voidaddMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this component.
voidaddMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component.
voidaddMouseWheelListener(MouseWheelListener l)
Adds the specified mouse wheel listener to receive mouse wheel events from this component.
voidaddOverlay(Overlay overlay)
Add an overlay to the panel.
voidaddPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
voidchartChanged(ChartChangeEvent event)
Receives notification of changes to the chart, and redraws the chart.
voidcreateChartPrintJob()
Creates a print job for the chart.
ImagecreateImage(int width, int height)
Creates an off-screen drawable image to be used for double buffering.
voiddoEditChartProperties()
Displays a dialog that allows the user to edit the properties for the current chart.
voiddoSaveAs()
Opens a file chooser and gives the user an opportunity to save the chart in PNG format.
ColorgetBackground()
Gets the background color of this component.
RectanglegetBounds()
Gets the bounds of this component in the form of a Rectangle object.
JFreeChartgetChart()
Returns the chart contained in the panel.
ChartRenderingInfogetChartRenderingInfo()
Returns the chart rendering info from the most recent chart redraw.
FilegetDefaultDirectoryForSaveAs()
Returns the default directory for the "save as" option.
ChartEntitygetEntityForPoint(int viewX, int viewY)
Returns the chart entity at a given point.
GraphicsgetGraphics()
Returns this component's graphics context, which lets you draw on a component.
intgetHeight()
Returns the current height of this component.
InsetsgetInsets()
If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets.
intgetMaximumDrawHeight()
Returns the maximum drawing height for charts.
intgetMaximumDrawWidth()
Returns the maximum drawing width for charts.
intgetMinimumDrawHeight()
Returns the minimum drawing height for charts.
intgetMinimumDrawWidth()
Returns the minimum drawing width for charts.
ContainergetParent()
Gets the parent of this component.
JPopupMenugetPopupMenu()
Returns the popup menu.
DimensiongetPreferredSize()
If the preferredSize has been set to a non-null value just returns it.
JRootPanegetRootPane()
Returns the JRootPane ancestor for this component.
doublegetScaleX()
Returns the X scale factor for the chart.
doublegetScaleY()
Returns the Y scale factory for the chart.
Rectangle2DgetScreenDataArea()
Returns the data area for the chart (the area inside the axes) with the current scaling applied (that is, the area as it appears on screen).
DimensiongetSize()
Returns the size of this component in the form of a Dimension object.
intgetWidth()
Returns the current width of this component.
booleanisDomainZoomable()
Returns the flag that determines whether or not zooming is enabled for the domain axis.
booleanisOpaque()
Returns true if this component is completely opaque.
booleanisRangeZoomable()
Returns the flag that determines whether or not zooming is enabled for the range axis.
voidpaint(Graphics g)
Invoked by Swing to draw components.
voidpaintImmediately(Rectangle r)
Paints the specified region now.
voidprint(Graphics g)
Invoke this method to print the component to the specified Graphics.
voidremoveAll()
Removes all the components from this container.
voidremoveMouseListener(MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component.
voidremoveMouseMotionListener(MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.
voidrepaint()
Repaints this component.
voidrestoreAutoBounds()
Restores the auto-range calculation on both axes.
voidrestoreAutoDomainBounds()
Restores the auto-range calculation on the domain axis.
voidrestoreAutoRangeBounds()
Restores the auto-range calculation on the range axis.
voidrevalidate()
Supports deferred automatic layout.
voidsetAlignmentX(float alignmentX)
Sets the horizontal alignment.
voidsetAlignmentY(float alignmentY)
Sets the vertical alignment.
voidsetAutoscrolls(boolean autoscrolls)
Sets the autoscrolls property.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetBorder(Border border)
Sets the border of this component.
voidsetBounds(int x, int y, int width, int height)
Moves and resizes this component.
voidsetBounds(Rectangle r)
Moves and resizes this component to conform to the new bounding rectangle r .
voidsetChart(JFreeChart chart)
Sets the chart that is displayed in the panel.
voidsetCursor(Cursor cursor)
Sets the cursor image to the specified cursor.
voidsetDefaultDirectoryForSaveAs(File directory)
Sets the default directory for the "save as" option.
voidsetDismissDelay(int delay)
Specifies the dismissal delay value for this chart panel.
voidsetDisplayToolTips(boolean flag)
Switches the display of tooltips for the panel on or off.
voidsetDomainZoomable(boolean flag)
Sets the flag that controls whether or not zooming is enabled for the domain axis.
voidsetDoubleBuffered(boolean aFlag)
Sets whether this component should use a buffer to paint.
voidsetEnabled(boolean enabled)
Sets whether or not this component is enabled.
voidsetEnforceFileExtensions(boolean enforce)
Sets a flag that controls whether or not file extensions are enforced.
voidsetFillZoomRectangle(boolean flag)
A flag that controls how the zoom rectangle is drawn.
voidsetFocusable(boolean focusable)
Sets the focusable state of this Component to the specified value.
voidsetFont(Font font)
Sets the font for this component.
voidsetHorizontalAxisTrace(boolean flag)
A flag that controls trace lines on the horizontal axis.
voidsetInitialDelay(int delay)
Specifies the initial delay value for this chart panel.
voidsetLayout(LayoutManager mgr)
Sets the layout manager for this container.
voidsetLocation(int x, int y)
Moves this component to a new location.
voidsetMaximumDrawHeight(int height)
Sets the maximum drawing height for the chart on this panel.
voidsetMaximumDrawWidth(int width)
Sets the maximum drawing width for the chart on this panel.
voidsetMaximumSize(Dimension maximumSize)
Sets the maximum size of this component to a constant value.
voidsetMinimumDrawHeight(int height)
Sets the minimum drawing height for the chart on this panel.
voidsetMinimumDrawWidth(int width)
Sets the minimum drawing width for the chart on this panel.
voidsetMinimumSize(Dimension minimumSize)
Sets the minimum size of this component to a constant value.
voidsetMouseWheelEnabled(boolean flag)
Enables or disables mouse wheel support for the panel.
voidsetMouseZoomable(boolean flag)
A convenience method that switches on mouse-based zooming.
voidsetMouseZoomable(boolean flag, boolean fillRectangle)
A convenience method that switches on mouse-based zooming.
voidsetName(String name)
Sets the name of the component to the specified string.
voidsetOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
voidsetPopupMenu(JPopupMenu popup)
Sets the popup menu for the panel.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetRangeZoomable(boolean flag)
A flag that controls mouse-based zooming on the vertical axis.
voidsetRefreshBuffer(boolean flag)
Sets the refresh buffer flag.
voidsetReshowDelay(int delay)
Specifies the amount of time before the user has to wait initialDelay milliseconds before a tooltip will be shown.
voidsetSize(int width, int height)
Resizes this component so that it has width width and height height .
voidsetSize(Dimension d)
Resizes this component so that it has width d.width and height d.height .
voidsetToolTipText(String text)
Registers the text to display in a tool tip.
voidsetVerticalAxisTrace(boolean flag)
A flag that controls trace lines on the vertical axis.
voidsetVisible(boolean aFlag)
Makes the component visible or invisible.
voidsetZoomAroundAnchor(boolean zoomAroundAnchor)
Sets the flag that controls whether or not zoom operations are centered around the current anchor point.
voidsetZoomFillPaint(Paint paint)
Sets the zoom rectangle fill paint.
voidsetZoomInFactor(double factor)
Sets the zoom in factor.
voidsetZoomOutFactor(double factor)
Sets the zoom out factor.
voidsetZoomOutlinePaint(Paint paint)
Sets the zoom rectangle outline paint.
PointtranslateJava2DToScreen(Point2D java2DPoint)
Translates a Java2D point on the chart to a screen location.
Point2DtranslateScreenToJava2D(Point screenPoint)
Translates a panel (component) location to a Java2D point.
voidupdateUI()
Updates the UI for a LookAndFeel change.
voidvalidate()
Validates this container and all of its subcomponents.
voidzoomInBoth(double x, double y)
Zooms in on an anchor point (specified in screen coordinate space).
voidzoomInDomain(double x, double y)
Decreases the length of the domain axis, centered about the given coordinate on the screen.
voidzoomOutBoth(double x, double y)
Zooms out on an anchor point (specified in screen coordinate space).
voidzoomOutDomain(double x, double y)
Increases the length of the domain axis, centered about the given coordinate on the screen.