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

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

Introduction

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

The text is from its open source code.

Subclass

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

Field

StrokeDEFAULT_GRIDLINE_STROKE
The default grid line stroke.
PaintDEFAULT_GRIDLINE_PAINT
The default grid line paint.

Constructor

XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, XYItemRenderer renderer)
Creates a new plot with the specified dataset, axes and renderer.
XYPlot()
Creates a new XYPlot instance with no dataset, no axes and no renderer.

Method

voidaddAnnotation(XYAnnotation annotation)
Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners.
voidaddChangeListener(PlotChangeListener listener)
Registers an object for notification of changes to the plot.
voidaddDomainMarker(Marker marker)
Adds a marker for the domain axis and sends a PlotChangeEvent to all registered listeners.
voidaddDomainMarker(Marker marker, Layer layer)
Adds a marker for the domain axis in the specified layer and sends a PlotChangeEvent to all registered listeners.
voidaddRangeMarker(Marker marker)
Adds a marker for the range axis and sends a PlotChangeEvent to all registered listeners.
voidaddRangeMarker(int index, Marker marker, Layer layer)
Adds a marker for a specific dataset/renderer and sends a PlotChangeEvent to all registered listeners.
voidaddRangeMarker(Marker marker, Layer layer)
Adds a marker for the range axis in the specified layer and sends a PlotChangeEvent to all registered listeners.
voidaxisChanged(AxisChangeEvent event)
Receives notification of a change to one of the plot's axes.
voidclearAnnotations()
Clears all the annotations and sends a PlotChangeEvent to all registered listeners.
voidclearDomainAxes()
Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners.
voidclearDomainMarkers()
Clears all the (foreground and background) domain markers and sends a PlotChangeEvent to all registered listeners.
voidclearRangeAxes()
Clears the range axes from the plot and sends a PlotChangeEvent to all registered listeners.
voidclearRangeMarkers()
Clears all the range markers and sends a PlotChangeEvent to all registered listeners.
voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
Draws the plot within the specified area on a graphics device.
ListgetAnnotations()
Returns the list of annotations.
PaintgetBackgroundPaint()
Returns the background color of the plot area.
RangegetDataRange(ValueAxis axis)
Returns the range for the specified axis.
XYDatasetgetDataset()
Returns the primary dataset for the plot.
XYDatasetgetDataset(int index)
Returns the dataset with the specified index, or null if there is no dataset with that index.
intgetDatasetCount()
Returns the number of datasets.
ValueAxisgetDomainAxis()
Returns the domain axis with index 0.
ValueAxisgetDomainAxis(int index)
Returns the domain axis with the specified index, or null if there is no axis with that index.
intgetDomainAxisCount()
Returns the number of domain axes.
RectangleEdgegetDomainAxisEdge()
Returns the edge for the primary domain axis (taking into account the plot's orientation).
intgetDomainAxisIndex(ValueAxis axis)
Returns the index of the given domain axis.
AxisLocationgetDomainAxisLocation()
Returns the location of the primary domain axis.
PaintgetDomainCrosshairPaint()
Returns the domain crosshair paint.
doublegetDomainCrosshairValue()
Returns the domain crosshair value.
CollectiongetDomainMarkers(Layer layer)
Returns the list of domain markers (read only) for the specified layer.
DrawingSuppliergetDrawingSupplier()
Returns the drawing supplier for the plot.
LegendItemCollectiongetFixedLegendItems()
Returns the fixed legend items, if any.
LegendItemCollectiongetLegendItems()
Returns the legend items for the plot.
PlotOrientationgetOrientation()
Returns the orientation of the plot.
PlotgetParent()
Returns the parent plot (or null if this plot is not part of a combined plot).
ValueAxisgetRangeAxis()
Returns the range axis for the plot.
ValueAxisgetRangeAxis(int index)
Returns the range axis with the specified index, or null if there is no axis with that index.
intgetRangeAxisCount()
Returns the number of range axes.
RectangleEdgegetRangeAxisEdge()
Returns the edge for the primary range axis.
RectangleEdgegetRangeAxisEdge(int index)
Returns the edge for a range axis.
ValueAxisgetRangeAxisForDataset(int index)
Returns the range axis for a dataset.
intgetRangeAxisIndex(ValueAxis axis)
Returns the index of the given range axis.
AxisLocationgetRangeAxisLocation()
Returns the location of the primary range axis.
AxisLocationgetRangeAxisLocation(int index)
Returns the location for a range axis.
doublegetRangeCrosshairValue()
Returns the range crosshair value.
PaintgetRangeGridlinePaint()
Returns the paint for the grid lines (if any) plotted against the range axis.
CollectiongetRangeMarkers(Layer layer)
Returns the list of range markers (read only) for the specified layer.
XYItemRenderergetRenderer()
Returns the renderer for the primary dataset.
XYItemRenderergetRenderer(int index)
Returns the renderer with the specified index, or null .
intgetRendererCount()
Returns the number of renderer slots for this plot.
XYItemRenderergetRendererForDataset(XYDataset dataset)
Returns the renderer for the specified dataset (this is either the renderer with the same index as the dataset or, if there isn't a renderer with the same index, the default renderer).
intgetSeriesCount()
Returns the number of series in the primary dataset for this plot.
intindexOf(XYDataset dataset)
Returns the index of the specified dataset, or -1 if the dataset does not belong to the plot.
booleanisNotify()
Returns a flag that controls whether or not change events are sent to registered listeners.
voidmapDatasetToDomainAxis(int index, int axisIndex)
Maps a dataset to a particular domain axis.
voidmapDatasetToRangeAxis(int index, int axisIndex)
Maps a dataset to a particular range axis.
voidnotifyListeners(PlotChangeEvent event)
Notifies all registered listeners that the plot has been modified.
booleanremoveAnnotation(XYAnnotation annotation)
Removes an annotation from the plot and sends a PlotChangeEvent to all registered listeners.
voidremoveChangeListener(PlotChangeListener listener)
Unregisters an object for notification of changes to the plot.
booleanremoveDomainMarker(Marker marker)
Removes a marker for the domain axis and sends a PlotChangeEvent to all registered listeners.
booleanremoveDomainMarker(Marker marker, Layer layer)
Removes a marker for the domain axis in the specified layer and sends a PlotChangeEvent to all registered listeners.
voidsetAxisOffset(RectangleInsets offset)
Sets the axis offsets (gap between the data area and the axes) and sends a PlotChangeEvent to all registered listeners.
voidsetBackgroundAlpha(float alpha)
Sets the alpha transparency of the plot area background, and notifies registered listeners that the plot has been modified.
voidsetBackgroundImage(Image image)
Sets the background image for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetBackgroundImageAlignment(int alignment)
Sets the alignment for the background image and sends a PlotChangeEvent to all registered listeners.
voidsetBackgroundImageAlpha(float alpha)
Sets the alpha transparency used when drawing the background image.
voidsetBackgroundPaint(Paint paint)
Sets the background color of the plot area and sends a PlotChangeEvent to all registered listeners.
voidsetDataset(int index, XYDataset dataset)
Sets a dataset for the plot and sends a change event to all registered listeners.
voidsetDataset(XYDataset dataset)
Sets the primary dataset for the plot, replacing the existing dataset if there is one.
voidsetDatasetRenderingOrder(DatasetRenderingOrder order)
Sets the rendering order and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxes(ValueAxis[] axes)
Sets the domain axes for this plot and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxis(ValueAxis axis)
Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxis(int index, ValueAxis axis)
Sets a domain axis and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxis(int index, ValueAxis axis, boolean notify)
Sets a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxisLocation(AxisLocation location)
Sets the location of the primary domain axis and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxisLocation(AxisLocation location, boolean notify)
Sets the location of the domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxisLocation(int index, AxisLocation location)
Sets the location for a domain axis and sends a PlotChangeEvent to all registered listeners.
voidsetDomainCrosshairLockedOnData(boolean flag)
Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.
voidsetDomainCrosshairPaint(Paint paint)
Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
voidsetDomainCrosshairStroke(Stroke stroke)
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
voidsetDomainCrosshairValue(double value, boolean notify)
Sets the domain crosshair value and, if requested, sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
voidsetDomainCrosshairValue(double value)
Sets the domain crosshair value and sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
voidsetDomainCrosshairVisible(boolean flag)
Sets the flag indicating whether or not the domain crosshair is visible and, if the flag changes, sends a PlotChangeEvent to all registered listeners.
voidsetDomainGridlinePaint(Paint paint)
Sets the paint for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.
voidsetDomainGridlineStroke(Stroke stroke)
Sets the stroke for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.
voidsetDomainGridlinesVisible(boolean visible)
Sets the flag that controls whether or not the domain grid-lines are visible.
voidsetDomainMinorGridlinePaint(Paint paint)
Sets the paint for the minor grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.
voidsetDomainMinorGridlineStroke(Stroke stroke)
Sets the stroke for the minor grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.
voidsetDomainMinorGridlinesVisible(boolean visible)
Sets the flag that controls whether or not the domain minor grid-lines are visible.
voidsetDomainPannable(boolean pannable)
Sets the flag that enables or disables panning of the plot along the domain axes.
voidsetDomainTickBandPaint(Paint paint)
Sets the paint for the domain tick bands.
voidsetDomainZeroBaselinePaint(Paint paint)
Sets the paint for the zero baseline plotted against the domain axis and sends a PlotChangeEvent to all registered listeners.
voidsetDomainZeroBaselineStroke(Stroke stroke)
Sets the stroke for the zero baseline for the domain axis, and sends a PlotChangeEvent to all registered listeners.
voidsetDomainZeroBaselineVisible(boolean visible)
Sets the flag that controls whether or not the zero baseline is displayed for the domain axis, and sends a PlotChangeEvent to all registered listeners.
voidsetDrawingSupplier(DrawingSupplier supplier)
Sets the drawing supplier for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetFixedLegendItems(LegendItemCollection items)
Sets the fixed legend items for the plot.
voidsetFixedRangeAxisSpace(AxisSpace space)
Sets the fixed range axis space and sends a PlotChangeEvent to all registered listeners.
voidsetForegroundAlpha(float alpha)
Sets the alpha-transparency for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetInsets(RectangleInsets insets)
Sets the insets for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetInsets(RectangleInsets insets, boolean notify)
Sets the insets for the plot and, if requested, and sends a PlotChangeEvent to all registered listeners.
voidsetNoDataMessage(String message)
Sets the message that is displayed when the dataset is empty or null, and sends a PlotChangeEvent to all registered listeners.
voidsetNoDataMessageFont(Font font)
Sets the font used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners.
voidsetNoDataMessagePaint(Paint paint)
Sets the paint used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners.
voidsetNotify(boolean notify)
Sets a flag that controls whether or not listeners receive PlotChangeEvent notifications.
voidsetOrientation(PlotOrientation orientation)
Sets the orientation for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetOutlinePaint(Paint paint)
Sets the paint used to draw the outline of the plot area and sends a PlotChangeEvent to all registered listeners.
voidsetOutlineStroke(Stroke stroke)
Sets the stroke used to outline the plot area and sends a PlotChangeEvent to all registered listeners.
voidsetOutlineVisible(boolean visible)
Sets the flag that controls whether or not the plot's outline is drawn, and sends a PlotChangeEvent to all registered listeners.
voidsetParent(Plot parent)
Sets the parent plot.
voidsetQuadrantOrigin(Point2D origin)
Sets the quadrant origin and sends a PlotChangeEvent to all registered listeners.
voidsetQuadrantPaint(int index, Paint paint)
Sets the paint used for the specified quadrant and sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxes(ValueAxis[] axes)
Sets the range axes for this plot and sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxis(ValueAxis axis)
Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxis(int index, ValueAxis axis)
Sets a range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxis(int index, ValueAxis axis, boolean notify)
Sets a range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxisLocation(AxisLocation location)
Sets the location of the primary range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxisLocation(AxisLocation location, boolean notify)
Sets the location of the primary range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxisLocation(int index, AxisLocation location)
Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxisLocation(int index, AxisLocation location, boolean notify)
Sets the axis location for a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
voidsetRangeCrosshairLockedOnData(boolean flag)
Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values.
voidsetRangeCrosshairPaint(Paint paint)
Sets the paint used to color the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
voidsetRangeCrosshairStroke(Stroke stroke)
Sets the stroke used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
voidsetRangeCrosshairValue(double value, boolean notify)
Sets the range crosshair value and sends a PlotChangeEvent to all registered listeners, but only if the crosshair is visible.
voidsetRangeCrosshairValue(double value)
Sets the range crosshair value.
voidsetRangeCrosshairVisible(boolean flag)
Sets the flag indicating whether or not the range crosshair is visible.
voidsetRangeGridlinePaint(Paint paint)
Sets the paint for the grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeGridlineStroke(Stroke stroke)
Sets the stroke for the grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners.
voidsetRangeGridlinesVisible(boolean visible)
Sets the flag that controls whether or not the range axis grid lines are visible.
voidsetRangeMinorGridlinePaint(Paint paint)
Sets the paint for the minor grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeMinorGridlineStroke(Stroke stroke)
Sets the stroke for the minor grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners.
voidsetRangeMinorGridlinesVisible(boolean visible)
Sets the flag that controls whether or not the range axis minor grid lines are visible.
voidsetRangePannable(boolean pannable)
Sets the flag that enables or disables panning of the plot along the range axis/axes.
voidsetRangeTickBandPaint(Paint paint)
Sets the paint for the range tick bands.
voidsetRangeZeroBaselinePaint(Paint paint)
Sets the paint for the zero baseline plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeZeroBaselineVisible(boolean visible)
Sets the flag that controls whether or not the zero baseline is displayed for the range axis, and sends a PlotChangeEvent to all registered listeners.
voidsetRenderer(XYItemRenderer renderer)
Sets the renderer for the primary dataset and sends a change event to all registered listeners.
voidsetRenderer(int index, XYItemRenderer renderer)
Sets the renderer for the dataset with the specified index and sends a change event to all registered listeners.
voidsetSeriesRenderingOrder(SeriesRenderingOrder order)
Sets the series order and sends a PlotChangeEvent to all registered listeners.
voidsetWeight(int weight)
Sets the weight for the plot and sends a PlotChangeEvent to all registered listeners.
voidzoom(double percent)
Performs a zoom on the plot.