Java Doc for CompassPlot.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.CompassPlot

CompassPlot
public class CompassPlot extends Plot implements Cloneable,Serializable(Code)
A specialised plot that draws a compass to indicate a direction based on the value from a ValueDataset .


Field Summary
final public static  FontDEFAULT_LABEL_FONT
     The default label font.
final public static  intNO_LABELS
     A constant for the label type.
final public static  intVALUE_LABELS
     A constant for the label type.
protected static  ResourceBundlelocalizationResources
     The resourceBundle for the localization.
protected  doublerevolutionDistance
     The count to complete one revolution.

Constructor Summary
public  CompassPlot()
     Default constructor.
public  CompassPlot(ValueDataset dataset)
     Constructs a new compass plot.

Method Summary
public  voidaddDataset(ValueDataset dataset)
     Adds a dataset to the compass.
public  voidaddDataset(ValueDataset dataset, MeterNeedle needle)
     Adds a dataset to the compass.
public  Objectclone()
     Returns a clone of the plot.
public  voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
     Draws the plot on a Java 2D graphics device (such as the screen or a printer).
public  booleanequals(Object obj)
     Tests an object for equality with this plot.
Parameters:
  obj - the object (null permitted).
protected  FontgetCompassFont(int radius)
     Returns the font for the compass, adjusted for the size of the plot.
Parameters:
  radius - the radius.
public  ValueDataset[]getDatasets()
     Returns an array of dataset references for the plot.
public  booleangetDrawBorder()
     Returns a flag that controls whether or not a border is drawn.
public  FontgetLabelFont()
     Returns the label font.
public  intgetLabelType()
     Returns the label type.
public  LegendItemCollectiongetLegendItems()
     Returns the legend items for the plot.
public  StringgetPlotType()
     Returns a short string describing the type of plot.
public  doublegetRevolutionDistance()
     Gets the count to complete one revolution.
public  PaintgetRoseCenterPaint()
     Returns the paint used to fill the inner background area of the compass.
public  PaintgetRoseHighlightPaint()
     Returns the paint used to draw the circles, symbols and labels on the compass.
public  PaintgetRosePaint()
     Returns the paint used to fill the outer circle of the compass.
public  voidsetDrawBorder(boolean status)
     Sets a flag that controls whether or not a border is drawn.
public  voidsetLabelFont(Font font)
     Sets the label font and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelType(int type)
     Sets the label type (either CompassPlot.NO_LABELS or CompassPlot.VALUE_LABELS .
public  voidsetRevolutionDistance(double size)
     Sets the count to complete one revolution.
public  voidsetRoseCenterPaint(Paint paint)
     Sets the paint used to fill the inner background area of the compass, and sends a PlotChangeEvent to all registered listeners.
public  voidsetRoseHighlightPaint(Paint paint)
     Sets the paint used to draw the circles, symbols and labels of the compass, and sends a PlotChangeEvent to all registered listeners.
public  voidsetRosePaint(Paint paint)
     Sets the paint used to fill the outer circle of the compass, and sends a PlotChangeEvent to all registered listeners.
public  voidsetSeriesNeedle(int type)
     Sets the needle type.
public  voidsetSeriesNeedle(int index, int type)
     Sets the needle for a series.
public  voidsetSeriesNeedle(int index, MeterNeedle needle)
     Sets the needle for a series and sends a PlotChangeEvent to all registered listeners.
public  voidsetSeriesOutlinePaint(int series, Paint p)
     Sets the series outline paint.
public  voidsetSeriesOutlineStroke(int series, Stroke stroke)
     Sets the series outline stroke.
public  voidsetSeriesPaint(int series, Paint paint)
     Sets the series paint.
public  voidzoom(double percent)
     No zooming is implemented for compass plot, so this method is empty.

Field Detail
DEFAULT_LABEL_FONT
final public static Font DEFAULT_LABEL_FONT(Code)
The default label font.



NO_LABELS
final public static int NO_LABELS(Code)
A constant for the label type.



VALUE_LABELS
final public static int VALUE_LABELS(Code)
A constant for the label type.



localizationResources
protected static ResourceBundle localizationResources(Code)
The resourceBundle for the localization.



revolutionDistance
protected double revolutionDistance(Code)
The count to complete one revolution. Can be arbitrarily set For degrees (the default) it is 360, for radians this is 2*Pi, etc




Constructor Detail
CompassPlot
public CompassPlot()(Code)
Default constructor.



CompassPlot
public CompassPlot(ValueDataset dataset)(Code)
Constructs a new compass plot.
Parameters:
  dataset - the dataset for the plot (null permitted).




Method Detail
addDataset
public void addDataset(ValueDataset dataset)(Code)
Adds a dataset to the compass.
Parameters:
  dataset - the new dataset (null ignored).
See Also:   CompassPlot.addDataset(ValueDataset,MeterNeedle)



addDataset
public void addDataset(ValueDataset dataset, MeterNeedle needle)(Code)
Adds a dataset to the compass.
Parameters:
  dataset - the new dataset (null ignored).
Parameters:
  needle - the needle (null permitted).



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the plot. A clone.
throws:
  CloneNotSupportedException - this class will not throw this exception, but subclasses (if any) might.



draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)
Draws the 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 should be drawn.
Parameters:
  anchor - the anchor point (null permitted).
Parameters:
  parentState - the state from the parent plot, if there is one.
Parameters:
  info - collects info about the drawing.



equals
public boolean equals(Object obj)(Code)
Tests an object for equality with this plot.
Parameters:
  obj - the object (null permitted). A boolean.



getCompassFont
protected Font getCompassFont(int radius)(Code)
Returns the font for the compass, adjusted for the size of the plot.
Parameters:
  radius - the radius. The font.



getDatasets
public ValueDataset[] getDatasets()(Code)
Returns an array of dataset references for the plot. The dataset for the plot, cast as a ValueDataset.
See Also:   CompassPlot.addDataset(ValueDataset)



getDrawBorder
public boolean getDrawBorder()(Code)
Returns a flag that controls whether or not a border is drawn. The flag.
See Also:   CompassPlot.setDrawBorder(boolean)



getLabelFont
public Font getLabelFont()(Code)
Returns the label font. The label font.
See Also:   CompassPlot.setLabelFont(Font)



getLabelType
public int getLabelType()(Code)
Returns the label type. Defined by the constants: CompassPlot.NO_LABELS and CompassPlot.VALUE_LABELS . The label type.
See Also:   CompassPlot.setLabelType(int)



getLegendItems
public LegendItemCollection getLegendItems()(Code)
Returns the legend items for the plot. For now, no legend is available - this method returns null. The legend items.



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



getRevolutionDistance
public double getRevolutionDistance()(Code)
Gets the count to complete one revolution. The count to complete one revolution.
See Also:   CompassPlot.setRevolutionDistance(double)



getRoseCenterPaint
public Paint getRoseCenterPaint()(Code)
Returns the paint used to fill the inner background area of the compass. The paint (never null).
See Also:   CompassPlot.setRoseCenterPaint(Paint)



getRoseHighlightPaint
public Paint getRoseHighlightPaint()(Code)
Returns the paint used to draw the circles, symbols and labels on the compass. The paint (never null).
See Also:   CompassPlot.setRoseHighlightPaint(Paint)



getRosePaint
public Paint getRosePaint()(Code)
Returns the paint used to fill the outer circle of the compass. The paint (never null).
See Also:   CompassPlot.setRosePaint(Paint)



setDrawBorder
public void setDrawBorder(boolean status)(Code)
Sets a flag that controls whether or not a border is drawn.
Parameters:
  status - the flag status.
See Also:   CompassPlot.getDrawBorder()



setLabelFont
public void setLabelFont(Font font)(Code)
Sets the label font and sends a PlotChangeEvent to all registered listeners.
Parameters:
  font - the new label font.
See Also:   CompassPlot.getLabelFont()



setLabelType
public void setLabelType(int type)(Code)
Sets the label type (either CompassPlot.NO_LABELS or CompassPlot.VALUE_LABELS .
Parameters:
  type - the type.
See Also:   CompassPlot.getLabelType()



setRevolutionDistance
public void setRevolutionDistance(double size)(Code)
Sets the count to complete one revolution. Can be arbitrarily set For degrees (the default) it is 360, for radians this is 2*Pi, etc
Parameters:
  size - the count to complete one revolution.
See Also:   CompassPlot.getRevolutionDistance()



setRoseCenterPaint
public void setRoseCenterPaint(Paint paint)(Code)
Sets the paint used to fill the inner background area of the compass, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   CompassPlot.getRoseCenterPaint()



setRoseHighlightPaint
public void setRoseHighlightPaint(Paint paint)(Code)
Sets the paint used to draw the circles, symbols and labels of the compass, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   CompassPlot.getRoseHighlightPaint()



setRosePaint
public void setRosePaint(Paint paint)(Code)
Sets the paint used to fill the outer circle of the compass, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   CompassPlot.getRosePaint()



setSeriesNeedle
public void setSeriesNeedle(int type)(Code)
Sets the needle type.
Parameters:
  type - the type.
See Also:   CompassPlot.setSeriesNeedle(int,int)



setSeriesNeedle
public void setSeriesNeedle(int index, int type)(Code)
Sets the needle for a series. The needle type is one of the following:
Parameters:
  index - the series index.
Parameters:
  type - the needle type.
See Also:   CompassPlot.setSeriesNeedle(int)



setSeriesNeedle
public void setSeriesNeedle(int index, MeterNeedle needle)(Code)
Sets the needle for a series and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the series index.
Parameters:
  needle - the needle.



setSeriesOutlinePaint
public void setSeriesOutlinePaint(int series, Paint p)(Code)
Sets the series outline paint.
Parameters:
  series - the series index.
Parameters:
  p - the paint.
See Also:   CompassPlot.setSeriesPaint(int,Paint)



setSeriesOutlineStroke
public void setSeriesOutlineStroke(int series, Stroke stroke)(Code)
Sets the series outline stroke.
Parameters:
  series - the series index.
Parameters:
  stroke - the stroke.
See Also:   CompassPlot.setSeriesOutlinePaint(int,Paint)



setSeriesPaint
public void setSeriesPaint(int series, Paint paint)(Code)
Sets the series paint.
Parameters:
  series - the series index.
Parameters:
  paint - the paint.
See Also:   CompassPlot.setSeriesOutlinePaint(int,Paint)



zoom
public void zoom(double percent)(Code)
No zooming is implemented for compass plot, so this method is empty.
Parameters:
  percent - the zoom amount.



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.