| java.lang.Object org.jfree.chart.plot.Plot org.jfree.chart.plot.FastScatterPlot
Method Summary | |
public Object | clone() Returns a clone of the plot. | public void | draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Draws the fast scatter plot on a Java 2D graphics device (such as the
screen or a printer). | protected void | drawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the gridlines for the plot, if they are visible. | protected void | drawRangeGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks) Draws the gridlines for the plot, if they are visible. | public boolean | equals(Object obj) Tests an object for equality with this instance.
Parameters: obj - the object (null permitted). | public float[][] | getData() Returns the data array used by the plot. | public Range | getDataRange(ValueAxis axis) Returns the range of data values to be plotted along the axis, or
null if the specified axis isn't the domain axis or the
range axis for the plot.
Parameters: axis - the axis (null permitted). | public ValueAxis | getDomainAxis() Returns the domain axis for the plot. | 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 PlotOrientation | getOrientation() Returns the orientation of the plot. | public Paint | getPaint() Returns the paint used to plot data points. | public String | getPlotType() Returns a short string describing the plot type. | public ValueAxis | getRangeAxis() Returns the range axis for the plot. | 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 boolean | isDomainGridlinesVisible() Returns true if the domain gridlines are visible, and
false otherwise. | public boolean | isDomainZoomable() Returns true . | public boolean | isRangeGridlinesVisible() Returns true if the range axis grid is visible, and
false otherwise. | public boolean | isRangeZoomable() Returns true . | public void | render(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, CrosshairState crosshairState) Draws a representation of the data within the dataArea region. | public void | setData(float[][] data) Sets the data array used by the plot and sends a
PlotChangeEvent to all registered listeners. | public void | setDomainAxis(ValueAxis axis) Sets the domain axis and 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 | setPaint(Paint paint) Sets the color for the data points and sends a
PlotChangeEvent
to all registered listeners. | public void | setRangeAxis(ValueAxis axis) Sets the range axis and sends a
PlotChangeEvent to all
registered listeners. | 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 | 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 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_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.
|
FastScatterPlot | public FastScatterPlot()(Code) | | Creates a new instance of FastScatterPlot with default
axes.
|
FastScatterPlot | public FastScatterPlot(float[][] data, ValueAxis domainAxis, ValueAxis rangeAxis)(Code) | | Creates a new fast scatter plot.
The data is an array of x, y values: data[0][i] = x, data[1][i] = y.
Parameters: data - the data (null permitted). Parameters: domainAxis - the domain (x) axis (null not permitted). Parameters: rangeAxis - the range (y) axis (null not permitted). |
draw | public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code) | | Draws the fast scatter plot on a Java 2D graphics device (such as the
screen or a printer).
Parameters: g2 - the graphics device. Parameters: area - the area within which the plot (including axis labels)should be drawn. Parameters: anchor - the anchor point (null permitted). Parameters: parentState - the state from the parent plot (ignored). Parameters: info - collects chart drawing information (null permitted). |
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. |
drawRangeGridlines | protected void drawRangeGridlines(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. |
equals | public boolean equals(Object obj)(Code) | | Tests an object for equality with this instance.
Parameters: obj - the object (null permitted). A boolean. |
getDataRange | public Range getDataRange(ValueAxis axis)(Code) | | Returns the range of data values to be plotted along the axis, or
null if the specified axis isn't the domain axis or the
range axis for the plot.
Parameters: axis - the axis (null permitted). The range (possibly null ). |
getPlotType | public String getPlotType()(Code) | | Returns a short string describing the plot type.
A short string describing the plot type. |
isDomainZoomable | public boolean isDomainZoomable()(Code) | | Returns true .
A boolean. |
isRangeZoomable | public boolean isRangeZoomable()(Code) | | Returns true .
A boolean. |
render | public void render(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, CrosshairState crosshairState)(Code) | | Draws a representation of the data within the dataArea region. 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: info - an optional object for collection dimension information. Parameters: crosshairState - collects crosshair information (null permitted). |
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: FastScatterPlot.getDomainGridlinePaint() |
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: FastScatterPlot.isRangeGridlinesVisible() |
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 axes.
Parameters: lowerPercent - the new lower bound as a percentage of the current range. Parameters: upperPercent - the new upper bound as a percentage of the currentrange. 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 new lower bound as a percentage of the current range. Parameters: upperPercent - the new upper bound as a percentage of the current range. 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)
|
|
|