Example usage for Java org.jfree.chart.plot XYPlot fields, constructors, methods, implement or subclass
The text is from its open source code.
Stroke | DEFAULT_GRIDLINE_STROKE The default grid line stroke. |
Paint | DEFAULT_GRIDLINE_PAINT The default grid line paint. |
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. |
void | addAnnotation(XYAnnotation annotation) Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners. |
void | addChangeListener(PlotChangeListener listener) Registers an object for notification of changes to the plot. |
void | addDomainMarker(Marker marker) Adds a marker for the domain axis and sends a PlotChangeEvent to all registered listeners. |
void | addDomainMarker(Marker marker, Layer layer) Adds a marker for the domain axis in the specified layer and sends a PlotChangeEvent to all registered listeners. |
void | addRangeMarker(Marker marker) Adds a marker for the range axis and sends a PlotChangeEvent to all registered listeners. |
void | addRangeMarker(int index, Marker marker, Layer layer) Adds a marker for a specific dataset/renderer and sends a PlotChangeEvent to all registered listeners. |
void | addRangeMarker(Marker marker, Layer layer) Adds a marker for the range axis in the specified layer and sends a PlotChangeEvent to all registered listeners. |
void | axisChanged(AxisChangeEvent event) Receives notification of a change to one of the plot's axes. |
void | clearAnnotations() Clears all the annotations and sends a PlotChangeEvent to all registered listeners. |
void | clearDomainAxes() Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners. |
void | clearDomainMarkers() Clears all the (foreground and background) domain markers and sends a PlotChangeEvent to all registered listeners. |
void | clearRangeAxes() Clears the range axes from the plot and sends a PlotChangeEvent to all registered listeners. |
void | clearRangeMarkers() Clears all the range markers and sends a PlotChangeEvent to all registered listeners. |
void | draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Draws the plot within the specified area on a graphics device. |
List | getAnnotations() Returns the list of annotations. |
Paint | getBackgroundPaint() Returns the background color of the plot area. |
Range | getDataRange(ValueAxis axis) Returns the range for the specified axis. |
XYDataset | getDataset() Returns the primary dataset for the plot. |
XYDataset | getDataset(int index) Returns the dataset with the specified index, or null if there is no dataset with that index. |
int | getDatasetCount() Returns the number of datasets. |
ValueAxis | getDomainAxis() Returns the domain axis with index 0. |
ValueAxis | getDomainAxis(int index) Returns the domain axis with the specified index, or null if there is no axis with that index. |
int | getDomainAxisCount() Returns the number of domain axes. |
RectangleEdge | getDomainAxisEdge() Returns the edge for the primary domain axis (taking into account the plot's orientation). |
int | getDomainAxisIndex(ValueAxis axis) Returns the index of the given domain axis. |
AxisLocation | getDomainAxisLocation() Returns the location of the primary domain axis. |
Paint | getDomainCrosshairPaint() Returns the domain crosshair paint. |
double | getDomainCrosshairValue() Returns the domain crosshair value. |
Collection | getDomainMarkers(Layer layer) Returns the list of domain markers (read only) for the specified layer. |
DrawingSupplier | getDrawingSupplier() Returns the drawing supplier for the plot. |
LegendItemCollection | getFixedLegendItems() Returns the fixed legend items, if any. |
LegendItemCollection | getLegendItems() Returns the legend items for the plot. |
PlotOrientation | getOrientation() Returns the orientation of the plot. |
Plot | getParent() Returns the parent plot (or null if this plot is not part of a combined plot). |
ValueAxis | getRangeAxis() Returns the range axis for the plot. |
ValueAxis | getRangeAxis(int index) Returns the range axis with the specified index, or null if there is no axis with that index. |
int | getRangeAxisCount() Returns the number of range axes. |
RectangleEdge | getRangeAxisEdge() Returns the edge for the primary range axis. |
RectangleEdge | getRangeAxisEdge(int index) Returns the edge for a range axis. |
ValueAxis | getRangeAxisForDataset(int index) Returns the range axis for a dataset. |
int | getRangeAxisIndex(ValueAxis axis) Returns the index of the given range axis. |
AxisLocation | getRangeAxisLocation() Returns the location of the primary range axis. |
AxisLocation | getRangeAxisLocation(int index) Returns the location for a range axis. |
double | getRangeCrosshairValue() Returns the range crosshair value. |
Paint | getRangeGridlinePaint() Returns the paint for the grid lines (if any) plotted against the range axis. |
Collection | getRangeMarkers(Layer layer) Returns the list of range markers (read only) for the specified layer. |
XYItemRenderer | getRenderer() Returns the renderer for the primary dataset. |
XYItemRenderer | getRenderer(int index) Returns the renderer with the specified index, or null . |
int | getRendererCount() Returns the number of renderer slots for this plot. |
XYItemRenderer | getRendererForDataset(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). |
int | getSeriesCount() Returns the number of series in the primary dataset for this plot. |
int | indexOf(XYDataset dataset) Returns the index of the specified dataset, or -1 if the dataset does not belong to the plot. |
boolean | isNotify() Returns a flag that controls whether or not change events are sent to registered listeners. |
void | mapDatasetToDomainAxis(int index, int axisIndex) Maps a dataset to a particular domain axis. |
void | mapDatasetToRangeAxis(int index, int axisIndex) Maps a dataset to a particular range axis. |
void | notifyListeners(PlotChangeEvent event) Notifies all registered listeners that the plot has been modified. |
boolean | removeAnnotation(XYAnnotation annotation) Removes an annotation from the plot and sends a PlotChangeEvent to all registered listeners. |
void | removeChangeListener(PlotChangeListener listener) Unregisters an object for notification of changes to the plot. |
boolean | removeDomainMarker(Marker marker) Removes a marker for the domain axis and sends a PlotChangeEvent to all registered listeners. |
boolean | removeDomainMarker(Marker marker, Layer layer) Removes a marker for the domain axis in the specified layer and sends a PlotChangeEvent to all registered listeners. |
void | setAxisOffset(RectangleInsets offset) Sets the axis offsets (gap between the data area and the axes) and sends a PlotChangeEvent to all registered listeners. |
void | setBackgroundAlpha(float alpha) Sets the alpha transparency of the plot area background, and notifies registered listeners that the plot has been modified. |
void | setBackgroundImage(Image image) Sets the background image for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setBackgroundImageAlignment(int alignment) Sets the alignment for the background image and sends a PlotChangeEvent to all registered listeners. |
void | setBackgroundImageAlpha(float alpha) Sets the alpha transparency used when drawing the background image. |
void | setBackgroundPaint(Paint paint) Sets the background color of the plot area and sends a PlotChangeEvent to all registered listeners. |
void | setDataset(int index, XYDataset dataset) Sets a dataset for the plot and sends a change event to all registered listeners. |
void | setDataset(XYDataset dataset) Sets the primary dataset for the plot, replacing the existing dataset if there is one. |
void | setDatasetRenderingOrder(DatasetRenderingOrder order) Sets the rendering order and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxes(ValueAxis[] axes) Sets the domain axes for this plot and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxis(ValueAxis axis) Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxis(int index, ValueAxis axis) Sets a domain axis and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxis(int index, ValueAxis axis, boolean notify) Sets a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxisLocation(AxisLocation location) Sets the location of the primary domain axis and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxisLocation(AxisLocation location, boolean notify) Sets the location of the domain axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxisLocation(int index, AxisLocation location) Sets the location for a domain axis and sends a PlotChangeEvent to all registered listeners. |
void | setDomainCrosshairLockedOnData(boolean flag) Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values. |
void | setDomainCrosshairPaint(Paint paint) Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners. |
void | setDomainCrosshairStroke(Stroke stroke) Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified. |
void | setDomainCrosshairValue(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). |
void | setDomainCrosshairValue(double value) Sets the domain crosshair value and sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible). |
void | setDomainCrosshairVisible(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. |
void | setDomainGridlinePaint(Paint paint) Sets the paint for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners. |
void | setDomainGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners. |
void | setDomainGridlinesVisible(boolean visible) Sets the flag that controls whether or not the domain grid-lines are visible. |
void | setDomainMinorGridlinePaint(Paint paint) Sets the paint for the minor grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners. |
void | setDomainMinorGridlineStroke(Stroke stroke) Sets the stroke for the minor grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners. |
void | setDomainMinorGridlinesVisible(boolean visible) Sets the flag that controls whether or not the domain minor grid-lines are visible. |
void | setDomainPannable(boolean pannable) Sets the flag that enables or disables panning of the plot along the domain axes. |
void | setDomainTickBandPaint(Paint paint) Sets the paint for the domain tick bands. |
void | setDomainZeroBaselinePaint(Paint paint) Sets the paint for the zero baseline plotted against the domain axis and sends a PlotChangeEvent to all registered listeners. |
void | setDomainZeroBaselineStroke(Stroke stroke) Sets the stroke for the zero baseline for the domain axis, and sends a PlotChangeEvent to all registered listeners. |
void | setDomainZeroBaselineVisible(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. |
void | setDrawingSupplier(DrawingSupplier supplier) Sets the drawing supplier for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setFixedLegendItems(LegendItemCollection items) Sets the fixed legend items for the plot. |
void | setFixedRangeAxisSpace(AxisSpace space) Sets the fixed range axis space and sends a PlotChangeEvent to all registered listeners. |
void | setForegroundAlpha(float alpha) Sets the alpha-transparency for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setInsets(RectangleInsets insets) Sets the insets for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setInsets(RectangleInsets insets, boolean notify) Sets the insets for the plot and, if requested, and sends a PlotChangeEvent to all registered listeners. |
void | setNoDataMessage(String message) Sets the message that is displayed when the dataset is empty or null , and sends a PlotChangeEvent to all registered listeners. |
void | setNoDataMessageFont(Font font) Sets the font used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners. |
void | setNoDataMessagePaint(Paint paint) Sets the paint used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners. |
void | setNotify(boolean notify) Sets a flag that controls whether or not listeners receive PlotChangeEvent notifications. |
void | setOrientation(PlotOrientation orientation) Sets the orientation for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setOutlinePaint(Paint paint) Sets the paint used to draw the outline of the plot area and sends a PlotChangeEvent to all registered listeners. |
void | setOutlineStroke(Stroke stroke) Sets the stroke used to outline the plot area and sends a PlotChangeEvent to all registered listeners. |
void | setOutlineVisible(boolean visible) Sets the flag that controls whether or not the plot's outline is drawn, and sends a PlotChangeEvent to all registered listeners. |
void | setParent(Plot parent) Sets the parent plot. |
void | setQuadrantOrigin(Point2D origin) Sets the quadrant origin and sends a PlotChangeEvent to all registered listeners. |
void | setQuadrantPaint(int index, Paint paint) Sets the paint used for the specified quadrant and sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxes(ValueAxis[] axes) Sets the range axes for this plot and sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxis(ValueAxis axis) Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxis(int index, ValueAxis axis) Sets a range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxis(int index, ValueAxis axis, boolean notify) Sets a range axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxisLocation(AxisLocation location) Sets the location of the primary range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxisLocation(AxisLocation location, boolean notify) Sets the location of the primary range axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxisLocation(int index, AxisLocation location) Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxisLocation(int index, AxisLocation location, boolean notify) Sets the axis location for a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
void | setRangeCrosshairLockedOnData(boolean flag) Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values. |
void | setRangeCrosshairPaint(Paint paint) Sets the paint used to color the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners. |
void | setRangeCrosshairStroke(Stroke stroke) Sets the stroke used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners. |
void | setRangeCrosshairValue(double value, boolean notify) Sets the range crosshair value and sends a PlotChangeEvent to all registered listeners, but only if the crosshair is visible. |
void | setRangeCrosshairValue(double value) Sets the range crosshair value. |
void | setRangeCrosshairVisible(boolean flag) Sets the flag indicating whether or not the range crosshair is visible. |
void | setRangeGridlinePaint(Paint paint) Sets the paint for the grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners. |
void | setRangeGridlinesVisible(boolean visible) Sets the flag that controls whether or not the range axis grid lines are visible. |
void | setRangeMinorGridlinePaint(Paint paint) Sets the paint for the minor grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeMinorGridlineStroke(Stroke stroke) Sets the stroke for the minor grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners. |
void | setRangeMinorGridlinesVisible(boolean visible) Sets the flag that controls whether or not the range axis minor grid lines are visible. |
void | setRangePannable(boolean pannable) Sets the flag that enables or disables panning of the plot along the range axis/axes. |
void | setRangeTickBandPaint(Paint paint) Sets the paint for the range tick bands. |
void | setRangeZeroBaselinePaint(Paint paint) Sets the paint for the zero baseline plotted against the range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeZeroBaselineVisible(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. |
void | setRenderer(XYItemRenderer renderer) Sets the renderer for the primary dataset and sends a change event to all registered listeners. |
void | setRenderer(int index, XYItemRenderer renderer) Sets the renderer for the dataset with the specified index and sends a change event to all registered listeners. |
void | setSeriesRenderingOrder(SeriesRenderingOrder order) Sets the series order and sends a PlotChangeEvent to all registered listeners. |
void | setWeight(int weight) Sets the weight for the plot and sends a PlotChangeEvent to all registered listeners. |
void | zoom(double percent) Performs a zoom on the plot. |