Java Doc for FastScatterPlot.java in  » Chart » jfreechart » org » jfree » chart » plot » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Chart » jfreechart » org.jfree.chart.plot 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.chart.plot.Plot
      org.jfree.chart.plot.FastScatterPlot

FastScatterPlot
public class FastScatterPlot extends Plot implements ValueAxisPlot,Zoomable,Cloneable,Serializable(Code)
A fast scatter plot.


Field Summary
final public static  PaintDEFAULT_GRIDLINE_PAINT
     The default grid line paint.
final public static  StrokeDEFAULT_GRIDLINE_STROKE
     The default grid line stroke.
protected static  ResourceBundlelocalizationResources
     The resourceBundle for the localization.

Constructor Summary
public  FastScatterPlot()
     Creates a new instance of FastScatterPlot with default axes.
public  FastScatterPlot(float[][] data, ValueAxis domainAxis, ValueAxis rangeAxis)
     Creates a new fast scatter plot.

Method Summary
public  Objectclone()
     Returns a clone of the plot.
public  voiddraw(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  voiddrawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks)
     Draws the gridlines for the plot, if they are visible.
protected  voiddrawRangeGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks)
     Draws the gridlines for the plot, if they are visible.
public  booleanequals(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  RangegetDataRange(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  ValueAxisgetDomainAxis()
     Returns the domain axis for the plot.
public  PaintgetDomainGridlinePaint()
     Returns the paint for the grid lines (if any) plotted against the domain axis.
public  StrokegetDomainGridlineStroke()
     Returns the stroke for the grid-lines (if any) plotted against the domain axis.
public  PlotOrientationgetOrientation()
     Returns the orientation of the plot.
public  PaintgetPaint()
     Returns the paint used to plot data points.
public  StringgetPlotType()
     Returns a short string describing the plot type.
public  ValueAxisgetRangeAxis()
     Returns the range axis for the plot.
public  PaintgetRangeGridlinePaint()
     Returns the paint for the grid lines (if any) plotted against the range axis.
public  StrokegetRangeGridlineStroke()
     Returns the stroke for the grid lines (if any) plotted against the range axis.
public  booleanisDomainGridlinesVisible()
     Returns true if the domain gridlines are visible, and false otherwise.
public  booleanisDomainZoomable()
     Returns true.
public  booleanisRangeGridlinesVisible()
     Returns true if the range axis grid is visible, and false otherwise.
public  booleanisRangeZoomable()
     Returns true.
public  voidrender(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, CrosshairState crosshairState)
     Draws a representation of the data within the dataArea region.
public  voidsetData(float[][] data)
     Sets the data array used by the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxis(ValueAxis axis)
     Sets the domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainGridlinePaint(Paint paint)
     Sets the paint for the grid lines plotted against the domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainGridlineStroke(Stroke stroke)
     Sets the stroke for the grid lines plotted against the domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainGridlinesVisible(boolean visible)
     Sets the flag that controls whether or not the domain grid-lines are visible.
public  voidsetPaint(Paint paint)
     Sets the color for the data points and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxis(ValueAxis axis)
     Sets the range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeGridlinePaint(Paint paint)
     Sets the paint for the grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeGridlineStroke(Stroke stroke)
     Sets the stroke for the grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeGridlinesVisible(boolean visible)
     Sets the flag that controls whether or not the range axis grid lines are visible.
public  voidzoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source)
     Multiplies the range on the domain axis/axes by the specified factor.
public  voidzoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)
     Zooms in on the domain axes.
public  voidzoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source)
     Multiplies the range on the range axis/axes by the specified factor.
public  voidzoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)
     Zooms in on the range axes.

Field Detail
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.




Constructor Detail
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).





Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the plot. A clone.
throws:
  CloneNotSupportedException - if some component of the plot does not support cloning.



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.



getData
public float[][] getData()(Code)
Returns the data array used by the plot. The data array (possibly null).
See Also:   FastScatterPlot.setData(float[][])



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).



getDomainAxis
public ValueAxis getDomainAxis()(Code)
Returns the domain axis for the plot. The domain axis (never null).
See Also:   FastScatterPlot.setDomainAxis(ValueAxis)



getDomainGridlinePaint
public Paint getDomainGridlinePaint()(Code)
Returns the paint for the grid lines (if any) plotted against the domain axis. The paint (never null).
See Also:   FastScatterPlot.setDomainGridlinePaint(Paint)



getDomainGridlineStroke
public Stroke getDomainGridlineStroke()(Code)
Returns the stroke for the grid-lines (if any) plotted against the domain axis. The stroke (never null).
See Also:   FastScatterPlot.setDomainGridlineStroke(Stroke)



getOrientation
public PlotOrientation getOrientation()(Code)
Returns the orientation of the plot. The orientation (always PlotOrientation.VERTICAL).



getPaint
public Paint getPaint()(Code)
Returns the paint used to plot data points. The default is Color.red. The paint.
See Also:   FastScatterPlot.setPaint(Paint)



getPlotType
public String getPlotType()(Code)
Returns a short string describing the plot type. A short string describing the plot type.



getRangeAxis
public ValueAxis getRangeAxis()(Code)
Returns the range axis for the plot. The range axis (never null).
See Also:   FastScatterPlot.setRangeAxis(ValueAxis)



getRangeGridlinePaint
public Paint getRangeGridlinePaint()(Code)
Returns the paint for the grid lines (if any) plotted against the range axis. The paint (never null).
See Also:   FastScatterPlot.setRangeGridlinePaint(Paint)



getRangeGridlineStroke
public Stroke getRangeGridlineStroke()(Code)
Returns the stroke for the grid lines (if any) plotted against the range axis. The stroke (never null).
See Also:   FastScatterPlot.setRangeGridlineStroke(Stroke)



isDomainGridlinesVisible
public boolean isDomainGridlinesVisible()(Code)
Returns true if the domain gridlines are visible, and false otherwise. true or false.
See Also:   FastScatterPlot.setDomainGridlinesVisible(boolean)
See Also:   FastScatterPlot.setDomainGridlinePaint(Paint)



isDomainZoomable
public boolean isDomainZoomable()(Code)
Returns true. A boolean.



isRangeGridlinesVisible
public boolean isRangeGridlinesVisible()(Code)
Returns true if the range axis grid is visible, and false otherwise. true or false.
See Also:   FastScatterPlot.setRangeGridlinesVisible(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 (nullpermitted).



setData
public void setData(float[][] data)(Code)
Sets the data array used by the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  data - the data array (null permitted).
See Also:   FastScatterPlot.getData()



setDomainAxis
public void setDomainAxis(ValueAxis axis)(Code)
Sets the domain axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  axis - the axis (null not permitted).
since:
   1.0.3
See Also:   FastScatterPlot.getDomainAxis()



setDomainGridlinePaint
public void setDomainGridlinePaint(Paint paint)(Code)
Sets the paint for the grid lines plotted against the domain axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   FastScatterPlot.getDomainGridlinePaint()



setDomainGridlineStroke
public void setDomainGridlineStroke(Stroke stroke)(Code)
Sets the stroke for the grid lines plotted against the domain axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   FastScatterPlot.getDomainGridlineStroke()



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()



setPaint
public void setPaint(Paint paint)(Code)
Sets the color for the data points and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   FastScatterPlot.getPaint()



setRangeAxis
public void setRangeAxis(ValueAxis axis)(Code)
Sets the range axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  axis - the axis (null not permitted).
since:
   1.0.3
See Also:   FastScatterPlot.getRangeAxis()



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:   FastScatterPlot.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 permitted).
See Also:   FastScatterPlot.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:   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.



Fields inherited from org.jfree.chart.plot.Plot
final public static float DEFAULT_BACKGROUND_ALPHA(Code)(Java Doc)
final public static Paint DEFAULT_BACKGROUND_PAINT(Code)(Java Doc)
final public static float DEFAULT_FOREGROUND_ALPHA(Code)(Java Doc)
final public static RectangleInsets DEFAULT_INSETS(Code)(Java Doc)
final public static Shape DEFAULT_LEGEND_ITEM_BOX(Code)(Java Doc)
final public static Shape DEFAULT_LEGEND_ITEM_CIRCLE(Code)(Java Doc)
final public static Paint DEFAULT_OUTLINE_PAINT(Code)(Java Doc)
final public static Stroke DEFAULT_OUTLINE_STROKE(Code)(Java Doc)
final public static int MINIMUM_HEIGHT_TO_DRAW(Code)(Java Doc)
final public static int MINIMUM_WIDTH_TO_DRAW(Code)(Java Doc)
final public static Number ZERO(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.