Example usage for Java org.jfree.chart.plot CategoryPlot fields, constructors, methods, implement or subclass
The text is from its open source code.
Stroke | DEFAULT_GRIDLINE_STROKE The default grid line stroke. |
CategoryPlot(CategoryDataset dataset, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryItemRenderer renderer) Creates a new plot. | |
CategoryPlot() Default constructor. |
void | addAnnotation(CategoryAnnotation annotation) Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners. |
void | addDomainMarker(CategoryMarker marker, Layer layer) Adds a marker for display against the domain axis and sends a PlotChangeEvent to all registered listeners. |
void | addDomainMarker(CategoryMarker marker) Adds a marker for display (in the foreground) against the domain axis and sends a PlotChangeEvent to all registered listeners. |
void | addRangeMarker(Marker marker, Layer layer) Adds a marker for display against the range axis and sends a PlotChangeEvent to all registered listeners. |
void | addRangeMarker(Marker marker) Adds a marker for display (in the foreground) against the range axis 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 | clearRangeMarkers() Clears all the range markers for the plot and sends a PlotChangeEvent to all registered listeners. |
void | configureRangeAxes() Configures the range axes. |
void | draw(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). |
void | drawBackgroundImage(Graphics2D g2, Rectangle2D area) Draws the background image (if there is one) aligned within the specified area. |
float | getBackgroundAlpha() Returns the alpha transparency of the plot area background. |
Image | getBackgroundImage() Returns the background image that is used to fill the plot's background area. |
Paint | getBackgroundPaint() Returns the background color of the plot area. |
List | getCategories() Returns a list of the categories in the plot's primary dataset. |
List | getCategoriesForAxis(CategoryAxis axis) Returns a list of the categories that should be displayed for the specified axis. |
Range | getDataRange(ValueAxis axis) Returns the range of data values that will be plotted against the range axis. |
CategoryDataset | getDataset() Returns the primary dataset for the plot. |
CategoryDataset | getDataset(int index) Returns the dataset with the given index, or null if there is no dataset. |
int | getDatasetCount() Returns the number of datasets. |
CategoryAxis | getDomainAxis() Returns the domain axis for the plot. |
CategoryAxis | getDomainAxis(int index) Returns a domain axis. |
int | getDomainAxisCount() Returns the number of domain axes. |
RectangleEdge | getDomainAxisEdge() Returns the domain axis edge. |
AxisLocation | getDomainAxisLocation() Returns the domain axis location for the primary domain axis. |
Stroke | getDomainGridlineStroke() Returns the stroke used to draw grid-lines against the domain axis. |
DrawingSupplier | getDrawingSupplier() Returns the drawing supplier for the plot. |
float | getForegroundAlpha() Returns the alpha-transparency for the plot foreground. |
LegendItemCollection | getLegendItems() Returns the legend items for the plot. |
PlotOrientation | getOrientation() Returns the orientation of the plot. |
ValueAxis | getRangeAxis() Returns the range axis for the plot. |
ValueAxis | getRangeAxis(int index) Returns a range axis. |
int | getRangeAxisCount() Returns the number of range axes. |
RectangleEdge | getRangeAxisEdge() Returns the edge where the primary range axis is located. |
ValueAxis | getRangeAxisForDataset(int index) Returns the range axis for a dataset. |
AxisLocation | getRangeAxisLocation() Returns the range axis location. |
CategoryItemRenderer | getRenderer() Returns a reference to the renderer for the plot. |
CategoryItemRenderer | getRenderer(int index) Returns the renderer at the given index. |
CategoryItemRenderer | getRendererForDataset(CategoryDataset dataset) Returns the renderer for the specified dataset. |
int | indexOf(CategoryDataset dataset) Returns the index of the specified dataset, or -1 if the dataset does not belong to the plot. |
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 | setAnchorValue(double value) Sets the anchor value 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 | 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 | setColumnRenderingOrder(SortOrder order) Sets the column order in which the items in each dataset should be rendered and sends a PlotChangeEvent to all registered listeners. |
void | setDataset(CategoryDataset dataset) Sets the dataset for the plot, replacing the existing dataset, if there is one. |
void | setDataset(int index, CategoryDataset dataset) Sets a dataset for the plot and sends a change notification to all registered listeners. |
void | setDatasetRenderingOrder(DatasetRenderingOrder order) Sets the rendering order and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxis(CategoryAxis axis) Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxis(int index, CategoryAxis axis) Sets a domain axis and sends a PlotChangeEvent to all registered listeners. |
void | setDomainAxisLocation(AxisLocation location) Sets the location of the 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 | setDomainCrosshairPaint(Paint paint) Sets the paint used to draw the domain crosshair. |
void | setDomainCrosshairVisible(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. |
void | setDomainGridlinePaint(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. |
void | setDomainGridlinePosition(CategoryAnchor position) Sets the position used for the domain gridlines and sends a PlotChangeEvent to all registered listeners. |
void | setDomainGridlineStroke(Stroke stroke) Sets the stroke used to draw grid-lines against the domain axis and sends a PlotChangeEvent to all registered listeners. |
void | setDomainGridlinesVisible(boolean visible) Sets the flag that controls whether or not grid-lines are drawn against the domain axis. |
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 | 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 | 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 | 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 | 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 range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeAxisLocation(AxisLocation location, boolean notify) Sets the location of the 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 | setRangeCrosshairPaint(Paint paint) Sets the paint used to draw the range crosshair (if visible) and sends a PlotChangeEvent to all registered listeners. |
void | setRangeCrosshairStroke(Stroke stroke) Sets the pen-style ( Stroke ) used to draw the range crosshair (if visible), and sends a PlotChangeEvent to all registered listeners. |
void | setRangeCrosshairVisible(boolean flag) Sets the flag indicating whether or not the range crosshair is visible. |
void | setRangeGridlinePaint(Paint paint) Sets the paint used to draw the grid lines against the range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeGridlineStroke(Stroke stroke) Sets the stroke used to draw the grid-lines against the range axis and sends a PlotChangeEvent to all registered listeners. |
void | setRangeGridlinesVisible(boolean visible) Sets the flag that controls whether or not grid-lines are drawn against the range axis. |
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 | setRangePannable(boolean pannable) Sets the flag that enables or disables panning of the plot along the range axes. |
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(CategoryItemRenderer renderer) Sets the renderer at index 0 (sometimes referred to as the "primary" renderer) and sends a change event to all registered listeners. |
void | setRenderer(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. |
void | setRenderer(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. |
void | setRowRenderingOrder(SortOrder order) Sets the row order in which the items in each dataset should be rendered and sends a PlotChangeEvent to all registered listeners. |
void | setShadowGenerator(ShadowGenerator generator) Sets the shadow generator for the plot and sends a PlotChangeEvent to all registered listeners. |