Class MyXYPlot
- All Implemented Interfaces:
Serializable,Cloneable,EventListener,org.jfree.chart.event.AnnotationChangeListener,org.jfree.chart.event.AxisChangeListener,org.jfree.chart.event.MarkerChangeListener,org.jfree.chart.event.RendererChangeListener,org.jfree.chart.LegendItemSource,org.jfree.chart.plot.Pannable,org.jfree.chart.plot.ValueAxisPlot,org.jfree.chart.plot.Zoomable,org.jfree.data.general.DatasetChangeListener,org.jfree.util.PublicCloneable
XYDataset interface.
XYPlot makes use of an XYItemRenderer to draw each point
on the plot. By using different renderers, various chart types can be
produced.
The ChartFactory class contains static methods for
creating pre-configured charts.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PaintThe default crosshair paint.static final StrokeThe default crosshair stroke.static final booleanThe default crosshair visibility.static final PaintThe default grid line paint.static final StrokeThe default grid line stroke.protected static ResourceBundleThe resourceBundle for the localization.Fields inherited from class org.jfree.chart.plot.Plot
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(org.jfree.chart.annotations.XYAnnotation annotation) Adds an annotation to the plot and sends aPlotChangeEventto all registered listeners.voidaddDomainMarker(int index, org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for a renderer and sends aPlotChangeEventto all registered listeners.voidaddDomainMarker(org.jfree.chart.plot.Marker marker) Adds a marker for the domain axis and sends aPlotChangeEventto all registered listeners.voidaddDomainMarker(org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for the domain axis in the specified layer and sends aPlotChangeEventto all registered listeners.voidaddRangeMarker(int index, org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for a renderer and sends aPlotChangeEventto all registered listeners.voidaddRangeMarker(org.jfree.chart.plot.Marker marker) Adds a marker for the range axis and sends aPlotChangeEventto all registered listeners.voidaddRangeMarker(org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for the range axis in the specified layer and sends aPlotChangeEventto all registered listeners.protected org.jfree.chart.axis.AxisSpacecalculateAxisSpace(Graphics2D g2, Rectangle2D plotArea) Calculates the space required for all the axes in the plot.protected org.jfree.chart.axis.AxisSpacecalculateDomainAxisSpace(Graphics2D g2, Rectangle2D plotArea, org.jfree.chart.axis.AxisSpace space) Calculates the space required for the domain axis/axes.protected org.jfree.chart.axis.AxisSpacecalculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, org.jfree.chart.axis.AxisSpace space) Calculates the space required for the range axis/axes.voidClears all the annotations and sends aPlotChangeEventto all registered listeners.voidClear the data setsvoidClears the domain axes from the plot and sends aPlotChangeEventto all registered listeners.voidClears all the (foreground and background) domain markers and sends aPlotChangeEventto all registered listeners.voidclearDomainMarkers(int index) Clears the (foreground and background) domain markers for a particular renderer.voidClears the range axes from the plot and sends aPlotChangeEventto all registered listeners.voidClears all the range markers and sends aPlotChangeEventto all registered listeners.voidclearRangeMarkers(int index) Clears the (foreground and background) range markers for a particular renderer.clone()Returns a clone of the plot.voidConfigures the domain axes.voidConfigures the range axes.voiddatasetChanged(org.jfree.data.general.DatasetChangeEvent event) Receives notification of a change to the plot's dataset.voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, org.jfree.chart.plot.PlotState parentState, org.jfree.chart.plot.PlotRenderingInfo info) Draws the plot within the specified area on a graphics device.voiddrawAnnotations(Graphics2D g2, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo info) Draws the annotations for the plot.protected MapdrawAxes(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo plotState) A utility method for drawing the axes.voiddrawBackground(Graphics2D g2, Rectangle2D area) Draws the background for the plot.protected voiddrawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the gridlines for the plot, if they are visible.protected voiddrawDomainMarkers(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.ui.Layer layer) Draws the domain markers (if any) for an axis and layer.voiddrawDomainTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the domain tick bands, if any.protected voiddrawHorizontalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Utility method for drawing a horizontal line across the data area of the plot.protected voiddrawQuadrants(Graphics2D g2, Rectangle2D area) Draws the quadrants.protected voiddrawRangeGridlines(Graphics2D g2, Rectangle2D area, List ticks) Draws the gridlines for the plot's primary range axis, if they are visible.protected voiddrawRangeMarkers(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.ui.Layer layer) Draws the range markers (if any) for a renderer and layer.voiddrawRangeTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the range tick bands, if any.protected voiddrawVerticalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Utility method for drawing a vertical line on the data area of the plot.protected voiddrawZeroRangeBaseline(Graphics2D g2, Rectangle2D area) Draws a base line across the chart at value zero on the range axis.booleanTests this plot for equality with another object.org.jfree.ui.RectangleInsetsReturns the axis offset.org.jfree.data.RangegetDataRange(org.jfree.chart.axis.ValueAxis axis) Returns the range for the specified axis.org.jfree.data.xy.XYDatasetReturns the primary dataset for the plot.org.jfree.data.xy.XYDatasetgetDataset(int index) Returns a dataset.intReturns the number of datasets.org.jfree.chart.plot.DatasetRenderingOrderReturns the dataset rendering order.org.jfree.chart.axis.ValueAxisReturns the domain axis for the plot.org.jfree.chart.axis.ValueAxisgetDomainAxis(int index) Returns a domain axis.intReturns the number of domain axes.org.jfree.ui.RectangleEdgeReturns the edge for the primary domain axis (taking into account the plot's orientation.org.jfree.ui.RectangleEdgegetDomainAxisEdge(int index) Returns the edge for a domain axis.org.jfree.chart.axis.ValueAxisgetDomainAxisForDataset(int index) Returns the domain axis for a dataset.intgetDomainAxisIndex(org.jfree.chart.axis.ValueAxis axis) Returns the index of the given domain axis.org.jfree.chart.axis.AxisLocationReturns the location of the primary domain axis.org.jfree.chart.axis.AxisLocationgetDomainAxisLocation(int index) Returns the location for a domain axis.Returns the domain crosshair color.Returns theStrokeused to draw the crosshair (if visible).doubleReturns the domain crosshair value.Returns the paint for the grid lines (if any) plotted against the domain axis.Returns the stroke for the grid-lines (if any) plotted against the domain axis.getDomainMarkers(int index, org.jfree.ui.Layer layer) Returns a collection of domain markers for a particular renderer and layer.getDomainMarkers(org.jfree.ui.Layer layer) Returns the list of domain markers (read only) for the specified layer.Returns the paint used for the domain tick bands.org.jfree.chart.axis.AxisSpaceReturns the fixed domain axis space.org.jfree.chart.LegendItemCollectionReturns the fixed legend items, if any.org.jfree.chart.axis.AxisSpaceReturns the fixed range axis space.intgetIndexOf(org.jfree.chart.renderer.xy.XYItemRenderer renderer) Returns the index of the specified renderer, or-1if the renderer is not assigned to this plot.org.jfree.chart.LegendItemCollectionReturns the legend items for the plot.org.jfree.chart.plot.PlotOrientationReturns the orientation of the plot.Returns the plot type as a string.Returns the origin for the quadrants that can be displayed on the plot.getQuadrantPaint(int index) Returns the paint used for the specified quadrant.org.jfree.chart.axis.ValueAxisReturns the range axis for the plot.org.jfree.chart.axis.ValueAxisgetRangeAxis(int index) Returns a range axis.intReturns the number of range axes.org.jfree.ui.RectangleEdgeReturns the edge for the primary range axis.org.jfree.ui.RectangleEdgegetRangeAxisEdge(int index) Returns the edge for a range axis.org.jfree.chart.axis.ValueAxisgetRangeAxisForDataset(int index) Returns the range axis for a dataset.intgetRangeAxisIndex(org.jfree.chart.axis.ValueAxis axis) Returns the index of the given range axis.org.jfree.chart.axis.AxisLocationReturns the location of the primary range axis.org.jfree.chart.axis.AxisLocationgetRangeAxisLocation(int index) Returns the location for a range axis.Returns the range crosshair color.Returns the Stroke used to draw the crosshair (if visible).doubleReturns the range crosshair value.Returns the paint for the grid lines (if any) plotted against the range axis.Returns the stroke for the grid lines (if any) plotted against the range axis.getRangeMarkers(int index, org.jfree.ui.Layer layer) Returns a collection of range markers for a particular renderer and layer.getRangeMarkers(org.jfree.ui.Layer layer) Returns the list of range markers (read only) for the specified layer.Returns the paint used for the range tick bands.Returns the paint for the zero baseline (if any) plotted against the range axis.Returns the stroke used for the zero baseline against the range axis.org.jfree.chart.renderer.xy.XYItemRendererReturns the renderer for the primary dataset.org.jfree.chart.renderer.xy.XYItemRenderergetRenderer(int index) Returns the renderer for a dataset, ornull.org.jfree.chart.renderer.xy.XYItemRenderergetRendererForDataset(org.jfree.data.xy.XYDataset dataset) Returns the renderer for the specified dataset.intReturns the number of series in the primary dataset for this plot.org.jfree.chart.plot.SeriesRenderingOrderReturns the series rendering order.intReturns the weight for this plot when it is used as a subplot within a combined plot.voidhandleClick(int x, int y, org.jfree.chart.plot.PlotRenderingInfo info) Handles a 'click' on the plot by updating the anchor values...intindexOf(org.jfree.data.xy.XYDataset dataset) Returns the index of the specified dataset, or-1if the dataset does not belong to the plot.booleanReturns a flag indicating whether or not the crosshair should "lock-on" to actual data values.booleanReturns a flag indicating whether or not the domain crosshair is visible.booleanReturnstrueif the domain gridlines are visible, andfalseotherwise.booleanReturnstruebooleanReturns a flag indicating whether or not the crosshair should "lock-on" to actual data values.booleanReturns a flag indicating whether or not the range crosshair is visible.booleanReturnstrueif the range axis grid is visible, andfalseotherwise.booleanReturns a flag that controls whether or not a zero baseline is displayed for the range axis.booleanReturnstruevoidmapDatasetToDomainAxis(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.booleanremoveAnnotation(org.jfree.chart.annotations.XYAnnotation annotation) Removes an annotation from the plot and sends aPlotChangeEventto all registered listeners.booleanrender(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.chart.plot.PlotRenderingInfo info, org.jfree.chart.plot.CrosshairState crosshairState) Draws a representation of the data within the dataArea region, using the current renderer.voidrendererChanged(org.jfree.chart.event.RendererChangeEvent event) Receives notification of a renderer change event.voidsetAxisOffset(org.jfree.ui.RectangleInsets offset) Sets the axis offsets (gap between the data area and the axes).voidsetDataset(int index, org.jfree.data.xy.XYDataset dataset) Sets a dataset for the plot.voidsetDataset(org.jfree.data.xy.XYDataset dataset) Sets the primary dataset for the plot, replacing the existing dataset if there is one.voidsetDatasetRenderingOrder(org.jfree.chart.plot.DatasetRenderingOrder order) Sets the rendering order and sends aPlotChangeEventto all registered listeners.voidsetDomainAxes(org.jfree.chart.axis.ValueAxis[] axes) Sets the domain axes for this plot and sends aPlotChangeEventto all registered listeners.voidsetDomainAxis(int index, org.jfree.chart.axis.ValueAxis axis) Sets a domain axis and sends aPlotChangeEventto all registered listeners.voidsetDomainAxis(int index, org.jfree.chart.axis.ValueAxis axis, boolean notify) Sets a domain axis and, if requested, sends aPlotChangeEventto all registered listeners.voidsetDomainAxis(org.jfree.chart.axis.ValueAxis axis) Sets the domain axis for the plot and sends aPlotChangeEventto all registered listeners.voidsetDomainAxisLocation(int index, org.jfree.chart.axis.AxisLocation location) Sets the location for a domain axis and sends aPlotChangeEventto all registered listeners.voidsetDomainAxisLocation(org.jfree.chart.axis.AxisLocation location) Sets the location of the domain axis and sends aPlotChangeEventto all registered listeners.voidsetDomainAxisLocation(org.jfree.chart.axis.AxisLocation location, boolean notify) Sets the location of the domain axis and, if requested, sends aPlotChangeEventto 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 color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.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) Sets the domain crosshair value and sends aPlotChangeEventto all registered listeners (provided that the domain crosshair is visible).voidsetDomainCrosshairValue(double value, boolean notify) Sets the domain crosshair value and, if requested, sends aPlotChangeEventto 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.voidsetDomainGridlinePaint(Paint paint) Sets the paint for the grid lines plotted against the domain axis.voidsetDomainGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the domain axis.voidsetDomainGridlinesVisible(boolean visible) Sets the flag that controls whether or not the domain grid-lines are visible.voidsetDomainTickBandPaint(Paint paint) Sets the paint for the domain tick bands.voidsetFixedDomainAxisSpace(org.jfree.chart.axis.AxisSpace space) Sets the fixed domain axis space.voidsetFixedLegendItems(org.jfree.chart.LegendItemCollection items) Sets the fixed legend items for the plot.voidsetFixedRangeAxisSpace(org.jfree.chart.axis.AxisSpace space) Sets the fixed range axis space.voidsetOrientation(org.jfree.chart.plot.PlotOrientation orientation) Sets the orientation for the plot.voidsetQuadrantOrigin(Point2D origin) Sets the quadrant origin and sends aPlotChangeEventto all registered listeners.voidsetQuadrantPaint(int index, Paint paint) Sets the paint used for the specified quadrant and sends aPlotChangeEventto all registered listeners.voidsetRangeAxes(org.jfree.chart.axis.ValueAxis[] axes) Sets the range axes for this plot and sends aPlotChangeEventto all registered listeners.voidsetRangeAxis(int index, org.jfree.chart.axis.ValueAxis axis) Sets a range axis and sends aPlotChangeEventto all registered listeners.voidsetRangeAxis(int index, org.jfree.chart.axis.ValueAxis axis, boolean notify) Sets a range axis and, if requested, sends aPlotChangeEventto all registered listeners.voidsetRangeAxis(org.jfree.chart.axis.ValueAxis axis) Sets the range axis for the plot and sends aPlotChangeEventto all registered listeners.voidsetRangeAxisLocation(int index, org.jfree.chart.axis.AxisLocation location) Sets the location for a range axis and sends aPlotChangeEventto all registered listeners.voidsetRangeAxisLocation(org.jfree.chart.axis.AxisLocation location) Sets the location of the primary range axis and sends aPlotChangeEventto all registered listeners.voidsetRangeAxisLocation(org.jfree.chart.axis.AxisLocation location, boolean notify) Sets the location of the primary range axis and, if requested, sends aPlotChangeEventto 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 notifies registered listeners that the axis has been modified.voidsetRangeCrosshairStroke(Stroke stroke) Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.voidsetRangeCrosshairValue(double value) Sets the domain crosshair value.voidsetRangeCrosshairValue(double value, boolean notify) 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 aPlotChangeEventto all registered listeners.voidsetRangeGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the range axis, and sends aPlotChangeEventto all registered listeners.voidsetRangeGridlinesVisible(boolean visible) Sets the flag that controls whether or not the range axis grid lines are visible.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 aPlotChangeEventto all registered listeners.voidsetRangeZeroBaselineStroke(Stroke stroke) Sets the stroke for the zero baseline for the range axis, and sends aPlotChangeEventto 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 aPlotChangeEventto all registered listeners.voidsetRenderer(int index, org.jfree.chart.renderer.xy.XYItemRenderer renderer) Sets a renderer and sends aPlotChangeEventis sent to all registered listeners.voidsetRenderer(org.jfree.chart.renderer.xy.XYItemRenderer renderer) Sets the renderer for the primary dataset and sends aPlotChangeEventto all registered listeners.voidsetSeriesRenderingOrder(org.jfree.chart.plot.SeriesRenderingOrder order) Sets the series order and sends aPlotChangeEventto all registered listeners.voidsetWeight(int weight) Sets the weight for the plot.voidzoomDomainAxes(double lowerPercent, double upperPercent, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Zooms in on the domain axis/axes.voidzoomDomainAxes(double factor, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Multiplies the range on the domain axis/axes by the specified factor.voidzoomRangeAxes(double lowerPercent, double upperPercent, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Zooms in on the range axes.voidzoomRangeAxes(double factor, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Multiplies the range on the range axis/axes by the specified factor.Methods inherited from class org.jfree.chart.plot.XYPlot
addAnnotation, addDomainMarker, addRangeMarker, annotationChanged, drawDomainCrosshair, drawRangeCrosshair, drawZeroDomainBaseline, getAnnotations, getDomainMinorGridlinePaint, getDomainMinorGridlineStroke, getDomainZeroBaselinePaint, getDomainZeroBaselineStroke, getRangeMinorGridlinePaint, getRangeMinorGridlineStroke, getRendererCount, getShadowGenerator, isDomainMinorGridlinesVisible, isDomainPannable, isDomainZeroBaselineVisible, isRangeMinorGridlinesVisible, isRangePannable, mapDatasetToDomainAxes, mapDatasetToRangeAxes, panDomainAxes, panRangeAxes, removeAnnotation, removeDomainMarker, removeDomainMarker, removeDomainMarker, removeDomainMarker, removeRangeMarker, removeRangeMarker, removeRangeMarker, removeRangeMarker, setDomainAxisLocation, setDomainMinorGridlinePaint, setDomainMinorGridlineStroke, setDomainMinorGridlinesVisible, setDomainPannable, setDomainZeroBaselinePaint, setDomainZeroBaselineStroke, setDomainZeroBaselineVisible, setFixedDomainAxisSpace, setFixedRangeAxisSpace, setRangeAxisLocation, setRangeMinorGridlinePaint, setRangeMinorGridlineStroke, setRangeMinorGridlinesVisible, setRangePannable, setRenderer, setRenderers, setShadowGenerator, zoomDomainAxes, zoomRangeAxesMethods inherited from class org.jfree.chart.plot.Plot
addChangeListener, axisChanged, createAndAddEntity, drawBackgroundImage, drawNoDataMessage, drawOutline, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoomMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.chart.plot.Zoomable
zoomDomainAxes, zoomRangeAxes
-
Field Details
-
DEFAULT_GRIDLINE_STROKE
The default grid line stroke. -
DEFAULT_GRIDLINE_PAINT
The default grid line paint. -
DEFAULT_CROSSHAIR_VISIBLE
public static final boolean DEFAULT_CROSSHAIR_VISIBLEThe default crosshair visibility.- See Also:
-
DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke. -
DEFAULT_CROSSHAIR_PAINT
The default crosshair paint. -
localizationResources
The resourceBundle for the localization.
-
-
Constructor Details
-
MyXYPlot
public MyXYPlot()Default constructor. -
MyXYPlot
public MyXYPlot(org.jfree.data.xy.XYDataset dataset, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.chart.renderer.xy.XYItemRenderer renderer) Creates a new plot.- Parameters:
dataset- the dataset (nullpermitted).domainAxis- the domain axis (nullpermitted).rangeAxis- the range axis (nullpermitted).renderer- the renderer (nullpermitted).
-
-
Method Details
-
getPlotType
Returns the plot type as a string.- Overrides:
getPlotTypein classorg.jfree.chart.plot.XYPlot- Returns:
- A short string describing the type of plot.
-
getOrientation
public org.jfree.chart.plot.PlotOrientation getOrientation()Returns the orientation of the plot.- Specified by:
getOrientationin interfaceorg.jfree.chart.plot.Pannable- Specified by:
getOrientationin interfaceorg.jfree.chart.plot.Zoomable- Overrides:
getOrientationin classorg.jfree.chart.plot.XYPlot- Returns:
- The orientation of the plot.
-
setOrientation
public void setOrientation(org.jfree.chart.plot.PlotOrientation orientation) Sets the orientation for the plot.- Overrides:
setOrientationin classorg.jfree.chart.plot.XYPlot- Parameters:
orientation- the orientation (nullnot allowed).
-
getAxisOffset
public org.jfree.ui.RectangleInsets getAxisOffset()Returns the axis offset.- Overrides:
getAxisOffsetin classorg.jfree.chart.plot.XYPlot- Returns:
- The axis offset (never
null).
-
setAxisOffset
public void setAxisOffset(org.jfree.ui.RectangleInsets offset) Sets the axis offsets (gap between the data area and the axes).- Overrides:
setAxisOffsetin classorg.jfree.chart.plot.XYPlot- Parameters:
offset- the offset (nullnot permitted).
-
getDomainAxis
public org.jfree.chart.axis.ValueAxis getDomainAxis()Returns the domain axis for the plot. If the domain axis for this plot is null, then the method will return the parent plot's domain axis (if there is a parent plot).- Overrides:
getDomainAxisin classorg.jfree.chart.plot.XYPlot- Returns:
- The domain axis.
-
getDomainAxis
public org.jfree.chart.axis.ValueAxis getDomainAxis(int index) Returns a domain axis.- Overrides:
getDomainAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.- Returns:
- The axis (
nullpossible).
-
setDomainAxis
public void setDomainAxis(org.jfree.chart.axis.ValueAxis axis) Sets the domain axis for the plot and sends aPlotChangeEventto all registered listeners.- Overrides:
setDomainAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
axis- the new axis (nullpermitted).
-
setDomainAxis
public void setDomainAxis(int index, org.jfree.chart.axis.ValueAxis axis) Sets a domain axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setDomainAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.axis- the axis.
-
setDomainAxis
public void setDomainAxis(int index, org.jfree.chart.axis.ValueAxis axis, boolean notify) Sets a domain axis and, if requested, sends aPlotChangeEventto all registered listeners.- Overrides:
setDomainAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.axis- the axis.notify- notify listeners?
-
setDomainAxes
public void setDomainAxes(org.jfree.chart.axis.ValueAxis[] axes) Sets the domain axes for this plot and sends aPlotChangeEventto all registered listeners.- Overrides:
setDomainAxesin classorg.jfree.chart.plot.XYPlot- Parameters:
axes- the axes.
-
getDomainAxisLocation
public org.jfree.chart.axis.AxisLocation getDomainAxisLocation()Returns the location of the primary domain axis.- Overrides:
getDomainAxisLocationin classorg.jfree.chart.plot.XYPlot- Returns:
- The location (never
null).
-
setDomainAxisLocation
public void setDomainAxisLocation(org.jfree.chart.axis.AxisLocation location) Sets the location of the domain axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setDomainAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
location- the location (nullnot permitted).
-
setDomainAxisLocation
public void setDomainAxisLocation(org.jfree.chart.axis.AxisLocation location, boolean notify) Sets the location of the domain axis and, if requested, sends aPlotChangeEventto all registered listeners.- Overrides:
setDomainAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
location- the location (nullnot permitted).notify- notify listeners?
-
getDomainAxisEdge
public org.jfree.ui.RectangleEdge getDomainAxisEdge()Returns the edge for the primary domain axis (taking into account the plot's orientation.- Overrides:
getDomainAxisEdgein classorg.jfree.chart.plot.XYPlot- Returns:
- The edge.
-
getDomainAxisCount
public int getDomainAxisCount()Returns the number of domain axes.- Overrides:
getDomainAxisCountin classorg.jfree.chart.plot.XYPlot- Returns:
- The axis count.
-
clearDomainAxes
public void clearDomainAxes()Clears the domain axes from the plot and sends aPlotChangeEventto all registered listeners.- Overrides:
clearDomainAxesin classorg.jfree.chart.plot.XYPlot
-
configureDomainAxes
public void configureDomainAxes()Configures the domain axes.- Overrides:
configureDomainAxesin classorg.jfree.chart.plot.XYPlot
-
getDomainAxisLocation
public org.jfree.chart.axis.AxisLocation getDomainAxisLocation(int index) Returns the location for a domain axis. If this hasn't been set explicitly, the method returns the location that is opposite to the primary domain axis location.- Overrides:
getDomainAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.- Returns:
- The location (never
null).
-
setDomainAxisLocation
public void setDomainAxisLocation(int index, org.jfree.chart.axis.AxisLocation location) Sets the location for a domain axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setDomainAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.location- the location (nullpermitted).
-
getDomainAxisEdge
public org.jfree.ui.RectangleEdge getDomainAxisEdge(int index) Returns the edge for a domain axis.- Overrides:
getDomainAxisEdgein classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.- Returns:
- The edge.
-
getRangeAxis
public org.jfree.chart.axis.ValueAxis getRangeAxis()Returns the range axis for the plot. If the range axis for this plot is null, then the method will return the parent plot's range axis (if there is a parent plot).- Overrides:
getRangeAxisin classorg.jfree.chart.plot.XYPlot- Returns:
- The range axis.
-
setRangeAxis
public void setRangeAxis(org.jfree.chart.axis.ValueAxis axis) Sets the range axis for the plot and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
axis- the axis (nullpermitted).
-
getRangeAxisLocation
public org.jfree.chart.axis.AxisLocation getRangeAxisLocation()Returns the location of the primary range axis.- Overrides:
getRangeAxisLocationin classorg.jfree.chart.plot.XYPlot- Returns:
- The location (never
null).
-
setRangeAxisLocation
public void setRangeAxisLocation(org.jfree.chart.axis.AxisLocation location) Sets the location of the primary range axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
location- the location (nullnot permitted).
-
setRangeAxisLocation
public void setRangeAxisLocation(org.jfree.chart.axis.AxisLocation location, boolean notify) Sets the location of the primary range axis and, if requested, sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
location- the location (nullnot permitted).notify- notify listeners?
-
getRangeAxisEdge
public org.jfree.ui.RectangleEdge getRangeAxisEdge()Returns the edge for the primary range axis.- Overrides:
getRangeAxisEdgein classorg.jfree.chart.plot.XYPlot- Returns:
- The range axis edge.
-
getRangeAxis
public org.jfree.chart.axis.ValueAxis getRangeAxis(int index) Returns a range axis.- Overrides:
getRangeAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.- Returns:
- The axis (
nullpossible).
-
setRangeAxis
public void setRangeAxis(int index, org.jfree.chart.axis.ValueAxis axis) Sets a range axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.axis- the axis (nullpermitted).
-
setRangeAxis
public void setRangeAxis(int index, org.jfree.chart.axis.ValueAxis axis, boolean notify) Sets a range axis and, if requested, sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.axis- the axis (nullpermitted).notify- and notify the listeners
-
setRangeAxes
public void setRangeAxes(org.jfree.chart.axis.ValueAxis[] axes) Sets the range axes for this plot and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeAxesin classorg.jfree.chart.plot.XYPlot- Parameters:
axes- the axes.
-
getRangeAxisCount
public int getRangeAxisCount()Returns the number of range axes.- Overrides:
getRangeAxisCountin classorg.jfree.chart.plot.XYPlot- Returns:
- The axis count.
-
clearRangeAxes
public void clearRangeAxes()Clears the range axes from the plot and sends aPlotChangeEventto all registered listeners.- Overrides:
clearRangeAxesin classorg.jfree.chart.plot.XYPlot
-
configureRangeAxes
public void configureRangeAxes()Configures the range axes.- Overrides:
configureRangeAxesin classorg.jfree.chart.plot.XYPlot
-
getRangeAxisLocation
public org.jfree.chart.axis.AxisLocation getRangeAxisLocation(int index) Returns the location for a range axis. If this hasn't been set explicitly, the method returns the location that is opposite to the primary range axis location.- Overrides:
getRangeAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.- Returns:
- The location (never
null).
-
setRangeAxisLocation
public void setRangeAxisLocation(int index, org.jfree.chart.axis.AxisLocation location) Sets the location for a range axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeAxisLocationin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.location- the location (nullpermitted).
-
getRangeAxisEdge
public org.jfree.ui.RectangleEdge getRangeAxisEdge(int index) Returns the edge for a range axis.- Overrides:
getRangeAxisEdgein classorg.jfree.chart.plot.XYPlot- Parameters:
index- the axis index.- Returns:
- The edge.
-
getDataset
public org.jfree.data.xy.XYDataset getDataset()Returns the primary dataset for the plot.- Overrides:
getDatasetin classorg.jfree.chart.plot.XYPlot- Returns:
- The primary dataset (possibly
null).
-
getDataset
public org.jfree.data.xy.XYDataset getDataset(int index) Returns a dataset.- Overrides:
getDatasetin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the dataset index.- Returns:
- The dataset (possibly
null).
-
setDataset
public void setDataset(org.jfree.data.xy.XYDataset dataset) Sets the primary dataset for the plot, replacing the existing dataset if there is one.- Overrides:
setDatasetin classorg.jfree.chart.plot.XYPlot- Parameters:
dataset- the dataset (nullpermitted).
-
clearDatasets
public void clearDatasets()Clear the data sets -
setDataset
public void setDataset(int index, org.jfree.data.xy.XYDataset dataset) Sets a dataset for the plot.- Overrides:
setDatasetin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the dataset index.dataset- the dataset (nullpermitted).
-
getDatasetCount
public int getDatasetCount()Returns the number of datasets.- Overrides:
getDatasetCountin classorg.jfree.chart.plot.XYPlot- Returns:
- The number of datasets.
-
indexOf
public int indexOf(org.jfree.data.xy.XYDataset dataset) Returns the index of the specified dataset, or-1if the dataset does not belong to the plot.- Overrides:
indexOfin classorg.jfree.chart.plot.XYPlot- Parameters:
dataset- the dataset (nullnot permitted).- Returns:
- The index.
-
mapDatasetToDomainAxis
public void mapDatasetToDomainAxis(int index, int axisIndex) Maps a dataset to a particular domain axis. All data will be plotted against axis zero by default, no mapping is required for this case.- Overrides:
mapDatasetToDomainAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the dataset index (zero-based).axisIndex- the axis index.
-
mapDatasetToRangeAxis
public void mapDatasetToRangeAxis(int index, int axisIndex) Maps a dataset to a particular range axis. All data will be plotted against axis zero by default, no mapping is required for this case.- Overrides:
mapDatasetToRangeAxisin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the dataset index (zero-based).axisIndex- the axis index.
-
getRenderer
public org.jfree.chart.renderer.xy.XYItemRenderer getRenderer()Returns the renderer for the primary dataset.- Overrides:
getRendererin classorg.jfree.chart.plot.XYPlot- Returns:
- The item renderer (possibly
null).
-
getRenderer
public org.jfree.chart.renderer.xy.XYItemRenderer getRenderer(int index) Returns the renderer for a dataset, ornull.- Overrides:
getRendererin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the renderer index.- Returns:
- The renderer (possibly
null).
-
setRenderer
public void setRenderer(org.jfree.chart.renderer.xy.XYItemRenderer renderer) Sets the renderer for the primary dataset and sends aPlotChangeEventto all registered listeners. If the renderer is set tonull, no data will be displayed.- Overrides:
setRendererin classorg.jfree.chart.plot.XYPlot- Parameters:
renderer- the renderer (nullpermitted).
-
setRenderer
public void setRenderer(int index, org.jfree.chart.renderer.xy.XYItemRenderer renderer) Sets a renderer and sends aPlotChangeEventis sent to all registered listeners.- Overrides:
setRendererin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the index.renderer- the renderer.
-
getDatasetRenderingOrder
public org.jfree.chart.plot.DatasetRenderingOrder getDatasetRenderingOrder()Returns the dataset rendering order.- Overrides:
getDatasetRenderingOrderin classorg.jfree.chart.plot.XYPlot- Returns:
- The order (never
null).
-
setDatasetRenderingOrder
public void setDatasetRenderingOrder(org.jfree.chart.plot.DatasetRenderingOrder order) Sets the rendering order and sends aPlotChangeEventto all registered listeners. By default, the plot renders the primary dataset last (so that the primary dataset overlays the secondary datasets). You can reverse this if you want to.- Overrides:
setDatasetRenderingOrderin classorg.jfree.chart.plot.XYPlot- Parameters:
order- the rendering order (nullnot permitted).
-
getSeriesRenderingOrder
public org.jfree.chart.plot.SeriesRenderingOrder getSeriesRenderingOrder()Returns the series rendering order.- Overrides:
getSeriesRenderingOrderin classorg.jfree.chart.plot.XYPlot- Returns:
- the order (never
null).
-
setSeriesRenderingOrder
public void setSeriesRenderingOrder(org.jfree.chart.plot.SeriesRenderingOrder order) Sets the series order and sends aPlotChangeEventto all registered listeners. By default, the plot renders the primary series last (so that the primary series appears to be on top). You can reverse this if you want to.- Overrides:
setSeriesRenderingOrderin classorg.jfree.chart.plot.XYPlot- Parameters:
order- the rendering order (nullnot permitted).
-
getIndexOf
public int getIndexOf(org.jfree.chart.renderer.xy.XYItemRenderer renderer) Returns the index of the specified renderer, or-1if the renderer is not assigned to this plot.- Overrides:
getIndexOfin classorg.jfree.chart.plot.XYPlot- Parameters:
renderer- the renderer (nullpermitted).- Returns:
- The renderer index.
-
getRendererForDataset
public org.jfree.chart.renderer.xy.XYItemRenderer getRendererForDataset(org.jfree.data.xy.XYDataset dataset) Returns the renderer for the specified dataset. The code first determines the index of the dataset, then checks if there is a renderer with the same index (if not, the method returns renderer(0).- Overrides:
getRendererForDatasetin classorg.jfree.chart.plot.XYPlot- Parameters:
dataset- the dataset (nullpermitted).- Returns:
- The renderer (possibly
null).
-
getWeight
public int getWeight()Returns the weight for this plot when it is used as a subplot within a combined plot.- Overrides:
getWeightin classorg.jfree.chart.plot.XYPlot- Returns:
- The weight.
-
setWeight
public void setWeight(int weight) Sets the weight for the plot.- Overrides:
setWeightin classorg.jfree.chart.plot.XYPlot- Parameters:
weight- the weight.
-
isDomainGridlinesVisible
public boolean isDomainGridlinesVisible()Returnstrueif the domain gridlines are visible, andfalseotherwise.- Overrides:
isDomainGridlinesVisiblein classorg.jfree.chart.plot.XYPlot- Returns:
trueorfalse.
-
setDomainGridlinesVisible
public void setDomainGridlinesVisible(boolean visible) Sets the flag that controls whether or not the domain grid-lines are visible.If the flag value is changed, a
PlotChangeEventis sent to all registered listeners.- Overrides:
setDomainGridlinesVisiblein classorg.jfree.chart.plot.XYPlot- Parameters:
visible- the new value of the flag.
-
getDomainGridlineStroke
Returns the stroke for the grid-lines (if any) plotted against the domain axis.- Overrides:
getDomainGridlineStrokein classorg.jfree.chart.plot.XYPlot- Returns:
- The stroke.
-
setDomainGridlineStroke
Sets the stroke for the grid lines plotted against the domain axis.If you set this to
null, no grid lines will be drawn.- Overrides:
setDomainGridlineStrokein classorg.jfree.chart.plot.XYPlot- Parameters:
stroke- the stroke (nullpermitted).
-
getDomainGridlinePaint
Returns the paint for the grid lines (if any) plotted against the domain axis.- Overrides:
getDomainGridlinePaintin classorg.jfree.chart.plot.XYPlot- Returns:
- The paint.
-
setDomainGridlinePaint
Sets the paint for the grid lines plotted against the domain axis.If you set this to
null, no grid lines will be drawn.- Overrides:
setDomainGridlinePaintin classorg.jfree.chart.plot.XYPlot- Parameters:
paint- the paint (nullpermitted).
-
isRangeGridlinesVisible
public boolean isRangeGridlinesVisible()Returnstrueif the range axis grid is visible, andfalseotherwise.- Overrides:
isRangeGridlinesVisiblein classorg.jfree.chart.plot.XYPlot- Returns:
- A boolean.
-
setRangeGridlinesVisible
public void setRangeGridlinesVisible(boolean visible) Sets the flag that controls whether or not the range axis grid lines are visible.If the flag value is changed, a
PlotChangeEventis sent to all registered listeners.- Overrides:
setRangeGridlinesVisiblein classorg.jfree.chart.plot.XYPlot- Parameters:
visible- the new value of the flag.
-
getRangeGridlineStroke
Returns the stroke for the grid lines (if any) plotted against the range axis.- Overrides:
getRangeGridlineStrokein classorg.jfree.chart.plot.XYPlot- Returns:
- The stroke (never
null).
-
setRangeGridlineStroke
Sets the stroke for the grid lines plotted against the range axis, and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeGridlineStrokein classorg.jfree.chart.plot.XYPlot- Parameters:
stroke- the stroke (nullnot permitted).
-
getRangeGridlinePaint
Returns the paint for the grid lines (if any) plotted against the range axis.- Overrides:
getRangeGridlinePaintin classorg.jfree.chart.plot.XYPlot- Returns:
- The paint (never
null).
-
setRangeGridlinePaint
Sets the paint for the grid lines plotted against the range axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeGridlinePaintin classorg.jfree.chart.plot.XYPlot- Parameters:
paint- the paint (nullpermitted).
-
isRangeZeroBaselineVisible
public boolean isRangeZeroBaselineVisible()Returns a flag that controls whether or not a zero baseline is displayed for the range axis.- Overrides:
isRangeZeroBaselineVisiblein classorg.jfree.chart.plot.XYPlot- Returns:
- A boolean.
-
setRangeZeroBaselineVisible
public void setRangeZeroBaselineVisible(boolean visible) Sets the flag that controls whether or not the zero baseline is displayed for the range axis, and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeZeroBaselineVisiblein classorg.jfree.chart.plot.XYPlot- Parameters:
visible- the flag.
-
getRangeZeroBaselineStroke
Returns the stroke used for the zero baseline against the range axis.- Overrides:
getRangeZeroBaselineStrokein classorg.jfree.chart.plot.XYPlot- Returns:
- The stroke (never
null).
-
setRangeZeroBaselineStroke
Sets the stroke for the zero baseline for the range axis, and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeZeroBaselineStrokein classorg.jfree.chart.plot.XYPlot- Parameters:
stroke- the stroke (nullnot permitted).
-
getRangeZeroBaselinePaint
Returns the paint for the zero baseline (if any) plotted against the range axis.- Overrides:
getRangeZeroBaselinePaintin classorg.jfree.chart.plot.XYPlot- Returns:
- The paint (never
null).
-
setRangeZeroBaselinePaint
Sets the paint for the zero baseline plotted against the range axis and sends aPlotChangeEventto all registered listeners.- Overrides:
setRangeZeroBaselinePaintin classorg.jfree.chart.plot.XYPlot- Parameters:
paint- the paint (nullpermitted).
-
getDomainTickBandPaint
Returns the paint used for the domain tick bands. If this isnull, no tick bands will be drawn.- Overrides:
getDomainTickBandPaintin classorg.jfree.chart.plot.XYPlot- Returns:
- The paint (possibly
null).
-
setDomainTickBandPaint
Sets the paint for the domain tick bands.- Overrides:
setDomainTickBandPaintin classorg.jfree.chart.plot.XYPlot- Parameters:
paint- the paint (nullpermitted).
-
getRangeTickBandPaint
Returns the paint used for the range tick bands. If this isnull, no tick bands will be drawn.- Overrides:
getRangeTickBandPaintin classorg.jfree.chart.plot.XYPlot- Returns:
- The paint (possibly
null).
-
setRangeTickBandPaint
Sets the paint for the range tick bands.- Overrides:
setRangeTickBandPaintin classorg.jfree.chart.plot.XYPlot- Parameters:
paint- the paint (nullpermitted).
-
getQuadrantOrigin
Returns the origin for the quadrants that can be displayed on the plot. This defaults to (0, 0).- Overrides:
getQuadrantOriginin classorg.jfree.chart.plot.XYPlot- Returns:
- The origin point (never
null).
-
setQuadrantOrigin
Sets the quadrant origin and sends aPlotChangeEventto all registered listeners.- Overrides:
setQuadrantOriginin classorg.jfree.chart.plot.XYPlot- Parameters:
origin- the origin (nullnot permitted).
-
getQuadrantPaint
Returns the paint used for the specified quadrant.- Overrides:
getQuadrantPaintin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the quadrant index (0-3).- Returns:
- The paint (possibly
null).
-
setQuadrantPaint
Sets the paint used for the specified quadrant and sends aPlotChangeEventto all registered listeners.- Overrides:
setQuadrantPaintin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the quadrant index (0-3).paint- the paint (nullpermitted).
-
addDomainMarker
public void addDomainMarker(org.jfree.chart.plot.Marker marker) Adds a marker for the domain axis and sends aPlotChangeEventto all registered listeners.Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
- Overrides:
addDomainMarkerin classorg.jfree.chart.plot.XYPlot- Parameters:
marker- the marker (nullnot permitted).
-
addDomainMarker
public void addDomainMarker(org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for the domain axis in the specified layer and sends aPlotChangeEventto all registered listeners.Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
- Overrides:
addDomainMarkerin classorg.jfree.chart.plot.XYPlot- Parameters:
marker- the marker (nullnot permitted).layer- the layer (foreground or background).
-
clearDomainMarkers
public void clearDomainMarkers()Clears all the (foreground and background) domain markers and sends aPlotChangeEventto all registered listeners.- Overrides:
clearDomainMarkersin classorg.jfree.chart.plot.XYPlot
-
clearDomainMarkers
public void clearDomainMarkers(int index) Clears the (foreground and background) domain markers for a particular renderer.- Overrides:
clearDomainMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the renderer index.
-
addDomainMarker
public void addDomainMarker(int index, org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for a renderer and sends aPlotChangeEventto all registered listeners.Typically a marker will be drawn by the renderer as a line perpendicular to the domain axis (that the renderer is mapped to), however this is entirely up to the renderer.
- Overrides:
addDomainMarkerin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the renderer index.marker- the marker.layer- the layer (foreground or background).
-
addRangeMarker
public void addRangeMarker(org.jfree.chart.plot.Marker marker) Adds a marker for the range axis and sends aPlotChangeEventto all registered listeners.Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
- Overrides:
addRangeMarkerin classorg.jfree.chart.plot.XYPlot- Parameters:
marker- the marker (nullnot permitted).
-
addRangeMarker
public void addRangeMarker(org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for the range axis in the specified layer and sends aPlotChangeEventto all registered listeners.Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
- Overrides:
addRangeMarkerin classorg.jfree.chart.plot.XYPlot- Parameters:
marker- the marker (nullnot permitted).layer- the layer (foreground or background).
-
clearRangeMarkers
public void clearRangeMarkers()Clears all the range markers and sends aPlotChangeEventto all registered listeners.- Overrides:
clearRangeMarkersin classorg.jfree.chart.plot.XYPlot
-
addRangeMarker
public void addRangeMarker(int index, org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer) Adds a marker for a renderer and sends aPlotChangeEventto all registered listeners.Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
- Overrides:
addRangeMarkerin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the renderer index.marker- the marker.layer- the layer (foreground or background).
-
clearRangeMarkers
public void clearRangeMarkers(int index) Clears the (foreground and background) range markers for a particular renderer.- Overrides:
clearRangeMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the renderer index.
-
addAnnotation
public void addAnnotation(org.jfree.chart.annotations.XYAnnotation annotation) Adds an annotation to the plot and sends aPlotChangeEventto all registered listeners.- Overrides:
addAnnotationin classorg.jfree.chart.plot.XYPlot- Parameters:
annotation- the annotation (nullnot permitted).
-
removeAnnotation
public boolean removeAnnotation(org.jfree.chart.annotations.XYAnnotation annotation) Removes an annotation from the plot and sends aPlotChangeEventto all registered listeners.- Overrides:
removeAnnotationin classorg.jfree.chart.plot.XYPlot- Parameters:
annotation- the annotation (nullnot permitted).- Returns:
- A boolean (indicates whether or not the annotation was removed).
-
clearAnnotations
public void clearAnnotations()Clears all the annotations and sends aPlotChangeEventto all registered listeners.- Overrides:
clearAnnotationsin classorg.jfree.chart.plot.XYPlot
-
calculateAxisSpace
Calculates the space required for all the axes in the plot.- Overrides:
calculateAxisSpacein classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.plotArea- the plot area.- Returns:
- The required space.
-
calculateDomainAxisSpace
protected org.jfree.chart.axis.AxisSpace calculateDomainAxisSpace(Graphics2D g2, Rectangle2D plotArea, org.jfree.chart.axis.AxisSpace space) Calculates the space required for the domain axis/axes.- Overrides:
calculateDomainAxisSpacein classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.plotArea- the plot area.space- a carrier for the result (nullpermitted).- Returns:
- The required space.
-
calculateRangeAxisSpace
protected org.jfree.chart.axis.AxisSpace calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, org.jfree.chart.axis.AxisSpace space) Calculates the space required for the range axis/axes.- Overrides:
calculateRangeAxisSpacein classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.plotArea- the plot area.space- a carrier for the result (nullpermitted).- Returns:
- The required space.
-
draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, org.jfree.chart.plot.PlotState parentState, org.jfree.chart.plot.PlotRenderingInfo info) Draws the plot within the specified area on a graphics device.- Overrides:
drawin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.area- the plot area (in Java2D space).anchor- an anchor point in Java2D space (nullpermitted).parentState- the state from the parent plot, if there is one (nullpermitted).info- collects chart drawing information (nullpermitted).
-
drawBackground
Draws the background for the plot.- Overrides:
drawBackgroundin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.area- the area.
-
drawQuadrants
Draws the quadrants.- Overrides:
drawQuadrantsin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.area- the area.
-
drawDomainTickBands
Draws the domain tick bands, if any.- Overrides:
drawDomainTickBandsin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.ticks- the ticks.
-
drawRangeTickBands
Draws the range tick bands, if any.- Overrides:
drawRangeTickBandsin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.ticks- the ticks.
-
drawAxes
protected Map drawAxes(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo plotState) A utility method for drawing the axes.- Overrides:
drawAxesin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device (nullnot permitted).plotArea- the plot area (nullnot permitted).dataArea- the data area (nullnot permitted).plotState- collects information about the plot (nullpermitted).- Returns:
- A map containing the state for each axis drawn.
-
render
public boolean render(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.chart.plot.PlotRenderingInfo info, org.jfree.chart.plot.CrosshairState crosshairState) Draws a representation of the data within the dataArea region, using the current renderer.The
infoandcrosshairStatearguments may benull.- Overrides:
renderin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the region in which the data is to be drawn.index- the dataset index.info- an optional object for collection dimension information.crosshairState- collects crosshair information (nullpermitted).- Returns:
- A flag that indicates whether any data was actually rendered.
-
getDomainAxisForDataset
public org.jfree.chart.axis.ValueAxis getDomainAxisForDataset(int index) Returns the domain axis for a dataset.- Overrides:
getDomainAxisForDatasetin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the dataset index.- Returns:
- The axis.
-
getRangeAxisForDataset
public org.jfree.chart.axis.ValueAxis getRangeAxisForDataset(int index) Returns the range axis for a dataset.- Overrides:
getRangeAxisForDatasetin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the dataset index.- Returns:
- The axis.
-
drawDomainGridlines
Draws the gridlines for the plot, if they are visible.- Overrides:
drawDomainGridlinesin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.ticks- the ticks.
-
drawRangeGridlines
Draws the gridlines for the plot's primary range axis, if they are visible.- Overrides:
drawRangeGridlinesin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.area- the data area.ticks- the ticks.
-
drawZeroRangeBaseline
Draws a base line across the chart at value zero on the range axis.- Overrides:
drawZeroRangeBaselinein classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.area- the data area.
-
drawAnnotations
public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo info) Draws the annotations for the plot.- Overrides:
drawAnnotationsin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.info- the chart rendering info.
-
drawDomainMarkers
protected void drawDomainMarkers(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.ui.Layer layer) Draws the domain markers (if any) for an axis and layer. This method is typically called from within the draw() method.- Overrides:
drawDomainMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.index- the renderer index.layer- the layer (foreground or background).
-
drawRangeMarkers
protected void drawRangeMarkers(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.ui.Layer layer) Draws the range markers (if any) for a renderer and layer. This method is typically called from within the draw() method.- Overrides:
drawRangeMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.index- the renderer index.layer- the layer (foreground or background).
-
getDomainMarkers
Returns the list of domain markers (read only) for the specified layer.- Overrides:
getDomainMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
layer- the layer (foreground or background).- Returns:
- The list of domain markers.
-
getRangeMarkers
Returns the list of range markers (read only) for the specified layer.- Overrides:
getRangeMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
layer- the layer (foreground or background).- Returns:
- The list of range markers.
-
getDomainMarkers
Returns a collection of domain markers for a particular renderer and layer.- Overrides:
getDomainMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the renderer index.layer- the layer.- Returns:
- A collection of markers (possibly
null).
-
getRangeMarkers
Returns a collection of range markers for a particular renderer and layer.- Overrides:
getRangeMarkersin classorg.jfree.chart.plot.XYPlot- Parameters:
index- the renderer index.layer- the layer.- Returns:
- A collection of markers (possibly
null).
-
drawHorizontalLine
protected void drawHorizontalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Utility method for drawing a horizontal line across the data area of the plot.- Overrides:
drawHorizontalLinein classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.value- the coordinate, where to draw the line.stroke- the stroke to use.paint- the paint to use.
-
drawVerticalLine
protected void drawVerticalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Utility method for drawing a vertical line on the data area of the plot.- Overrides:
drawVerticalLinein classorg.jfree.chart.plot.XYPlot- Parameters:
g2- the graphics device.dataArea- the data area.value- the coordinate, where to draw the line.stroke- the stroke to use.paint- the paint to use.
-
handleClick
public void handleClick(int x, int y, org.jfree.chart.plot.PlotRenderingInfo info) Handles a 'click' on the plot by updating the anchor values...- Overrides:
handleClickin classorg.jfree.chart.plot.XYPlot- Parameters:
x- the x-coordinate, where the click occurred, in Java2D space.y- the y-coordinate, where the click occurred, in Java2D space.info- object containing information about the plot dimensions.
-
getDomainAxisIndex
public int getDomainAxisIndex(org.jfree.chart.axis.ValueAxis axis) Returns the index of the given domain axis.- Overrides:
getDomainAxisIndexin classorg.jfree.chart.plot.XYPlot- Parameters:
axis- the axis.- Returns:
- The axis index.
-
getRangeAxisIndex
public int getRangeAxisIndex(org.jfree.chart.axis.ValueAxis axis) Returns the index of the given range axis.- Overrides:
getRangeAxisIndexin classorg.jfree.chart.plot.XYPlot- Parameters:
axis- the axis.- Returns:
- The axis index.
-
getDataRange
public org.jfree.data.Range getDataRange(org.jfree.chart.axis.ValueAxis axis) Returns the range for the specified axis.- Specified by:
getDataRangein interfaceorg.jfree.chart.plot.ValueAxisPlot- Overrides:
getDataRangein classorg.jfree.chart.plot.XYPlot- Parameters:
axis- the axis.- Returns:
- The range.
-
datasetChanged
public void datasetChanged(org.jfree.data.general.DatasetChangeEvent event) Receives notification of a change to the plot's dataset.The axis ranges are updated if necessary.
- Specified by:
datasetChangedin interfaceorg.jfree.data.general.DatasetChangeListener- Overrides:
datasetChangedin classorg.jfree.chart.plot.XYPlot- Parameters:
event- information about the event (not used here).
-
rendererChanged
public void rendererChanged(org.jfree.chart.event.RendererChangeEvent event) Receives notification of a renderer change event.- Specified by:
rendererChangedin interfaceorg.jfree.chart.event.RendererChangeListener- Overrides:
rendererChangedin classorg.jfree.chart.plot.XYPlot- Parameters:
event- the event.
-
isDomainCrosshairVisible
public boolean isDomainCrosshairVisible()Returns a flag indicating whether or not the domain crosshair is visible.- Overrides:
isDomainCrosshairVisiblein classorg.jfree.chart.plot.XYPlot- Returns:
- The flag.
-
setDomainCrosshairVisible
public void setDomainCrosshairVisible(boolean flag) Sets the flag indicating whether or not the domain crosshair is visible.- Overrides:
setDomainCrosshairVisiblein classorg.jfree.chart.plot.XYPlot- Parameters:
flag- the new value of the flag.
-
isDomainCrosshairLockedOnData
public boolean isDomainCrosshairLockedOnData()Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.- Overrides:
isDomainCrosshairLockedOnDatain classorg.jfree.chart.plot.XYPlot- Returns:
- The flag.
-
setDomainCrosshairLockedOnData
public void setDomainCrosshairLockedOnData(boolean flag) Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.- Overrides:
setDomainCrosshairLockedOnDatain classorg.jfree.chart.plot.XYPlot- Parameters:
flag- the flag.
-
getDomainCrosshairValue
public double getDomainCrosshairValue()Returns the domain crosshair value.- Overrides:
getDomainCrosshairValuein classorg.jfree.chart.plot.XYPlot- Returns:
- The value.
-
setDomainCrosshairValue
public void setDomainCrosshairValue(double value) Sets the domain crosshair value and sends aPlotChangeEventto all registered listeners (provided that the domain crosshair is visible).- Overrides:
setDomainCrosshairValuein classorg.jfree.chart.plot.XYPlot- Parameters:
value- the value.
-
setDomainCrosshairValue
public void setDomainCrosshairValue(double value, boolean notify) Sets the domain crosshair value and, if requested, sends aPlotChangeEventto all registered listeners (provided that the domain crosshair is visible).- Overrides:
setDomainCrosshairValuein classorg.jfree.chart.plot.XYPlot- Parameters:
value- the new value.notify- notify listeners?
-
getDomainCrosshairStroke
Returns theStrokeused to draw the crosshair (if visible).- Overrides:
getDomainCrosshairStrokein classorg.jfree.chart.plot.XYPlot- Returns:
- The crosshair stroke.
-
setDomainCrosshairStroke
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Overrides:
setDomainCrosshairStrokein classorg.jfree.chart.plot.XYPlot- Parameters:
stroke- the new crosshair stroke.
-
getDomainCrosshairPaint
Returns the domain crosshair color.- Overrides:
getDomainCrosshairPaintin classorg.jfree.chart.plot.XYPlot- Returns:
- The crosshair color.
-
setDomainCrosshairPaint
Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Overrides:
setDomainCrosshairPaintin classorg.jfree.chart.plot.XYPlot- Parameters:
paint- the new crosshair paint.
-
isRangeCrosshairVisible
public boolean isRangeCrosshairVisible()Returns a flag indicating whether or not the range crosshair is visible.- Overrides:
isRangeCrosshairVisiblein classorg.jfree.chart.plot.XYPlot- Returns:
- The flag.
-
setRangeCrosshairVisible
public void setRangeCrosshairVisible(boolean flag) Sets the flag indicating whether or not the range crosshair is visible.- Overrides:
setRangeCrosshairVisiblein classorg.jfree.chart.plot.XYPlot- Parameters:
flag- the new value of the flag.
-
isRangeCrosshairLockedOnData
public boolean isRangeCrosshairLockedOnData()Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.- Overrides:
isRangeCrosshairLockedOnDatain classorg.jfree.chart.plot.XYPlot- Returns:
- The flag.
-
setRangeCrosshairLockedOnData
public void setRangeCrosshairLockedOnData(boolean flag) Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values.- Overrides:
setRangeCrosshairLockedOnDatain classorg.jfree.chart.plot.XYPlot- Parameters:
flag- the flag.
-
getRangeCrosshairValue
public double getRangeCrosshairValue()Returns the range crosshair value.- Overrides:
getRangeCrosshairValuein classorg.jfree.chart.plot.XYPlot- Returns:
- The value.
-
setRangeCrosshairValue
public void setRangeCrosshairValue(double value) Sets the domain crosshair value.Registered listeners are notified that the plot has been modified, but only if the crosshair is visible.
- Overrides:
setRangeCrosshairValuein classorg.jfree.chart.plot.XYPlot- Parameters:
value- the new value.
-
setRangeCrosshairValue
public void setRangeCrosshairValue(double value, boolean notify) Sets the range crosshair value.Registered listeners are notified that the axis has been modified, but only if the crosshair is visible.
- Overrides:
setRangeCrosshairValuein classorg.jfree.chart.plot.XYPlot- Parameters:
value- the new value.notify- a flag that controls whether or not listeners are notified.
-
getRangeCrosshairStroke
Returns the Stroke used to draw the crosshair (if visible).- Overrides:
getRangeCrosshairStrokein classorg.jfree.chart.plot.XYPlot- Returns:
- The crosshair stroke.
-
setRangeCrosshairStroke
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Overrides:
setRangeCrosshairStrokein classorg.jfree.chart.plot.XYPlot- Parameters:
stroke- the new crosshair stroke.
-
getRangeCrosshairPaint
Returns the range crosshair color.- Overrides:
getRangeCrosshairPaintin classorg.jfree.chart.plot.XYPlot- Returns:
- The crosshair color.
-
setRangeCrosshairPaint
Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Overrides:
setRangeCrosshairPaintin classorg.jfree.chart.plot.XYPlot- Parameters:
paint- the new crosshair paint.
-
getFixedDomainAxisSpace
public org.jfree.chart.axis.AxisSpace getFixedDomainAxisSpace()Returns the fixed domain axis space.- Overrides:
getFixedDomainAxisSpacein classorg.jfree.chart.plot.XYPlot- Returns:
- The fixed domain axis space (possibly
null).
-
setFixedDomainAxisSpace
public void setFixedDomainAxisSpace(org.jfree.chart.axis.AxisSpace space) Sets the fixed domain axis space.- Overrides:
setFixedDomainAxisSpacein classorg.jfree.chart.plot.XYPlot- Parameters:
space- the space.
-
getFixedRangeAxisSpace
public org.jfree.chart.axis.AxisSpace getFixedRangeAxisSpace()Returns the fixed range axis space.- Overrides:
getFixedRangeAxisSpacein classorg.jfree.chart.plot.XYPlot- Returns:
- The fixed range axis space.
-
setFixedRangeAxisSpace
public void setFixedRangeAxisSpace(org.jfree.chart.axis.AxisSpace space) Sets the fixed range axis space.- Overrides:
setFixedRangeAxisSpacein classorg.jfree.chart.plot.XYPlot- Parameters:
space- the space.
-
zoomDomainAxes
public void zoomDomainAxes(double factor, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Multiplies the range on the domain axis/axes by the specified factor.- Specified by:
zoomDomainAxesin interfaceorg.jfree.chart.plot.Zoomable- Overrides:
zoomDomainAxesin classorg.jfree.chart.plot.XYPlot- Parameters:
factor- the zoom factor.info- the plot rendering info.source- the source point.
-
zoomDomainAxes
public void zoomDomainAxes(double lowerPercent, double upperPercent, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Zooms in on the domain axis/axes. The new lower and upper bounds are specified as percentages of the current axis range, where 0 percent is the current lower bound and 100 percent is the current upper bound.- Specified by:
zoomDomainAxesin interfaceorg.jfree.chart.plot.Zoomable- Overrides:
zoomDomainAxesin classorg.jfree.chart.plot.XYPlot- Parameters:
lowerPercent- a percentage that determines the new lower bound for the axis (e.g. 0.20 is twenty percent).upperPercent- a percentage that determines the new upper bound for the axis (e.g. 0.80 is eighty percent).info- the plot rendering info.source- the source point.
-
zoomRangeAxes
public void zoomRangeAxes(double factor, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Multiplies the range on the range axis/axes by the specified factor.- Specified by:
zoomRangeAxesin interfaceorg.jfree.chart.plot.Zoomable- Overrides:
zoomRangeAxesin classorg.jfree.chart.plot.XYPlot- Parameters:
factor- the zoom factor.info- the plot rendering info.source- the source point.
-
zoomRangeAxes
public void zoomRangeAxes(double lowerPercent, double upperPercent, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source) Zooms in on the range axes.- Specified by:
zoomRangeAxesin interfaceorg.jfree.chart.plot.Zoomable- Overrides:
zoomRangeAxesin classorg.jfree.chart.plot.XYPlot- Parameters:
lowerPercent- the lower bound.upperPercent- the upper bound.info- the plot rendering info.source- the source point.
-
isDomainZoomable
public boolean isDomainZoomable()Returnstrue- Specified by:
isDomainZoomablein interfaceorg.jfree.chart.plot.Zoomable- Overrides:
isDomainZoomablein classorg.jfree.chart.plot.XYPlot- Returns:
- A boolean.
-
isRangeZoomable
public boolean isRangeZoomable()Returnstrue- Specified by:
isRangeZoomablein interfaceorg.jfree.chart.plot.Zoomable- Overrides:
isRangeZoomablein classorg.jfree.chart.plot.XYPlot- Returns:
- A boolean.
-
getSeriesCount
public int getSeriesCount()Returns the number of series in the primary dataset for this plot. If the dataset isnull, the method returns 0.- Overrides:
getSeriesCountin classorg.jfree.chart.plot.XYPlot- Returns:
- The series count.
-
getFixedLegendItems
public org.jfree.chart.LegendItemCollection getFixedLegendItems()Returns the fixed legend items, if any.- Overrides:
getFixedLegendItemsin classorg.jfree.chart.plot.XYPlot- Returns:
- The legend items (possibly
null).
-
setFixedLegendItems
public void setFixedLegendItems(org.jfree.chart.LegendItemCollection items) Sets the fixed legend items for the plot. Leave this set tonullif you prefer the legend items to be created automatically.- Overrides:
setFixedLegendItemsin classorg.jfree.chart.plot.XYPlot- Parameters:
items- the legend items (nullpermitted).
-
getLegendItems
public org.jfree.chart.LegendItemCollection getLegendItems()Returns the legend items for the plot. Each legend item is generated by the plot's renderer, since the renderer is responsible for the visual representation of the data.- Specified by:
getLegendItemsin interfaceorg.jfree.chart.LegendItemSource- Overrides:
getLegendItemsin classorg.jfree.chart.plot.XYPlot- Returns:
- The legend items.
-
equals
Tests this plot for equality with another object.- Overrides:
equalsin classorg.jfree.chart.plot.XYPlot- Parameters:
obj- the object (nullpermitted).- Returns:
trueorfalse.
-
clone
Returns a clone of the plot.- Specified by:
clonein interfaceorg.jfree.util.PublicCloneable- Overrides:
clonein classorg.jfree.chart.plot.XYPlot- Returns:
- A clone.
- Throws:
CloneNotSupportedException- this can occur if some component of the plot cannot be cloned.
-