| java.lang.Object org.jfree.chart.plot.Plot org.jfree.chart.plot.XYPlot
All known Subclasses: org.jfree.chart.plot.CombinedDomainXYPlot, org.jfree.chart.plot.CombinedRangeXYPlot,
Constructor Summary | |
public | XYPlot() Creates a new XYPlot instance with no dataset, no axes and
no renderer. | public | XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, XYItemRenderer renderer) Creates a new plot with the specified dataset, axes and renderer. |
Method Summary | |
public void | addAnnotation(XYAnnotation annotation) Adds an annotation to the plot and sends a
PlotChangeEvent to
all registered listeners. | public void | addDomainMarker(Marker marker) Adds a marker for the domain axis and sends a
PlotChangeEvent to all registered listeners. | public 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. | public void | addDomainMarker(int index, Marker marker, Layer layer) Adds a marker for a specific dataset/renderer and sends a
PlotChangeEvent to all registered listeners. | public void | addRangeMarker(Marker marker) Adds a marker for the range axis and sends a
PlotChangeEvent to
all registered listeners. | public 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. | public void | addRangeMarker(int index, Marker marker, Layer layer) Adds a marker for a specific dataset/renderer and sends a
PlotChangeEvent to all registered listeners. | protected AxisSpace | calculateAxisSpace(Graphics2D g2, Rectangle2D plotArea) Calculates the space required for all the axes in the plot.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. | protected AxisSpace | calculateDomainAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space) Calculates the space required for the domain axis/axes.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: space - a carrier for the result (null permitted). | protected AxisSpace | calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space) Calculates the space required for the range axis/axes.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: space - a carrier for the result (null permitted). | public void | clearAnnotations() Clears all the annotations and sends a
PlotChangeEvent to all
registered listeners. | public void | clearDomainAxes() Clears the domain axes from the plot and sends a
PlotChangeEvent to all registered listeners. | public void | clearDomainMarkers() Clears all the (foreground and background) domain markers and sends a
PlotChangeEvent to all registered listeners. | public void | clearDomainMarkers(int index) Clears the (foreground and background) domain markers for a particular
renderer. | public void | clearRangeAxes() Clears the range axes from the plot and sends a
PlotChangeEvent to all registered listeners. | public void | clearRangeMarkers() Clears all the range markers and sends a
PlotChangeEvent to all
registered listeners. | public void | clearRangeMarkers(int index) Clears the (foreground and background) range markers for a particular
renderer. | public Object | clone() Returns a clone of the plot. | public void | configureDomainAxes() Configures the domain axes. | public void | configureRangeAxes() Configures the range axes. | public void | datasetChanged(DatasetChangeEvent event) Receives notification of a change to the plot's dataset. | public void | draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Draws the plot within the specified area on a graphics device. | public void | drawAnnotations(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info) Draws the annotations for the plot. | protected Map | drawAxes(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, PlotRenderingInfo plotState) A utility method for drawing the axes.
Parameters: g2 - the graphics device (null not permitted). Parameters: plotArea - the plot area (null not permitted). Parameters: dataArea - the data area (null not permitted). Parameters: plotState - collects information about the plot (null permitted). | public void | drawBackground(Graphics2D g2, Rectangle2D area) Draws the background for the plot. | protected void | drawDomainCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint) Draws a domain crosshair. | protected void | drawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the gridlines for the plot, if they are visible. | protected void | drawDomainMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer) Draws the domain markers (if any) for an axis and layer. | public void | drawDomainTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the domain tick bands, if any. | 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. | protected void | drawQuadrants(Graphics2D g2, Rectangle2D area) Draws the quadrants. | protected void | drawRangeCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint) Draws a range crosshair. | protected void | drawRangeGridlines(Graphics2D g2, Rectangle2D area, List ticks) Draws the gridlines for the plot's primary range axis, if they are
visible. | protected void | drawRangeMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer) Draws the range markers (if any) for a renderer and layer. | public void | drawRangeTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the range tick bands, if any. | 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. | protected void | drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area) Draws a base line across the chart at value zero on the domain axis. | protected void | drawZeroRangeBaseline(Graphics2D g2, Rectangle2D area) Draws a base line across the chart at value zero on the range axis. | public boolean | equals(Object obj) Tests this plot for equality with another object.
Parameters: obj - the object (null permitted). | public List | getAnnotations() Returns the list of annotations. | public RectangleInsets | getAxisOffset() Returns the axis offset. | public Range | getDataRange(ValueAxis axis) Returns the range for the specified axis.
Parameters: axis - the axis. | public XYDataset | getDataset() Returns the primary dataset for the plot. | public XYDataset | getDataset(int index) Returns a dataset.
Parameters: index - the dataset index. | public int | getDatasetCount() Returns the number of datasets. | public DatasetRenderingOrder | getDatasetRenderingOrder() Returns the dataset rendering order. | public ValueAxis | getDomainAxis() Returns the domain axis with index 0. | public ValueAxis | getDomainAxis(int index) Returns the domain axis with the specified index, or null .
Parameters: index - the axis index. | public int | getDomainAxisCount() Returns the number of domain axes. | public RectangleEdge | getDomainAxisEdge() Returns the edge for the primary domain axis (taking into account the
plot's orientation). | public RectangleEdge | getDomainAxisEdge(int index) Returns the edge for a domain axis.
Parameters: index - the axis index. | public ValueAxis | getDomainAxisForDataset(int index) Returns the domain axis for a dataset.
Parameters: index - the dataset index. | public int | getDomainAxisIndex(ValueAxis axis) Returns the index of the given domain axis.
Parameters: axis - the axis. | public AxisLocation | getDomainAxisLocation() Returns the location of the primary domain axis. | public AxisLocation | getDomainAxisLocation(int index) Returns the location for a domain axis. | public Paint | getDomainCrosshairPaint() Returns the domain crosshair paint. | public Stroke | getDomainCrosshairStroke() Returns the
Stroke used to draw the crosshair (if visible). | public double | getDomainCrosshairValue() Returns the domain crosshair value. | public Paint | getDomainGridlinePaint() Returns the paint for the grid lines (if any) plotted against the domain
axis. | public Stroke | getDomainGridlineStroke() Returns the stroke for the grid-lines (if any) plotted against the
domain axis. | public Collection | getDomainMarkers(Layer layer) Returns the list of domain markers (read only) for the specified layer.
Parameters: layer - the layer (foreground or background). | public Collection | getDomainMarkers(int index, Layer layer) Returns a collection of domain markers for a particular renderer and
layer.
Parameters: index - the renderer index. Parameters: layer - the layer. | public Paint | getDomainTickBandPaint() Returns the paint used for the domain tick bands. | public Paint | getDomainZeroBaselinePaint() Returns the paint for the zero baseline (if any) plotted against the
domain axis. | public Stroke | getDomainZeroBaselineStroke() Returns the stroke used for the zero baseline against the domain axis. | public AxisSpace | getFixedDomainAxisSpace() Returns the fixed domain axis space. | public LegendItemCollection | getFixedLegendItems() Returns the fixed legend items, if any. | public AxisSpace | getFixedRangeAxisSpace() Returns the fixed range axis space. | public int | getIndexOf(XYItemRenderer renderer) Returns the index of the specified renderer, or -1 if the
renderer is not assigned to this plot.
Parameters: renderer - the renderer (null permitted). | public LegendItemCollection | getLegendItems() Returns the legend items for the plot. | public PlotOrientation | getOrientation() Returns the orientation of the plot. | public String | getPlotType() Returns the plot type as a string. | public Point2D | getQuadrantOrigin() Returns the origin for the quadrants that can be displayed on the plot. | public Paint | getQuadrantPaint(int index) Returns the paint used for the specified quadrant.
Parameters: index - the quadrant index (0-3). | public ValueAxis | getRangeAxis() Returns the range axis for the plot. | public ValueAxis | getRangeAxis(int index) Returns a range axis.
Parameters: index - the axis index. | public int | getRangeAxisCount() Returns the number of range axes. | public RectangleEdge | getRangeAxisEdge() Returns the edge for the primary range axis. | public RectangleEdge | getRangeAxisEdge(int index) Returns the edge for a range axis.
Parameters: index - the axis index. | public ValueAxis | getRangeAxisForDataset(int index) Returns the range axis for a dataset.
Parameters: index - the dataset index. | public int | getRangeAxisIndex(ValueAxis axis) Returns the index of the given range axis.
Parameters: axis - the axis. | public AxisLocation | getRangeAxisLocation() Returns the location of the primary range axis. | public AxisLocation | getRangeAxisLocation(int index) Returns the location for a range axis. | public Paint | getRangeCrosshairPaint() Returns the range crosshair paint. | public Stroke | getRangeCrosshairStroke() Returns the stroke used to draw the crosshair (if visible). | public double | getRangeCrosshairValue() Returns the range crosshair value. | public Paint | getRangeGridlinePaint() Returns the paint for the grid lines (if any) plotted against the range
axis. | public Stroke | getRangeGridlineStroke() Returns the stroke for the grid lines (if any) plotted against the
range axis. | public Collection | getRangeMarkers(Layer layer) Returns the list of range markers (read only) for the specified layer.
Parameters: layer - the layer (foreground or background). | public Collection | getRangeMarkers(int index, Layer layer) Returns a collection of range markers for a particular renderer and
layer.
Parameters: index - the renderer index. Parameters: layer - the layer. | public Paint | getRangeTickBandPaint() Returns the paint used for the range tick bands. | public Paint | getRangeZeroBaselinePaint() Returns the paint for the zero baseline (if any) plotted against the
range axis. | public Stroke | getRangeZeroBaselineStroke() Returns the stroke used for the zero baseline against the range axis. | public XYItemRenderer | getRenderer() Returns the renderer for the primary dataset. | public XYItemRenderer | getRenderer(int index) Returns the renderer for a dataset, or null .
Parameters: index - the renderer index. | public XYItemRenderer | getRendererForDataset(XYDataset dataset) Returns the renderer for the specified dataset. | public int | getSeriesCount() Returns the number of series in the primary dataset for this plot. | public SeriesRenderingOrder | getSeriesRenderingOrder() Returns the series rendering order. | public int | getWeight() Returns the weight for this plot when it is used as a subplot within a
combined plot. | public void | handleClick(int x, int y, PlotRenderingInfo info) Handles a 'click' on the plot by updating the anchor values. | public int | indexOf(XYDataset dataset) Returns the index of the specified dataset, or -1 if the
dataset does not belong to the plot.
Parameters: dataset - the dataset (null not permitted). | public boolean | isDomainCrosshairLockedOnData() Returns a flag indicating whether or not the crosshair should "lock-on"
to actual data values. | public boolean | isDomainCrosshairVisible() Returns a flag indicating whether or not the domain crosshair is visible. | public boolean | isDomainGridlinesVisible() Returns true if the domain gridlines are visible, and
false otherwise. | public boolean | isDomainZeroBaselineVisible() Returns a flag that controls whether or not a zero baseline is
displayed for the domain axis. | public boolean | isDomainZoomable() Returns true , indicating that the domain axis/axes for this
plot are zoomable. | public boolean | isRangeCrosshairLockedOnData() Returns a flag indicating whether or not the crosshair should "lock-on"
to actual data values. | public boolean | isRangeCrosshairVisible() Returns a flag indicating whether or not the range crosshair is visible. | public boolean | isRangeGridlinesVisible() Returns true if the range axis grid is visible, and
false otherwise. | public boolean | isRangeZeroBaselineVisible() Returns a flag that controls whether or not a zero baseline is
displayed for the range axis. | public boolean | isRangeZoomable() Returns true , indicating that the range axis/axes for this
plot are zoomable. | public void | mapDatasetToDomainAxis(int index, int axisIndex) Maps a dataset to a particular domain axis. | public void | mapDatasetToRangeAxis(int index, int axisIndex) Maps a dataset to a particular range axis. | public boolean | removeAnnotation(XYAnnotation annotation) Removes an annotation from the plot and sends a
PlotChangeEvent to all registered listeners.
Parameters: annotation - the annotation (null not permitted). | public boolean | render(Graphics2D g2, Rectangle2D dataArea, int index, PlotRenderingInfo info, CrosshairState crosshairState) Draws a representation of the data within the dataArea region, using the
current renderer.
The info and crosshairState arguments may be
null .
Parameters: g2 - the graphics device. Parameters: dataArea - the region in which the data is to be drawn. Parameters: index - the dataset index. Parameters: info - an optional object for collection dimension information. Parameters: crosshairState - collects crosshair information(null permitted). | public void | rendererChanged(RendererChangeEvent event) Receives notification of a renderer change event. | public void | setAxisOffset(RectangleInsets offset) Sets the axis offsets (gap between the data area and the axes) and sends
a
PlotChangeEvent to all registered listeners. | public void | setDataset(XYDataset dataset) Sets the primary dataset for the plot, replacing the existing dataset if
there is one. | public void | setDataset(int index, XYDataset dataset) Sets a dataset for the plot. | public void | setDatasetRenderingOrder(DatasetRenderingOrder order) Sets the rendering order and sends a
PlotChangeEvent to all
registered listeners. | public void | setDomainAxes(ValueAxis[] axes) Sets the domain axes for this plot and sends a
PlotChangeEvent to all registered listeners. | public void | setDomainAxis(ValueAxis axis) Sets the domain axis for the plot and sends a
PlotChangeEvent to all registered listeners. | public void | setDomainAxis(int index, ValueAxis axis) Sets a domain axis and sends a
PlotChangeEvent to all
registered listeners. | public void | setDomainAxis(int index, ValueAxis axis, boolean notify) Sets a domain axis and, if requested, sends a
PlotChangeEvent to
all registered listeners. | public void | setDomainAxisLocation(AxisLocation location) Sets the location of the primary domain axis and sends a
PlotChangeEvent to all registered listeners. | public void | setDomainAxisLocation(AxisLocation location, boolean notify) Sets the location of the domain axis and, if requested, sends a
PlotChangeEvent to all registered listeners. | public void | setDomainAxisLocation(int index, AxisLocation location) Sets the location for a domain axis and sends a
PlotChangeEvent to all registered listeners. | public void | setDomainAxisLocation(int index, AxisLocation location, boolean notify) Sets the axis location for a domain axis and, if requested, sends a
PlotChangeEvent to all registered listeners. | public void | setDomainCrosshairLockedOnData(boolean flag) Sets the flag indicating whether or not the domain crosshair should
"lock-on" to actual data values. | public void | setDomainCrosshairPaint(Paint paint) Sets the paint used to draw the crosshairs (if visible) and sends a
PlotChangeEvent to all registered listeners. | public void | setDomainCrosshairStroke(Stroke stroke) Sets the Stroke used to draw the crosshairs (if visible) and notifies
registered listeners that the axis has been modified. | public void | setDomainCrosshairValue(double value) Sets the domain crosshair value and sends a
PlotChangeEvent to
all registered listeners (provided that the domain crosshair is visible). | public 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). | public 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. | public void | setDomainGridlinePaint(Paint paint) Sets the paint for the grid lines plotted against the domain axis, and
sends a
PlotChangeEvent to all registered listeners. | public void | setDomainGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the domain axis, and
sends a
PlotChangeEvent to all registered listeners. | public void | setDomainGridlinesVisible(boolean visible) Sets the flag that controls whether or not the domain grid-lines are
visible. | public void | setDomainTickBandPaint(Paint paint) Sets the paint for the domain tick bands. | public void | setDomainZeroBaselinePaint(Paint paint) Sets the paint for the zero baseline plotted against the domain axis and
sends a
PlotChangeEvent to all registered listeners. | public void | setDomainZeroBaselineStroke(Stroke stroke) Sets the stroke for the zero baseline for the domain axis,
and sends a
PlotChangeEvent to all registered listeners. | public 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. | public void | setFixedDomainAxisSpace(AxisSpace space) Sets the fixed domain axis space. | public void | setFixedLegendItems(LegendItemCollection items) Sets the fixed legend items for the plot. | public void | setFixedRangeAxisSpace(AxisSpace space) Sets the fixed range axis space. | public void | setOrientation(PlotOrientation orientation) Sets the orientation for the plot and sends a
PlotChangeEvent to
all registered listeners. | public void | setQuadrantOrigin(Point2D origin) Sets the quadrant origin and sends a
PlotChangeEvent to all
registered listeners. | public void | setQuadrantPaint(int index, Paint paint) Sets the paint used for the specified quadrant and sends a
PlotChangeEvent to all registered listeners. | public void | setRangeAxes(ValueAxis[] axes) Sets the range axes for this plot and sends a
PlotChangeEvent to all registered listeners. | public void | setRangeAxis(ValueAxis axis) Sets the range axis for the plot and sends a
PlotChangeEvent to
all registered listeners. | public void | setRangeAxis(int index, ValueAxis axis) Sets a range axis and sends a
PlotChangeEvent to all registered
listeners. | public void | setRangeAxis(int index, ValueAxis axis, boolean notify) Sets a range axis and, if requested, sends a
PlotChangeEvent to
all registered listeners. | public void | setRangeAxisLocation(AxisLocation location) Sets the location of the primary range axis and sends a
PlotChangeEvent to all registered listeners. | public void | setRangeAxisLocation(AxisLocation location, boolean notify) Sets the location of the primary range axis and, if requested, sends a
PlotChangeEvent to all registered listeners. | public void | setRangeAxisLocation(int index, AxisLocation location) Sets the location for a range axis and sends a
PlotChangeEvent to all registered listeners. | public 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. | public void | setRangeCrosshairLockedOnData(boolean flag) Sets the flag indicating whether or not the range crosshair should
"lock-on" to actual data values. | public void | setRangeCrosshairPaint(Paint paint) Sets the paint used to color the crosshairs (if visible) and sends a
PlotChangeEvent to all registered listeners. | public void | setRangeCrosshairStroke(Stroke stroke) Sets the stroke used to draw the crosshairs (if visible) and sends a
PlotChangeEvent to all registered listeners. | public void | setRangeCrosshairValue(double value) Sets the range crosshair value. | public 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. | public void | setRangeCrosshairVisible(boolean flag) Sets the flag indicating whether or not the range crosshair is visible. | public void | setRangeGridlinePaint(Paint paint) Sets the paint for the grid lines plotted against the range axis and
sends a
PlotChangeEvent to all registered listeners. | public void | setRangeGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the range axis,
and sends a
PlotChangeEvent to all registered listeners. | public void | setRangeGridlinesVisible(boolean visible) Sets the flag that controls whether or not the range axis grid lines
are visible. | public void | setRangeTickBandPaint(Paint paint) Sets the paint for the range tick bands. | public void | setRangeZeroBaselinePaint(Paint paint) Sets the paint for the zero baseline plotted against the range axis and
sends a
PlotChangeEvent to all registered listeners. | public void | setRangeZeroBaselineStroke(Stroke stroke) Sets the stroke for the zero baseline for the range axis,
and sends a
PlotChangeEvent to all registered listeners. | public 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. | public void | setRenderer(XYItemRenderer renderer) Sets the renderer for the primary dataset and sends a
PlotChangeEvent to all registered listeners. | public void | setRenderer(int index, XYItemRenderer renderer) Sets a renderer and sends a
PlotChangeEvent to all
registered listeners. | public void | setRenderer(int index, XYItemRenderer renderer, boolean notify) Sets a renderer and sends a
PlotChangeEvent to all
registered listeners. | public void | setRenderers(XYItemRenderer[] renderers) Sets the renderers for this plot and sends a
PlotChangeEvent to all registered listeners. | public void | setSeriesRenderingOrder(SeriesRenderingOrder order) Sets the series order and sends a
PlotChangeEvent to all
registered listeners. | public void | setWeight(int weight) Sets the weight for the plot and sends a
PlotChangeEvent to all
registered listeners. | public void | zoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source) Multiplies the range on the domain axis/axes by the specified factor. | public void | zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) Zooms in on the domain axis/axes. | public void | zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source) Multiplies the range on the range axis/axes by the specified factor. | public void | zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) Zooms in on the range axes. |
DEFAULT_CROSSHAIR_PAINT | final public static Paint DEFAULT_CROSSHAIR_PAINT(Code) | | The default crosshair paint.
|
DEFAULT_CROSSHAIR_STROKE | final public static Stroke DEFAULT_CROSSHAIR_STROKE(Code) | | The default crosshair stroke.
|
DEFAULT_CROSSHAIR_VISIBLE | final public static boolean DEFAULT_CROSSHAIR_VISIBLE(Code) | | The default crosshair visibility.
|
DEFAULT_GRIDLINE_PAINT | final public static Paint DEFAULT_GRIDLINE_PAINT(Code) | | The default grid line paint.
|
DEFAULT_GRIDLINE_STROKE | final public static Stroke DEFAULT_GRIDLINE_STROKE(Code) | | The default grid line stroke.
|
localizationResources | protected static ResourceBundle localizationResources(Code) | | The resourceBundle for the localization.
|
XYPlot | public XYPlot()(Code) | | Creates a new XYPlot instance with no dataset, no axes and
no renderer. You should specify these items before using the plot.
|
XYPlot | public XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, XYItemRenderer renderer)(Code) | | Creates a new plot with the specified dataset, axes and renderer. Any
of the arguments can be null , but in that case you should
take care to specify the value before using the plot (otherwise a
NullPointerException may be thrown).
Parameters: dataset - the dataset (null permitted). Parameters: domainAxis - the domain axis (null permitted). Parameters: rangeAxis - the range axis (null permitted). Parameters: renderer - the renderer (null permitted). |
addDomainMarker | public void addDomainMarker(Marker marker, Layer layer)(Code) | | Adds a marker for the domain axis in the specified layer and sends a
PlotChangeEvent to 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.
Parameters: marker - the marker (null not permitted). Parameters: layer - the layer (foreground or background). See Also: XYPlot.addDomainMarker(int,Marker,Layer) |
addDomainMarker | public void addDomainMarker(int index, Marker marker, Layer layer)(Code) | | Adds a marker for a specific dataset/renderer and sends a
PlotChangeEvent to 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.
Parameters: index - the dataset/renderer index. Parameters: marker - the marker. Parameters: layer - the layer (foreground or background). See Also: XYPlot.clearDomainMarkers(int) See Also: XYPlot.addRangeMarker(int,Marker,Layer) |
addRangeMarker | public void addRangeMarker(Marker marker)(Code) | | Adds a marker for the range axis and sends a
PlotChangeEvent to
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.
Parameters: marker - the marker (null not permitted). See Also: XYPlot.addRangeMarker(Marker,Layer) |
addRangeMarker | public void addRangeMarker(Marker marker, Layer layer)(Code) | | Adds a marker for the range axis in the specified layer and sends a
PlotChangeEvent to 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.
Parameters: marker - the marker (null not permitted). Parameters: layer - the layer (foreground or background). See Also: XYPlot.addRangeMarker(int,Marker,Layer) |
addRangeMarker | public void addRangeMarker(int index, Marker marker, Layer layer)(Code) | | Adds a marker for a specific dataset/renderer and sends a
PlotChangeEvent to 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.
Parameters: index - the dataset/renderer index. Parameters: marker - the marker. Parameters: layer - the layer (foreground or background). See Also: XYPlot.clearRangeMarkers(int) See Also: XYPlot.addDomainMarker(int,Marker,Layer) |
calculateAxisSpace | protected AxisSpace calculateAxisSpace(Graphics2D g2, Rectangle2D plotArea)(Code) | | Calculates the space required for all the axes in the plot.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. The required space. |
calculateDomainAxisSpace | protected AxisSpace calculateDomainAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space)(Code) | | Calculates the space required for the domain axis/axes.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: space - a carrier for the result (null permitted). The required space. |
calculateRangeAxisSpace | protected AxisSpace calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space)(Code) | | Calculates the space required for the range axis/axes.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: space - a carrier for the result (null permitted). The required space. |
clearDomainMarkers | public void clearDomainMarkers(int index)(Code) | | Clears the (foreground and background) domain markers for a particular
renderer.
Parameters: index - the renderer index. See Also: XYPlot.clearRangeMarkers(int) |
clearRangeMarkers | public void clearRangeMarkers(int index)(Code) | | Clears the (foreground and background) range markers for a particular
renderer.
Parameters: index - the renderer index. |
configureDomainAxes | public void configureDomainAxes()(Code) | | Configures the domain axes.
|
datasetChanged | public void datasetChanged(DatasetChangeEvent event)(Code) | | Receives notification of a change to the plot's dataset.
The axis ranges are updated if necessary.
Parameters: event - information about the event (not used here). |
draw | public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code) | | Draws the plot within the specified area on a graphics device.
Parameters: g2 - the graphics device. Parameters: area - the plot area (in Java2D space). Parameters: anchor - an anchor point in Java2D space (null permitted). Parameters: parentState - the state from the parent plot, if there is one(null permitted). Parameters: info - collects chart drawing information (null permitted). |
drawAnnotations | public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info)(Code) | | Draws the annotations for the plot.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: info - the chart rendering info. |
drawAxes | protected Map drawAxes(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, PlotRenderingInfo plotState)(Code) | | A utility method for drawing the axes.
Parameters: g2 - the graphics device (null not permitted). Parameters: plotArea - the plot area (null not permitted). Parameters: dataArea - the data area (null not permitted). Parameters: plotState - collects information about the plot (null permitted). A map containing the state for each axis drawn. |
drawBackground | public void drawBackground(Graphics2D g2, Rectangle2D area)(Code) | | Draws the background for the plot.
Parameters: g2 - the graphics device. Parameters: area - the area. |
drawDomainCrosshair | protected void drawDomainCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint)(Code) | | Draws a domain crosshair.
Parameters: g2 - the graphics target. Parameters: dataArea - the data area. Parameters: orientation - the plot orientation. Parameters: value - the crosshair value. Parameters: axis - the axis against which the value is measured. Parameters: stroke - the stroke used to draw the crosshair line. Parameters: paint - the paint used to draw the crosshair line. since: 1.0.4 |
drawDomainGridlines | protected void drawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks)(Code) | | Draws the gridlines for the plot, if they are visible.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: ticks - the ticks. |
drawDomainMarkers | protected void drawDomainMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer)(Code) | | Draws the domain markers (if any) for an axis and layer. This method is
typically called from within the draw() method.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: index - the renderer index. Parameters: layer - the layer (foreground or background). |
drawHorizontalLine | protected void drawHorizontalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)(Code) | | Utility method for drawing a horizontal line across the data area of the
plot.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: value - the coordinate, where to draw the line. Parameters: stroke - the stroke to use. Parameters: paint - the paint to use. |
drawRangeCrosshair | protected void drawRangeCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint)(Code) | | Draws a range crosshair.
Parameters: g2 - the graphics target. Parameters: dataArea - the data area. Parameters: orientation - the plot orientation. Parameters: value - the crosshair value. Parameters: axis - the axis against which the value is measured. Parameters: stroke - the stroke used to draw the crosshair line. Parameters: paint - the paint used to draw the crosshair line. since: 1.0.4 |
drawRangeGridlines | protected void drawRangeGridlines(Graphics2D g2, Rectangle2D area, List ticks)(Code) | | Draws the gridlines for the plot's primary range axis, if they are
visible.
Parameters: g2 - the graphics device. Parameters: area - the data area. Parameters: ticks - the ticks. |
drawRangeMarkers | protected void drawRangeMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer)(Code) | | Draws the range markers (if any) for a renderer and layer. This method
is typically called from within the draw() method.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: index - the renderer index. Parameters: layer - the layer (foreground or background). |
drawVerticalLine | protected void drawVerticalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)(Code) | | Utility method for drawing a vertical line on the data area of the plot.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: value - the coordinate, where to draw the line. Parameters: stroke - the stroke to use. Parameters: paint - the paint to use. |
equals | public boolean equals(Object obj)(Code) | | Tests this plot for equality with another object.
Parameters: obj - the object (null permitted). true or false . |
getDataRange | public Range getDataRange(ValueAxis axis)(Code) | | Returns the range for the specified axis.
Parameters: axis - the axis. The range. |
getDatasetCount | public int getDatasetCount()(Code) | | Returns the number of datasets.
The number of datasets. |
getDomainAxisEdge | public RectangleEdge getDomainAxisEdge(int index)(Code) | | Returns the edge for a domain axis.
Parameters: index - the axis index. The edge. See Also: XYPlot.getRangeAxisEdge(int) |
getDomainAxisForDataset | public ValueAxis getDomainAxisForDataset(int index)(Code) | | Returns the domain axis for a dataset.
Parameters: index - the dataset index. The axis. |
getDomainAxisLocation | public AxisLocation getDomainAxisLocation(int index)(Code) | | 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.
Parameters: index - the axis index. The location (never null ). See Also: XYPlot.setDomainAxisLocation(int,AxisLocation) |
getDomainMarkers | public Collection getDomainMarkers(Layer layer)(Code) | | Returns the list of domain markers (read only) for the specified layer.
Parameters: layer - the layer (foreground or background). The list of domain markers. See Also: XYPlot.getRangeMarkers(Layer) |
getDomainMarkers | public Collection getDomainMarkers(int index, Layer layer)(Code) | | Returns a collection of domain markers for a particular renderer and
layer.
Parameters: index - the renderer index. Parameters: layer - the layer. A collection of markers (possibly null ). See Also: XYPlot.getRangeMarkers(int,Layer) |
getIndexOf | public int getIndexOf(XYItemRenderer renderer)(Code) | | Returns the index of the specified renderer, or -1 if the
renderer is not assigned to this plot.
Parameters: renderer - the renderer (null permitted). The renderer index. |
getLegendItems | public LegendItemCollection getLegendItems()(Code) | | 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.
The legend items. |
getPlotType | public String getPlotType()(Code) | | Returns the plot type as a string.
A short string describing the type of plot. |
getQuadrantPaint | public Paint getQuadrantPaint(int index)(Code) | | Returns the paint used for the specified quadrant.
Parameters: index - the quadrant index (0-3). The paint (possibly null ). See Also: XYPlot.setQuadrantPaint(int,Paint) |
getRangeAxisForDataset | public ValueAxis getRangeAxisForDataset(int index)(Code) | | Returns the range axis for a dataset.
Parameters: index - the dataset index. The axis. |
getRangeAxisLocation | public AxisLocation getRangeAxisLocation(int index)(Code) | | 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.
Parameters: index - the axis index. The location (never null ). See Also: XYPlot.setRangeAxisLocation(int,AxisLocation) |
getRangeMarkers | public Collection getRangeMarkers(Layer layer)(Code) | | Returns the list of range markers (read only) for the specified layer.
Parameters: layer - the layer (foreground or background). The list of range markers. See Also: XYPlot.getDomainMarkers(Layer) |
getRangeMarkers | public Collection getRangeMarkers(int index, Layer layer)(Code) | | Returns a collection of range markers for a particular renderer and
layer.
Parameters: index - the renderer index. Parameters: layer - the layer. A collection of markers (possibly null ). See Also: XYPlot.getDomainMarkers(int,Layer) |
getRangeTickBandPaint | public Paint getRangeTickBandPaint()(Code) | | Returns the paint used for the range tick bands. If this is
null , no tick bands will be drawn.
The paint (possibly null ). See Also: XYPlot.setRangeTickBandPaint(Paint) |
getRendererForDataset | public XYItemRenderer getRendererForDataset(XYDataset dataset)(Code) | | 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).
Parameters: dataset - the dataset (null permitted). The renderer (possibly null ). |
getSeriesCount | public int getSeriesCount()(Code) | | Returns the number of series in the primary dataset for this plot. If
the dataset is null , the method returns 0.
The series count. |
getWeight | public int getWeight()(Code) | | Returns the weight for this plot when it is used as a subplot within a
combined plot.
The weight. See Also: XYPlot.setWeight(int) |
handleClick | public void handleClick(int x, int y, PlotRenderingInfo info)(Code) | | Handles a 'click' on the plot by updating the anchor values.
Parameters: x - the x-coordinate, where the click occurred, in Java2D space. Parameters: y - the y-coordinate, where the click occurred, in Java2D space. Parameters: info - object containing information about the plot dimensions. |
indexOf | public int indexOf(XYDataset dataset)(Code) | | Returns the index of the specified dataset, or -1 if the
dataset does not belong to the plot.
Parameters: dataset - the dataset (null not permitted). The index. |
isDomainZoomable | public boolean isDomainZoomable()(Code) | | Returns true , indicating that the domain axis/axes for this
plot are zoomable.
A boolean. See Also: XYPlot.isRangeZoomable() |
isRangeZoomable | public boolean isRangeZoomable()(Code) | | Returns true , indicating that the range axis/axes for this
plot are zoomable.
A boolean. See Also: XYPlot.isDomainZoomable() |
mapDatasetToDomainAxis | public void mapDatasetToDomainAxis(int index, int axisIndex)(Code) | | 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.
Parameters: index - the dataset index (zero-based). Parameters: axisIndex - the axis index. See Also: XYPlot.mapDatasetToRangeAxis(int,int) |
mapDatasetToRangeAxis | public void mapDatasetToRangeAxis(int index, int axisIndex)(Code) | | 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.
Parameters: index - the dataset index (zero-based). Parameters: axisIndex - the axis index. See Also: XYPlot.mapDatasetToDomainAxis(int,int) |
render | public boolean render(Graphics2D g2, Rectangle2D dataArea, int index, PlotRenderingInfo info, CrosshairState crosshairState)(Code) | | Draws a representation of the data within the dataArea region, using the
current renderer.
The info and crosshairState arguments may be
null .
Parameters: g2 - the graphics device. Parameters: dataArea - the region in which the data is to be drawn. Parameters: index - the dataset index. Parameters: info - an optional object for collection dimension information. Parameters: crosshairState - collects crosshair information(null permitted). A flag that indicates whether any data was actually rendered. |
rendererChanged | public void rendererChanged(RendererChangeEvent event)(Code) | | Receives notification of a renderer change event.
Parameters: event - the event. |
setAxisOffset | public void setAxisOffset(RectangleInsets offset)(Code) | | Sets the axis offsets (gap between the data area and the axes) and sends
a
PlotChangeEvent to all registered listeners.
Parameters: offset - the offset (null not permitted). See Also: XYPlot.getAxisOffset() |
setDataset | public void setDataset(int index, XYDataset dataset)(Code) | | Sets a dataset for the plot.
Parameters: index - the dataset index. Parameters: dataset - the dataset (null permitted). See Also: XYPlot.getDataset(int) |
setDatasetRenderingOrder | public void setDatasetRenderingOrder(DatasetRenderingOrder order)(Code) | | Sets the rendering order and sends a
PlotChangeEvent to 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.
Parameters: order - the rendering order (null not permitted). See Also: XYPlot.getDatasetRenderingOrder() |
setDomainAxis | public void setDomainAxis(int index, ValueAxis axis, boolean notify)(Code) | | Sets a domain axis and, if requested, sends a
PlotChangeEvent to
all registered listeners.
Parameters: index - the axis index. Parameters: axis - the axis. Parameters: notify - notify listeners? See Also: XYPlot.getDomainAxis(int) |
setDomainAxisLocation | public void setDomainAxisLocation(AxisLocation location, boolean notify)(Code) | | Sets the location of the domain axis and, if requested, sends a
PlotChangeEvent to all registered listeners.
Parameters: location - the location (null not permitted). Parameters: notify - notify listeners? See Also: XYPlot.getDomainAxisLocation() |
setDomainAxisLocation | public void setDomainAxisLocation(int index, AxisLocation location)(Code) | | Sets the location for a domain axis and sends a
PlotChangeEvent to all registered listeners.
Parameters: index - the axis index. Parameters: location - the location (null not permitted for index0). See Also: XYPlot.getDomainAxisLocation(int) |
setDomainCrosshairLockedOnData | public void setDomainCrosshairLockedOnData(boolean flag)(Code) | | Sets the flag indicating whether or not the domain crosshair should
"lock-on" to actual data values. If the flag value changes, this
method sends a
PlotChangeEvent to all registered listeners.
Parameters: flag - the flag. See Also: XYPlot.isDomainCrosshairLockedOnData() |
setDomainCrosshairPaint | public void setDomainCrosshairPaint(Paint paint)(Code) | | Sets the paint used to draw the crosshairs (if visible) and sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the new crosshair paint (null not permitted). See Also: XYPlot.getDomainCrosshairPaint() |
setDomainCrosshairStroke | public void setDomainCrosshairStroke(Stroke stroke)(Code) | | Sets the Stroke used to draw the crosshairs (if visible) and notifies
registered listeners that the axis has been modified.
Parameters: stroke - the new crosshair stroke (null not permitted). See Also: XYPlot.getDomainCrosshairStroke() |
setDomainCrosshairValue | public void setDomainCrosshairValue(double value)(Code) | | Sets the domain crosshair value and sends a
PlotChangeEvent to
all registered listeners (provided that the domain crosshair is visible).
Parameters: value - the value. See Also: XYPlot.getDomainCrosshairValue() |
setDomainCrosshairValue | public void setDomainCrosshairValue(double value, boolean notify)(Code) | | Sets the domain crosshair value and, if requested, sends a
PlotChangeEvent to all registered listeners (provided that the
domain crosshair is visible).
Parameters: value - the new value. Parameters: notify - notify listeners? See Also: XYPlot.getDomainCrosshairValue() |
setDomainCrosshairVisible | public void setDomainCrosshairVisible(boolean flag)(Code) | | Sets the flag indicating whether or not the domain crosshair is visible
and, if the flag changes, sends a
PlotChangeEvent to all
registered listeners.
Parameters: flag - the new value of the flag. See Also: XYPlot.isDomainCrosshairVisible() |
setDomainGridlinesVisible | public void setDomainGridlinesVisible(boolean visible)(Code) | | Sets the flag that controls whether or not the domain grid-lines are
visible.
If the flag value is changed, a
PlotChangeEvent is sent to all
registered listeners.
Parameters: visible - the new value of the flag. See Also: XYPlot.isDomainGridlinesVisible() |
setDomainZeroBaselinePaint | public void setDomainZeroBaselinePaint(Paint paint)(Code) | | Sets the paint for the zero baseline plotted against the domain axis and
sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the paint (null not permitted). since: 1.0.5 See Also: XYPlot.getDomainZeroBaselinePaint() |
setDomainZeroBaselineStroke | public void setDomainZeroBaselineStroke(Stroke stroke)(Code) | | Sets the stroke for the zero baseline for the domain axis,
and sends a
PlotChangeEvent to all registered listeners.
Parameters: stroke - the stroke (null not permitted). since: 1.0.5 See Also: XYPlot.getRangeZeroBaselineStroke() |
setDomainZeroBaselineVisible | public void setDomainZeroBaselineVisible(boolean visible)(Code) | | 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.
Parameters: visible - the flag. since: 1.0.5 See Also: XYPlot.isDomainZeroBaselineVisible() |
setFixedLegendItems | public void setFixedLegendItems(LegendItemCollection items)(Code) | | Sets the fixed legend items for the plot. Leave this set to
null if you prefer the legend items to be created
automatically.
Parameters: items - the legend items (null permitted). See Also: XYPlot.getFixedLegendItems() |
setQuadrantPaint | public void setQuadrantPaint(int index, Paint paint)(Code) | | Sets the paint used for the specified quadrant and sends a
PlotChangeEvent to all registered listeners.
Parameters: index - the quadrant index (0-3). Parameters: paint - the paint (null permitted). See Also: XYPlot.getQuadrantPaint(int) |
setRangeAxis | public void setRangeAxis(int index, ValueAxis axis, boolean notify)(Code) | | Sets a range axis and, if requested, sends a
PlotChangeEvent to
all registered listeners.
Parameters: index - the axis index. Parameters: axis - the axis (null permitted). Parameters: notify - notify listeners? See Also: XYPlot.getRangeAxis(int) |
setRangeAxisLocation | public void setRangeAxisLocation(AxisLocation location, boolean notify)(Code) | | Sets the location of the primary range axis and, if requested, sends a
PlotChangeEvent to all registered listeners.
Parameters: location - the location (null not permitted). Parameters: notify - notify listeners? See Also: XYPlot.getRangeAxisLocation() |
setRangeCrosshairLockedOnData | public void setRangeCrosshairLockedOnData(boolean flag)(Code) | | Sets the flag indicating whether or not the range crosshair should
"lock-on" to actual data values. If the flag value changes, this method
sends a
PlotChangeEvent to all registered listeners.
Parameters: flag - the flag. See Also: XYPlot.isRangeCrosshairLockedOnData() |
setRangeCrosshairPaint | public void setRangeCrosshairPaint(Paint paint)(Code) | | Sets the paint used to color the crosshairs (if visible) and sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the new crosshair paint (null not permitted). See Also: XYPlot.getRangeCrosshairPaint() |
setRangeCrosshairStroke | public void setRangeCrosshairStroke(Stroke stroke)(Code) | | Sets the stroke used to draw the crosshairs (if visible) and sends a
PlotChangeEvent to all registered listeners.
Parameters: stroke - the new crosshair stroke (null not permitted). See Also: XYPlot.getRangeCrosshairStroke() |
setRangeCrosshairValue | public void setRangeCrosshairValue(double value)(Code) | | Sets the range crosshair value.
Registered listeners are notified that the plot has been modified, but
only if the crosshair is visible.
Parameters: value - the new value. See Also: XYPlot.getRangeCrosshairValue() |
setRangeCrosshairValue | public void setRangeCrosshairValue(double value, boolean notify)(Code) | | Sets the range crosshair value and sends a
PlotChangeEvent to
all registered listeners, but only if the crosshair is visible.
Parameters: value - the new value. Parameters: notify - a flag that controls whether or not listeners arenotified. See Also: XYPlot.getRangeCrosshairValue() |
setRangeCrosshairVisible | public void setRangeCrosshairVisible(boolean flag)(Code) | | Sets the flag indicating whether or not the range crosshair is visible.
If the flag value changes, this method sends a
PlotChangeEvent to all registered listeners.
Parameters: flag - the new value of the flag. See Also: XYPlot.isRangeCrosshairVisible() |
setRangeGridlinePaint | public void setRangeGridlinePaint(Paint paint)(Code) | | Sets the paint for the grid lines plotted against the range axis and
sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the paint (null not permitted). See Also: XYPlot.getRangeGridlinePaint() |
setRangeGridlineStroke | public void setRangeGridlineStroke(Stroke stroke)(Code) | | Sets the stroke for the grid lines plotted against the range axis,
and sends a
PlotChangeEvent to all registered listeners.
Parameters: stroke - the stroke (null not permitted). See Also: XYPlot.getRangeGridlineStroke() |
setRangeGridlinesVisible | public void setRangeGridlinesVisible(boolean visible)(Code) | | Sets the flag that controls whether or not the range axis grid lines
are visible.
If the flag value is changed, a
PlotChangeEvent is sent to all
registered listeners.
Parameters: visible - the new value of the flag. See Also: XYPlot.isRangeGridlinesVisible() |
setRangeZeroBaselinePaint | public void setRangeZeroBaselinePaint(Paint paint)(Code) | | Sets the paint for the zero baseline plotted against the range axis and
sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the paint (null not permitted). See Also: XYPlot.getRangeZeroBaselinePaint() |
setRangeZeroBaselineVisible | public void setRangeZeroBaselineVisible(boolean visible)(Code) | | 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.
Parameters: visible - the flag. See Also: XYPlot.isRangeZeroBaselineVisible() |
setRenderer | public void setRenderer(XYItemRenderer renderer)(Code) | | Sets the renderer for the primary dataset and sends a
PlotChangeEvent to all registered listeners. If the renderer
is set to null , no data will be displayed.
Parameters: renderer - the renderer (null permitted). See Also: XYPlot.getRenderer() |
setRenderer | public void setRenderer(int index, XYItemRenderer renderer, boolean notify)(Code) | | Sets a renderer and sends a
PlotChangeEvent to all
registered listeners.
Parameters: index - the index. Parameters: renderer - the renderer. Parameters: notify - notify listeners? See Also: XYPlot.getRenderer(int) |
setRenderers | public void setRenderers(XYItemRenderer[] renderers)(Code) | | Sets the renderers for this plot and sends a
PlotChangeEvent to all registered listeners.
Parameters: renderers - the renderers (null not permitted). |
setSeriesRenderingOrder | public void setSeriesRenderingOrder(SeriesRenderingOrder order)(Code) | | Sets the series order and sends a
PlotChangeEvent to 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.
Parameters: order - the rendering order (null not permitted). See Also: XYPlot.getSeriesRenderingOrder() |
setWeight | public void setWeight(int weight)(Code) | | Sets the weight for the plot and sends a
PlotChangeEvent to all
registered listeners.
Parameters: weight - the weight. See Also: XYPlot.getWeight() |
zoomDomainAxes | public void zoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source)(Code) | | Multiplies the range on the domain axis/axes by the specified factor.
Parameters: factor - the zoom factor. Parameters: info - the plot rendering info. Parameters: source - the source point. |
zoomDomainAxes | public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)(Code) | | 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.
Parameters: lowerPercent - a percentage that determines the new lower boundfor the axis (e.g. 0.20 is twenty percent). Parameters: upperPercent - a percentage that determines the new upper boundfor the axis (e.g. 0.80 is eighty percent). Parameters: info - the plot rendering info. Parameters: source - the source point. |
zoomRangeAxes | public void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source)(Code) | | Multiplies the range on the range axis/axes by the specified factor.
Parameters: factor - the zoom factor. Parameters: info - the plot rendering info. Parameters: source - the source point. |
zoomRangeAxes | public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)(Code) | | Zooms in on the range axes.
Parameters: lowerPercent - the lower bound. Parameters: upperPercent - the upper bound. Parameters: info - the plot rendering info. Parameters: source - the source point. |
Methods inherited from org.jfree.chart.plot.Plot | public void addChangeListener(PlotChangeListener listener)(Code)(Java Doc) public void axisChanged(AxisChangeEvent event)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void datasetChanged(DatasetChangeEvent event)(Code)(Java Doc) abstract public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)(Java Doc) public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawBackgroundImage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void drawNoDataMessage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawOutline(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)(Code)(Java Doc) public float getBackgroundAlpha()(Code)(Java Doc) public Image getBackgroundImage()(Code)(Java Doc) public int getBackgroundImageAlignment()(Code)(Java Doc) public float getBackgroundImageAlpha()(Code)(Java Doc) public Paint getBackgroundPaint()(Code)(Java Doc) public DatasetGroup getDatasetGroup()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public float getForegroundAlpha()(Code)(Java Doc) public RectangleInsets getInsets()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public String getNoDataMessage()(Code)(Java Doc) public Font getNoDataMessageFont()(Code)(Java Doc) public Paint getNoDataMessagePaint()(Code)(Java Doc) public Paint getOutlinePaint()(Code)(Java Doc) public Stroke getOutlineStroke()(Code)(Java Doc) public Plot getParent()(Code)(Java Doc) abstract public String getPlotType()(Code)(Java Doc) protected double getRectX(double x, double w1, double w2, RectangleEdge edge)(Code)(Java Doc) protected double getRectY(double y, double h1, double h2, RectangleEdge edge)(Code)(Java Doc) public Plot getRootPlot()(Code)(Java Doc) public void handleClick(int x, int y, PlotRenderingInfo info)(Code)(Java Doc) public boolean isOutlineVisible()(Code)(Java Doc) public boolean isSubplot()(Code)(Java Doc) public void markerChanged(MarkerChangeEvent event)(Code)(Java Doc) public void notifyListeners(PlotChangeEvent event)(Code)(Java Doc) public void removeChangeListener(PlotChangeListener listener)(Code)(Java Doc) public static RectangleEdge resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public static RectangleEdge resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public void setBackgroundAlpha(float alpha)(Code)(Java Doc) public void setBackgroundImage(Image image)(Code)(Java Doc) public void setBackgroundImageAlignment(int alignment)(Code)(Java Doc) public void setBackgroundImageAlpha(float alpha)(Code)(Java Doc) public void setBackgroundPaint(Paint paint)(Code)(Java Doc) protected void setDatasetGroup(DatasetGroup group)(Code)(Java Doc) public void setDrawingSupplier(DrawingSupplier supplier)(Code)(Java Doc) public void setForegroundAlpha(float alpha)(Code)(Java Doc) public void setInsets(RectangleInsets insets)(Code)(Java Doc) public void setInsets(RectangleInsets insets, boolean notify)(Code)(Java Doc) public void setNoDataMessage(String message)(Code)(Java Doc) public void setNoDataMessageFont(Font font)(Code)(Java Doc) public void setNoDataMessagePaint(Paint paint)(Code)(Java Doc) public void setOutlinePaint(Paint paint)(Code)(Java Doc) public void setOutlineStroke(Stroke stroke)(Code)(Java Doc) public void setOutlineVisible(boolean visible)(Code)(Java Doc) public void setParent(Plot parent)(Code)(Java Doc) public void zoom(double percent)(Code)(Java Doc)
|
|
|