| Field Summary | |
|---|---|
| static boolean |
The default visibility of the grid lines plotted against the domain axis. |
| static Paint |
The default grid line paint. |
| static Stroke |
The default grid line stroke. |
| static boolean |
The default visibility of the grid lines plotted against the range axis. |
| static Font |
The default value label font. |
| protected static ResourceBundle |
The resourceBundle for the localization. |
| Fields inherited from org.jfree.chart.plotPlot |
|---|
| Constructor Summary |
|---|
|
Default constructor. |
|
Creates a new plot. |
| Method Summary | |
|---|---|
| void |
Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Adds a marker for display (in the foreground) against the domain axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Adds a marker for display against the domain axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Adds a marker for display by a particular renderer. |
| void |
Adds a marker for display (in the foreground) against the range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Adds a marker for display against the range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Adds a marker for display by a particular renderer. |
| protected AxisSpace |
Calculates the space required for the axes. |
| protected AxisSpace |
Calculates the space required for the domain axis/axes. |
| protected AxisSpace |
Calculates the space required for the range axis/axes. |
| void |
Clears all the annotations and sends a PlotChangeEvent to all registered listeners. |
| void |
Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Clears all the domain markers for the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Clears all the domain markers for the specified renderer. |
| void |
Clears the range axes from the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Clears all the range markers for the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Clears all the range markers for the specified renderer. |
| Object |
Returns a clone of the plot. |
| void |
Configures the domain axes. |
| void |
Configures the range axes. |
| void |
Receives notification of a change to the plot's dataset. |
| void |
Draws the plot on a Java 2D graphics device (such as the screen or a printer). |
| protected void |
Draws the annotations... |
| protected Map |
A utility method for drawing the plot's axes. |
| protected void |
Draws the gridlines for the plot. |
| protected void |
Draws the domain markers (if any) for an axis and layer. |
| protected void |
Draws the gridlines for the plot. |
| protected void |
Utility method for drawing a line perpendicular to the range axis (used for crosshairs). |
| protected void |
Draws the range markers (if any) for an axis and layer. |
| boolean |
Tests the plot for equality with an arbitrary object. |
| double |
Returns the anchor value. |
| List |
Returns the list of annotations. |
| RectangleInsets |
Returns the axis offset. |
| List |
Returns a list of the categories for the plot. |
| SortOrder |
Returns the order in which the columns are rendered. |
| Range |
Returns the range of data values that will be plotted against the range axis. |
| CategoryDataset |
Returns the primary dataset for the plot. |
| CategoryDataset |
Returns the dataset at the given index. |
| DatasetRenderingOrder |
Returns the dataset rendering order. |
| CategoryAxis |
Returns the domain axis for the plot. |
| CategoryAxis |
Returns a domain axis. |
| int |
Returns the number of domain axes. |
| RectangleEdge |
Returns the domain axis edge. |
| RectangleEdge |
Returns the edge for a domain axis. |
| CategoryAxis |
Returns the domain axis for a dataset. |
| AxisLocation |
Returns the domain axis location. |
| AxisLocation |
Returns the location for a domain axis. |
| Paint |
Returns the paint used to draw grid-lines against the domain axis. |
| CategoryAnchor |
Returns the position used for the domain gridlines. |
| Stroke |
Returns the stroke used to draw grid-lines against the domain axis. |
| Collection |
Returns the list of domain markers (read only) for the specified layer. |
| Collection |
Returns a collection of domain markers for a particular renderer and layer. |
| boolean |
Returns the flag that controls whether or not the shared domain axis is drawn for each subplot. |
| AxisSpace |
Returns the fixed domain axis space. |
| LegendItemCollection |
Returns the fixed legend items, if any. |
| AxisSpace |
Returns the fixed range axis space. |
| int |
Returns the index of the specified renderer, or -1 if the
renderer is not assigned to this plot.
|
| LegendItemCollection |
Returns the legend items for the plot. |
| PlotOrientation |
Returns the orientation of the plot. |
| String |
Returns a string describing the type of plot. |
| ValueAxis |
Returns the range axis for the plot. |
| ValueAxis |
Returns a range axis. |
| int |
Returns the number of range axes. |
| RectangleEdge |
Returns the edge where the primary range axis is located. |
| RectangleEdge |
Returns the edge for a range axis. |
| ValueAxis |
Returns the range axis for a dataset. |
| AxisLocation |
Returns the range axis location. |
| AxisLocation |
Returns the location for a range axis. |
| Paint |
Returns the range crosshair color. |
| Stroke |
Returns the pen-style ( Stroke) used to draw the crosshair
(if visible).
|
| double |
Returns the range crosshair value. |
| Paint |
Returns the paint used to draw the grid-lines against the range axis. |
| Stroke |
Returns the stroke used to draw the grid-lines against the range axis. |
| Collection |
Returns the list of range markers (read only) for the specified layer. |
| Collection |
Returns a collection of range markers for a particular renderer and layer. |
| CategoryItemRenderer |
Returns a reference to the renderer for the plot. |
| CategoryItemRenderer |
Returns the renderer at the given index. |
| CategoryItemRenderer |
Returns the renderer for the specified dataset. |
| SortOrder |
Returns the order in which the rows should be rendered. |
| int |
Returns the weight for this plot when it is used as a subplot within a combined plot. |
| void |
Handles a 'click' on the plot by updating the anchor value. |
| boolean |
Returns the flag that controls whether the domain grid-lines are visible. |
| boolean |
Returns false.
|
| boolean |
Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values. |
| boolean |
Returns a flag indicating whether or not the range crosshair is visible. |
| boolean |
Returns the flag that controls whether the range grid-lines are visible. |
| boolean |
Returns false.
|
| void |
Maps a dataset to a particular domain axis. |
| void |
Maps a dataset to a particular range axis. |
| boolean |
Removes an annotation from the plot and sends a PlotChangeEvent to all registered listeners. |
| boolean |
Draws a representation of a dataset within the dataArea region using the appropriate renderer. |
| void |
Receives notification of a renderer change event. |
| void |
Sets the anchor value. |
| void |
Sets the anchor value. |
| void |
Sets the axis offsets (gap between the data area and the axes). |
| void |
Sets the order in which the columns should be rendered. |
| void |
Sets the dataset for the plot, replacing the existing dataset, if there is one. |
| void |
Sets a dataset for the plot. |
| void |
Sets the rendering order and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the domain axes for this plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets a domain axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the location of the domain axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the location of the domain axis. |
| void |
Sets the location for a domain axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the paint used to draw the grid-lines (if any) against the domain axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the position used for the domain gridlines and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the stroke used to draw grid-lines against the domain axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the flag that controls whether or not grid-lines are drawn against the domain axis. |
| void |
Sets the flag that controls whether the shared domain axis is drawn when this plot is being used as a subplot. |
| void |
Sets the fixed domain axis space. |
| void |
Sets the fixed legend items for the plot. |
| void |
Sets the fixed range axis space. |
| void |
Sets the orientation for the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the range axes for this plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets a range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets a range axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the location of the range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the location of the range axis and, if requested, sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values. |
| void |
Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified. |
| void |
Sets the pen-style ( Stroke) used to draw the crosshairs
(if visible).
|
| void |
Sets the domain crosshair value. |
| void |
Sets the range crosshair value. |
| void |
Sets the flag indicating whether or not the range crosshair is visible. |
| void |
Sets the paint used to draw the grid lines against the range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the stroke used to draw the grid-lines against the range axis and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the flag that controls whether or not grid-lines are drawn against the range axis. |
| void |
Sets the renderer at index 0 (sometimes referred to as the "primary" renderer) and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the renderer at index 0 (sometimes referred to as the "primary" renderer) and, if requested, sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the renderer at the specified index and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets a renderer. |
| void |
Sets the renderers for this plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the order in which the rows should be rendered. |
| void |
Sets the weight for the plot. |
| void |
Zooms (in or out) on the plot's value axis. |
| void |
This method does nothing, because CategoryPlot doesn't
support zooming on the domain.
|
| void |
This method does nothing, because CategoryPlot doesn't
support zooming on the domain.
|
| void |
Multiplies the range on the range axis/axes by the specified factor. |
| void |
Zooms in on the range axes. |
| Methods inherited from org.jfree.chart.eventAxisChangeListener |
|---|
| Methods inherited from java.langObject |
|---|
public static
boolean
DEFAULT_DOMAIN_GRIDLINES_VISIBLE
public static
boolean
DEFAULT_RANGE_GRIDLINES_VISIBLE
public CategoryPlot
(
CategoryDataset
dataset,
CategoryAxis
domainAxis,
ValueAxis
rangeAxis,
CategoryItemRenderer
renderer
)
Typically a marker will be drawn by the renderer as a line perpendicular to a domain axis, however this is entirely up to the renderer.
Typically a marker will be drawn by the renderer as a line perpendicular to a range axis, however this is entirely up to the renderer.
protected
AxisSpace
calculateDomainAxisSpace
(
Graphics2D
g2,
Rectangle2D
plotArea,
AxisSpace
space
)
protected
AxisSpace
calculateRangeAxisSpace
(
Graphics2D
g2,
Rectangle2D
plotArea,
AxisSpace
space
)
public
void
clearAnnotations
(
)
public
void
clearDomainAxes
(
)
public
void
clearDomainMarkers
(
)
public
void
clearDomainMarkers
(
int
index
)
public
void
clearRangeAxes
(
)
public
void
clearRangeMarkers
(
)
public
void
clearRangeMarkers
(
int
index
)
The range axis bounds will be recalculated if necessary.
public
void
draw
(
Graphics2D
g2,
Rectangle2D
area,
Point2D
anchor,
PlotState
parentState,
PlotRenderingInfo
state
)
At your option, you may supply an instance of PlotRenderingInfo . If you do, it will be populated with information about the drawing, including various plot dimensions and tooltip info.
protected
Map
drawAxes
(
Graphics2D
g2,
Rectangle2D
plotArea,
Rectangle2D
dataArea,
PlotRenderingInfo
plotState
)
protected
void
drawRangeLine
(
Graphics2D
g2,
Rectangle2D
dataArea,
double
value,
Stroke
stroke,
Paint
paint
)
null, this method returns
null. null, then the method will return the parent plot's
domain axis (if there is a parent plot).
public
boolean
getDrawSharedDomainAxis
(
)
-1 if the
renderer is not assigned to this plot. Stroke) used to draw the crosshair
(if visible). null.
public
int
getWeight
(
)
public
boolean
isDomainGridlinesVisible
(
)
public
boolean
isDomainZoomable
(
)
false.
public
boolean
isRangeCrosshairLockedOnData
(
)
public
boolean
isRangeCrosshairVisible
(
)
public
boolean
isRangeGridlinesVisible
(
)
public
boolean
isRangeZoomable
(
)
false.
public
void
mapDatasetToDomainAxis
(
int
index,
int
axisIndex
)
public
void
mapDatasetToRangeAxis
(
int
index,
int
axisIndex
)
public
void
setDomainGridlinesVisible
(
boolean
visible
)
If the flag value changes, a PlotChangeEvent is sent to all registered listeners.
public
void
setDrawSharedDomainAxis
(
boolean
draw
)
null if you prefer the legend items to be created
automatically.
public
void
setRangeCrosshairLockedOnData
(
boolean
flag
)
Stroke) used to draw the crosshairs
(if visible). A PlotChangeEvent is sent to all registered
listeners.
public
void
setRangeCrosshairValue
(
double
value
)
Registered listeners are notified that the plot has been modified, but only if the crosshair is visible.
public
void
setRangeCrosshairValue
(
double
value,
boolean
notify
)
Registered listeners are notified that the axis has been modified, but only if the crosshair is visible.
public
void
setRangeCrosshairVisible
(
boolean
flag
)
public
void
setRangeGridlinesVisible
(
boolean
visible
)
You can set the renderer to null, but this is not
recommended because:
public
void
zoom
(
double
percent
)
If the value 0.0 is passed in as the zoom percent, the auto-range calculation for the axis is restored (which sets the range to include the minimum and maximum data values, thus displaying all the data).
CategoryPlot doesn't
support zooming on the domain.
public
void
zoomDomainAxes
(
double
lowerPercent,
double
upperPercent,
PlotRenderingInfo
state,
Point2D
source
)
CategoryPlot doesn't
support zooming on the domain.
public
void
zoomRangeAxes
(
double
lowerPercent,
double
upperPercent,
PlotRenderingInfo
state,
Point2D
source
)