Java Doc for DialPlot.java in  » Chart » jfreechart » org » jfree » experimental » chart » plot » dial » 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.experimental.chart.plot.dial 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.chart.plot.Plot
      org.jfree.experimental.chart.plot.dial.DialPlot

DialPlot
public class DialPlot extends Plot implements DialLayerChangeListener(Code)
A dial plot.



Constructor Summary
public  DialPlot()
     Creates a new instance of DialPlot.

Method Summary
public  voidaddLayer(DialLayer layer)
     Adds a layer to the plot.
public  voidaddScale(int index, DialScale scale)
     Adds a dial scale to the plot.
public  voiddialLayerChanged(DialLayerChangeEvent event)
     Receives notification when a layer has changed.
public  voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
     Draws the plot.
public  booleanequals(Object obj)
     Tests this DialPlot instance for equality with an arbitrary object.
public  DialLayergetBackground()
     Returns the background.
public  DialLayergetCap()
     Returns the cap.
public  ValueDatasetgetDataset()
     Returns the primary dataset for the plot.
public  ValueDatasetgetDataset(int index)
     Returns the dataset at the given index.
Parameters:
  index - the dataset index.
public  intgetDatasetCount()
     Returns the number of datasets.
public  DialFramegetDialFrame()
     Returns the dial's frame.
public  StringgetPlotType()
     Returns the plot type.
public  DialScalegetScale(int index)
     Returns the scale at the given index.
Parameters:
  index - the scale index.
public  DialScalegetScaleForDataset(int datasetIndex)
     Returns the dial scale for a specific dataset.
Parameters:
  datasetIndex - the dataset index.
public  doublegetValue(int datasetIndex)
     Returns the value from the specified dataset.
Parameters:
  datasetIndex - the dataset index.
public  doublegetViewHeight()
     Returns the height of the viewing rectangle.
public  doublegetViewWidth()
     Returns the width of the viewing rectangle.
public  doublegetViewX()
     Returns the x-coordinate of the viewing rectangle.
public  doublegetViewY()
     Returns the y-coordinate of the viewing rectangle.
public  inthashCode()
     Returns a hash code for this instance.
public  voidmapDatasetToScale(int index, int scaleIndex)
     Maps a dataset to a particular scale.
public static  Rectangle2DrectangleByRadius(Rectangle2D rect, double radiusW, double radiusH)
     A utility method that computes a rectangle using relative radius values.
Parameters:
  rect - the reference rectangle.
Parameters:
  radiusW - the width radius (must be > 0.0)
Parameters:
  radiusH - the height radius.
public  voidsetBackground(DialLayer background)
     Sets the background layer.
public  voidsetCap(DialLayer cap)
     Sets the cap.
public  voidsetDataset(ValueDataset dataset)
     Sets the dataset for the plot, replacing the existing dataset, if there is one, and sends a PlotChangeEvent to all registered listeners.
public  voidsetDataset(int index, ValueDataset dataset)
     Sets a dataset for the plot.
public  voidsetDialFrame(DialFrame frame)
     Sets the dial's frame.
public  voidsetView(double x, double y, double w, double h)
     Sets the viewing rectangle, relative to the dial's framing rectangle.


Constructor Detail
DialPlot
public DialPlot()(Code)
Creates a new instance of DialPlot.




Method Detail
addLayer
public void addLayer(DialLayer layer)(Code)
Adds a layer to the plot.
Parameters:
  layer - the layer (null not permitted).



addScale
public void addScale(int index, DialScale scale)(Code)
Adds a dial scale to the plot.
Parameters:
  index - the scale index.
Parameters:
  scale - the scale.



dialLayerChanged
public void dialLayerChanged(DialLayerChangeEvent event)(Code)
Receives notification when a layer has changed.
Parameters:
  event - the event.



draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)
Draws the plot. This method is usually called by the JFreeChart instance that manages the plot.
Parameters:
  g2 - the graphics target.
Parameters:
  area - the area in which the plot should be drawn.
Parameters:
  anchor - the anchor point (typically the last point that the mouse clicked on, null is permitted).
Parameters:
  parentState - the state for the parent plot (if any).
Parameters:
  info - used to collect plot rendering info (null permitted).



equals
public boolean equals(Object obj)(Code)
Tests this DialPlot instance for equality with an arbitrary object. The plot's dataset(s) is (are) not included in the test.
Parameters:
  obj - the object (null permitted). A boolean.



getBackground
public DialLayer getBackground()(Code)
Returns the background. The background (possibly null).
See Also:   DialPlot.setBackground(DialLayer)



getCap
public DialLayer getCap()(Code)
Returns the cap. The cap (possibly null).
See Also:   DialPlot.setCap(DialLayer)



getDataset
public ValueDataset getDataset()(Code)
Returns the primary dataset for the plot. The primary dataset (possibly null).



getDataset
public ValueDataset getDataset(int index)(Code)
Returns the dataset at the given index.
Parameters:
  index - the dataset index. The dataset (possibly null).



getDatasetCount
public int getDatasetCount()(Code)
Returns the number of datasets. The number of datasets.



getDialFrame
public DialFrame getDialFrame()(Code)
Returns the dial's frame. The dial's frame (never null).
See Also:   DialPlot.setDialFrame(DialFrame)



getPlotType
public String getPlotType()(Code)
Returns the plot type. "DialPlot"



getScale
public DialScale getScale(int index)(Code)
Returns the scale at the given index.
Parameters:
  index - the scale index. The scale (possibly null).



getScaleForDataset
public DialScale getScaleForDataset(int datasetIndex)(Code)
Returns the dial scale for a specific dataset.
Parameters:
  datasetIndex - the dataset index. The dial scale.



getValue
public double getValue(int datasetIndex)(Code)
Returns the value from the specified dataset.
Parameters:
  datasetIndex - the dataset index. The data value.



getViewHeight
public double getViewHeight()(Code)
Returns the height of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle. The height of the viewing rectangle.
See Also:   DialPlot.setView(double,double,double,double)



getViewWidth
public double getViewWidth()(Code)
Returns the width of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle. The width of the viewing rectangle.
See Also:   DialPlot.setView(double,double,double,double)



getViewX
public double getViewX()(Code)
Returns the x-coordinate of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle. The x-coordinate of the viewing rectangle.
See Also:   DialPlot.setView(double,double,double,double)



getViewY
public double getViewY()(Code)
Returns the y-coordinate of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle. The y-coordinate of the viewing rectangle.
See Also:   DialPlot.setView(double,double,double,double)



hashCode
public int hashCode()(Code)
Returns a hash code for this instance. The hash code.



mapDatasetToScale
public void mapDatasetToScale(int index, int scaleIndex)(Code)
Maps a dataset to a particular scale.
Parameters:
  index - the dataset index (zero-based).
Parameters:
  scaleIndex - the scale index (zero-based).



rectangleByRadius
public static Rectangle2D rectangleByRadius(Rectangle2D rect, double radiusW, double radiusH)(Code)
A utility method that computes a rectangle using relative radius values.
Parameters:
  rect - the reference rectangle.
Parameters:
  radiusW - the width radius (must be > 0.0)
Parameters:
  radiusH - the height radius. A new rectangle.



setBackground
public void setBackground(DialLayer background)(Code)
Sets the background layer.
Parameters:
  background - the background layer (null permitted).
See Also:   DialPlot.getBackground()



setCap
public void setCap(DialLayer cap)(Code)
Sets the cap.
Parameters:
  cap - the cap (null permitted).
See Also:   DialPlot.getCap()



setDataset
public void setDataset(ValueDataset dataset)(Code)
Sets the dataset for the plot, replacing the existing dataset, if there is one, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  dataset - the dataset (null permitted).



setDataset
public void setDataset(int index, ValueDataset dataset)(Code)
Sets a dataset for the plot.
Parameters:
  index - the dataset index.
Parameters:
  dataset - the dataset (null permitted).



setDialFrame
public void setDialFrame(DialFrame frame)(Code)
Sets the dial's frame.
Parameters:
  frame - the frame (null not permitted).
See Also:   DialPlot.getDialFrame()



setView
public void setView(double x, double y, double w, double h)(Code)
Sets the viewing rectangle, relative to the dial's framing rectangle.
Parameters:
  x - the x-coordinate (in the range 0.0 to 1.0).
Parameters:
  y - the y-coordinate (in the range 0.0 to 1.0).
Parameters:
  w - the width (in the range 0.0 to 1.0).
Parameters:
  h - the height (in the range 0.0 to 1.0).
See Also:   DialPlot.getViewX()
See Also:   DialPlot.getViewY()
See Also:   DialPlot.getViewWidth()
See Also:   DialPlot.getViewHeight()



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.