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

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

Introduction

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

The text is from its open source code.

Subclass

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

Field

StrokeDEFAULT_GRIDLINE_STROKE
The default grid line stroke.

Constructor

Method

voidaddAnnotation(CategoryAnnotation annotation)
Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners.
voidaddDomainMarker(CategoryMarker marker, Layer layer)
Adds a marker for display against the domain axis and sends a PlotChangeEvent to all registered listeners.
voidaddDomainMarker(CategoryMarker marker)
Adds a marker for display (in the foreground) against the domain axis and sends a PlotChangeEvent to all registered listeners.
voidaddRangeMarker(Marker marker, Layer layer)
Adds a marker for display against the range axis and sends a PlotChangeEvent to all registered listeners.
voidaddRangeMarker(Marker marker)
Adds a marker for display (in the foreground) against the range axis and sends a PlotChangeEvent to all registered listeners.
voidaxisChanged(AxisChangeEvent event)
Receives notification of a change to one of the plot's axes.
voidclearRangeMarkers()
Clears all the range markers for the plot and sends a PlotChangeEvent to all registered listeners.
voidconfigureRangeAxes()
Configures the range axes.
voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo state)
Draws the plot on a Java 2D graphics device (such as the screen or a printer).
voiddrawBackgroundImage(Graphics2D g2, Rectangle2D area)
Draws the background image (if there is one) aligned within the specified area.
floatgetBackgroundAlpha()
Returns the alpha transparency of the plot area background.
ImagegetBackgroundImage()
Returns the background image that is used to fill the plot's background area.
PaintgetBackgroundPaint()
Returns the background color of the plot area.
ListgetCategories()
Returns a list of the categories in the plot's primary dataset.
ListgetCategoriesForAxis(CategoryAxis axis)
Returns a list of the categories that should be displayed for the specified axis.
RangegetDataRange(ValueAxis axis)
Returns the range of data values that will be plotted against the range axis.
CategoryDatasetgetDataset()
Returns the primary dataset for the plot.
CategoryDatasetgetDataset(int index)
Returns the dataset with the given index, or null if there is no dataset.
intgetDatasetCount()
Returns the number of datasets.
CategoryAxisgetDomainAxis()
Returns the domain axis for the plot.
CategoryAxisgetDomainAxis(int index)
Returns a domain axis.
intgetDomainAxisCount()
Returns the number of domain axes.
RectangleEdgegetDomainAxisEdge()
Returns the domain axis edge.
AxisLocationgetDomainAxisLocation()
Returns the domain axis location for the primary domain axis.
StrokegetDomainGridlineStroke()
Returns the stroke used to draw grid-lines against the domain axis.
DrawingSuppliergetDrawingSupplier()
Returns the drawing supplier for the plot.
floatgetForegroundAlpha()
Returns the alpha-transparency for the plot foreground.
LegendItemCollectiongetLegendItems()
Returns the legend items for the plot.
PlotOrientationgetOrientation()
Returns the orientation of the plot.
ValueAxisgetRangeAxis()
Returns the range axis for the plot.
ValueAxisgetRangeAxis(int index)
Returns a range axis.
intgetRangeAxisCount()
Returns the number of range axes.
RectangleEdgegetRangeAxisEdge()
Returns the edge where the primary range axis is located.
ValueAxisgetRangeAxisForDataset(int index)
Returns the range axis for a dataset.
AxisLocationgetRangeAxisLocation()
Returns the range axis location.
CategoryItemRenderergetRenderer()
Returns a reference to the renderer for the plot.
CategoryItemRenderergetRenderer(int index)
Returns the renderer at the given index.
CategoryItemRenderergetRendererForDataset(CategoryDataset dataset)
Returns the renderer for the specified dataset.
intindexOf(CategoryDataset dataset)
Returns the index of the specified dataset, or -1 if the dataset does not belong to the plot.
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.
voidsetAnchorValue(double value)
Sets the anchor value 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.
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.
voidsetColumnRenderingOrder(SortOrder order)
Sets the column order in which the items in each dataset should be rendered and sends a PlotChangeEvent to all registered listeners.
voidsetDataset(CategoryDataset dataset)
Sets the dataset for the plot, replacing the existing dataset, if there is one.
voidsetDataset(int index, CategoryDataset dataset)
Sets a dataset for the plot and sends a change notification to all registered listeners.
voidsetDatasetRenderingOrder(DatasetRenderingOrder order)
Sets the rendering order and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxis(CategoryAxis axis)
Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxis(int index, CategoryAxis axis)
Sets a domain axis and sends a PlotChangeEvent to all registered listeners.
voidsetDomainAxisLocation(AxisLocation location)
Sets the location of the 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.
voidsetDomainCrosshairPaint(Paint paint)
Sets the paint used to draw the domain crosshair.
voidsetDomainCrosshairVisible(boolean flag)
Sets the flag that controls whether or not the domain crosshair is displayed by the plot, and sends a PlotChangeEvent to all registered listeners.
voidsetDomainGridlinePaint(Paint paint)
Sets the paint used to draw the grid-lines (if any) against the domain axis and sends a PlotChangeEvent to all registered listeners.
voidsetDomainGridlinePosition(CategoryAnchor position)
Sets the position used for the domain gridlines and sends a PlotChangeEvent to all registered listeners.
voidsetDomainGridlineStroke(Stroke stroke)
Sets the stroke used to draw grid-lines against the domain axis and sends a PlotChangeEvent to all registered listeners.
voidsetDomainGridlinesVisible(boolean visible)
Sets the flag that controls whether or not grid-lines are drawn against the domain axis.
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.
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.
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.
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.
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 range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeAxisLocation(AxisLocation location, boolean notify)
Sets the location of the 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.
voidsetRangeCrosshairPaint(Paint paint)
Sets the paint used to draw the range crosshair (if visible) and sends a PlotChangeEvent to all registered listeners.
voidsetRangeCrosshairStroke(Stroke stroke)
Sets the pen-style (Stroke) used to draw the range crosshair (if visible), and sends a PlotChangeEvent to all registered listeners.
voidsetRangeCrosshairVisible(boolean flag)
Sets the flag indicating whether or not the range crosshair is visible.
voidsetRangeGridlinePaint(Paint paint)
Sets the paint used to draw the grid lines against the range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeGridlineStroke(Stroke stroke)
Sets the stroke used to draw the grid-lines against the range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangeGridlinesVisible(boolean visible)
Sets the flag that controls whether or not grid-lines are drawn against the range axis.
voidsetRangeMinorGridlinePaint(Paint paint)
Sets the paint for the minor grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
voidsetRangePannable(boolean pannable)
Sets the flag that enables or disables panning of the plot along the range axes.
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(CategoryItemRenderer renderer)
Sets the renderer at index 0 (sometimes referred to as the "primary" renderer) and sends a change event to all registered listeners.
voidsetRenderer(CategoryItemRenderer renderer, boolean notify)
Sets the renderer at index 0 (sometimes referred to as the "primary" renderer) and, if requested, sends a change event to all registered listeners.
voidsetRenderer(int index, CategoryItemRenderer renderer)
Sets the renderer to use for the dataset with the specified index and sends a change event to all registered listeners.
voidsetRowRenderingOrder(SortOrder order)
Sets the row order in which the items in each dataset should be rendered and sends a PlotChangeEvent to all registered listeners.
voidsetShadowGenerator(ShadowGenerator generator)
Sets the shadow generator for the plot and sends a PlotChangeEvent to all registered listeners.