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

All known Subclasses:   org.jfree.chart.plot.ThermometerPlot,  org.jfree.chart.plot.FastScatterPlot,  org.jfree.chart.plot.CategoryPlot,  org.jfree.chart.plot.MeterPlot,  org.jfree.chart.plot.PiePlot,  org.jfree.chart.plot.CompassPlot,  org.jfree.chart.plot.XYPlot,  org.jfree.experimental.chart.plot.dial.DialPlot,  org.jfree.chart.plot.PolarPlot,  org.jfree.chart.plot.MultiplePiePlot,  org.jfree.chart.plot.SpiderWebPlot,  org.jfree.chart.plot.WaferMapPlot,  org.jfree.chart.plot.ContourPlot,
Plot
abstract public class Plot implements AxisChangeListener,DatasetChangeListener,MarkerChangeListener,LegendItemSource,PublicCloneable,Cloneable,Serializable(Code)
The base class for all plots in JFreeChart. The org.jfree.chart.JFreeChart class delegates the drawing of axes and data to the plot. This base class provides facilities common to most plot types.


Field Summary
final public static  floatDEFAULT_BACKGROUND_ALPHA
     The default background alpha transparency.
final public static  PaintDEFAULT_BACKGROUND_PAINT
     The default background color.
final public static  floatDEFAULT_FOREGROUND_ALPHA
     The default foreground alpha transparency.
final public static  RectangleInsetsDEFAULT_INSETS
     The default insets.
final public static  ShapeDEFAULT_LEGEND_ITEM_BOX
     A default box shape for legend items.
final public static  ShapeDEFAULT_LEGEND_ITEM_CIRCLE
     A default circle shape for legend items.
final public static  PaintDEFAULT_OUTLINE_PAINT
     The default outline color.
final public static  StrokeDEFAULT_OUTLINE_STROKE
     The default outline stroke.
final public static  intMINIMUM_HEIGHT_TO_DRAW
     The minimum height at which the plot should be drawn.
final public static  intMINIMUM_WIDTH_TO_DRAW
     The minimum width at which the plot should be drawn.
final public static  NumberZERO
     Useful constant representing zero.

Constructor Summary
protected  Plot()
     Creates a new plot.

Method Summary
public  voidaddChangeListener(PlotChangeListener listener)
     Registers an object for notification of changes to the plot.
public  voidaxisChanged(AxisChangeEvent event)
     Receives notification of a change to one of the plot's axes.
public  Objectclone()
     Creates a clone of the plot.
public  voiddatasetChanged(DatasetChangeEvent event)
     Receives notification of a change to the plot's dataset.
abstract public  voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
     Draws the plot within the specified area.
public  voiddrawBackground(Graphics2D g2, Rectangle2D area)
     Draws the plot background (the background color and/or image).

This method will be called during the chart drawing process and is declared public so that it can be accessed by the renderers used by certain subclasses.

public  voiddrawBackgroundImage(Graphics2D g2, Rectangle2D area)
     Draws the background image (if there is one) aligned within the specified area.
protected  voiddrawNoDataMessage(Graphics2D g2, Rectangle2D area)
     Draws a message to state that there is no data to plot.
public  voiddrawOutline(Graphics2D g2, Rectangle2D area)
     Draws the plot outline.
public  booleanequals(Object obj)
     Tests this plot for equality with another object.
Parameters:
  obj - the object (null permitted).
protected  voidfillBackground(Graphics2D g2, Rectangle2D area)
     Fills the specified area with the background paint.
protected  voidfillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)
     Fills the specified area with the background paint.
public  floatgetBackgroundAlpha()
     Returns the alpha transparency of the plot area background.
public  ImagegetBackgroundImage()
     Returns the background image that is used to fill the plot's background area.
public  intgetBackgroundImageAlignment()
     Returns the background image alignment.
public  floatgetBackgroundImageAlpha()
     Returns the alpha transparency used to draw the background image.
public  PaintgetBackgroundPaint()
     Returns the background color of the plot area.
public  DatasetGroupgetDatasetGroup()
     Returns the dataset group for the plot (not currently used).
public  DrawingSuppliergetDrawingSupplier()
     Returns the drawing supplier for the plot.
public  floatgetForegroundAlpha()
     Returns the alpha-transparency for the plot foreground.
public  RectangleInsetsgetInsets()
     Returns the insets for the plot area.
public  LegendItemCollectiongetLegendItems()
     Returns the legend items for the plot.
public  StringgetNoDataMessage()
     Returns the string that is displayed when the dataset is empty or null.
public  FontgetNoDataMessageFont()
     Returns the font used to display the 'no data' message.
public  PaintgetNoDataMessagePaint()
     Returns the paint used to display the 'no data' message.
public  PaintgetOutlinePaint()
     Returns the color used to draw the outline of the plot area.
public  StrokegetOutlineStroke()
     Returns the stroke used to outline the plot area.
public  PlotgetParent()
     Returns the parent plot (or null if this plot is not part of a combined plot).
abstract public  StringgetPlotType()
     Returns a short string describing the plot type.
protected  doublegetRectX(double x, double w1, double w2, RectangleEdge edge)
     Adjusts the supplied x-value.
Parameters:
  x - the x-value.
Parameters:
  w1 - width 1.
Parameters:
  w2 - width 2.
Parameters:
  edge - the edge (left or right).
protected  doublegetRectY(double y, double h1, double h2, RectangleEdge edge)
     Adjusts the supplied y-value.
Parameters:
  y - the x-value.
Parameters:
  h1 - height 1.
Parameters:
  h2 - height 2.
Parameters:
  edge - the edge (top or bottom).
public  PlotgetRootPlot()
     Returns the root plot.
public  voidhandleClick(int x, int y, PlotRenderingInfo info)
     Handles a 'click' on the plot.
public  booleanisOutlineVisible()
     Returns the flag that controls whether or not the plot outline is drawn.
public  booleanisSubplot()
     Returns true if this plot is part of a combined plot structure (that is, Plot.getParent() returns a non-null value), and false otherwise.
public  voidmarkerChanged(MarkerChangeEvent event)
     Receives notification of a change to a marker that is assigned to the plot.
public  voidnotifyListeners(PlotChangeEvent event)
     Notifies all registered listeners that the plot has been modified.
public  voidremoveChangeListener(PlotChangeListener listener)
     Unregisters an object for notification of changes to the plot.
public static  RectangleEdgeresolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)
     Resolves a domain axis location for a given plot orientation.
Parameters:
  location - the location (null not permitted).
Parameters:
  orientation - the orientation (null not permitted).
public static  RectangleEdgeresolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)
     Resolves a range axis location for a given plot orientation.
Parameters:
  location - the location (null not permitted).
Parameters:
  orientation - the orientation (null not permitted).
public  voidsetBackgroundAlpha(float alpha)
     Sets the alpha transparency of the plot area background, and notifies registered listeners that the plot has been modified.
public  voidsetBackgroundImage(Image image)
     Sets the background image for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetBackgroundImageAlignment(int alignment)
     Sets the alignment for the background image and sends a PlotChangeEvent to all registered listeners.
public  voidsetBackgroundImageAlpha(float alpha)
     Sets the alpha transparency used when drawing the background image.
public  voidsetBackgroundPaint(Paint paint)
     Sets the background color of the plot area and sends a PlotChangeEvent to all registered listeners.
protected  voidsetDatasetGroup(DatasetGroup group)
     Sets the dataset group (not currently used).
public  voidsetDrawingSupplier(DrawingSupplier supplier)
     Sets the drawing supplier for the plot.
public  voidsetForegroundAlpha(float alpha)
     Sets the alpha-transparency for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetInsets(RectangleInsets insets)
     Sets the insets for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetInsets(RectangleInsets insets, boolean notify)
     Sets the insets for the plot and, if requested, and sends a PlotChangeEvent to all registered listeners.
public  voidsetNoDataMessage(String message)
     Sets the message that is displayed when the dataset is empty or null, and sends a PlotChangeEvent to all registered listeners.
public  voidsetNoDataMessageFont(Font font)
     Sets the font used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners.
public  voidsetNoDataMessagePaint(Paint paint)
     Sets the paint used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners.
public  voidsetOutlinePaint(Paint paint)
     Sets the paint used to draw the outline of the plot area and sends a PlotChangeEvent to all registered listeners.
public  voidsetOutlineStroke(Stroke stroke)
     Sets the stroke used to outline the plot area and sends a PlotChangeEvent to all registered listeners.
public  voidsetOutlineVisible(boolean visible)
     Sets the flag that controls whether or not the plot's outline is drawn, and sends a PlotChangeEvent to all registered listeners.
public  voidsetParent(Plot parent)
     Sets the parent plot.
public  voidzoom(double percent)
     Performs a zoom on the plot.

Field Detail
DEFAULT_BACKGROUND_ALPHA
final public static float DEFAULT_BACKGROUND_ALPHA(Code)
The default background alpha transparency.



DEFAULT_BACKGROUND_PAINT
final public static Paint DEFAULT_BACKGROUND_PAINT(Code)
The default background color.



DEFAULT_FOREGROUND_ALPHA
final public static float DEFAULT_FOREGROUND_ALPHA(Code)
The default foreground alpha transparency.



DEFAULT_INSETS
final public static RectangleInsets DEFAULT_INSETS(Code)
The default insets.



DEFAULT_LEGEND_ITEM_BOX
final public static Shape DEFAULT_LEGEND_ITEM_BOX(Code)
A default box shape for legend items.



DEFAULT_LEGEND_ITEM_CIRCLE
final public static Shape DEFAULT_LEGEND_ITEM_CIRCLE(Code)
A default circle shape for legend items.



DEFAULT_OUTLINE_PAINT
final public static Paint DEFAULT_OUTLINE_PAINT(Code)
The default outline color.



DEFAULT_OUTLINE_STROKE
final public static Stroke DEFAULT_OUTLINE_STROKE(Code)
The default outline stroke.



MINIMUM_HEIGHT_TO_DRAW
final public static int MINIMUM_HEIGHT_TO_DRAW(Code)
The minimum height at which the plot should be drawn.



MINIMUM_WIDTH_TO_DRAW
final public static int MINIMUM_WIDTH_TO_DRAW(Code)
The minimum width at which the plot should be drawn.



ZERO
final public static Number ZERO(Code)
Useful constant representing zero.




Constructor Detail
Plot
protected Plot()(Code)
Creates a new plot.




Method Detail
addChangeListener
public void addChangeListener(PlotChangeListener listener)(Code)
Registers an object for notification of changes to the plot.
Parameters:
  listener - the object to be registered.
See Also:   Plot.removeChangeListener(PlotChangeListener)



axisChanged
public void axisChanged(AxisChangeEvent event)(Code)
Receives notification of a change to one of the plot's axes.
Parameters:
  event - information about the event (not used here).



clone
public Object clone() throws CloneNotSupportedException(Code)
Creates a clone of the plot. A clone.
throws:
  CloneNotSupportedException - if some component of the plot does notsupport cloning.



datasetChanged
public void datasetChanged(DatasetChangeEvent event)(Code)
Receives notification of a change to the plot's dataset.

The plot reacts by passing on a plot change event to all registered listeners.
Parameters:
  event - information about the event (not used here).




draw
abstract public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)
Draws the plot within the specified area. The anchor is a point on the chart that is specified externally (for instance, it may be the last point of the last mouse click performed by the user) - plots can use or ignore this value as they see fit.

Subclasses need to provide an implementation of this method, obviously.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the plot area.
Parameters:
  anchor - the anchor point (null permitted).
Parameters:
  parentState - the parent state (if any).
Parameters:
  info - carries back plot rendering info.



drawBackground
public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)
Draws the plot background (the background color and/or image).

This method will be called during the chart drawing process and is declared public so that it can be accessed by the renderers used by certain subclasses. You shouldn't need to call this method directly.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area within which the plot should be drawn.




drawBackgroundImage
public void drawBackgroundImage(Graphics2D g2, Rectangle2D area)(Code)
Draws the background image (if there is one) aligned within the specified area.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area.
See Also:   Plot.getBackgroundImage()
See Also:   Plot.getBackgroundImageAlignment()
See Also:   Plot.getBackgroundImageAlpha()



drawNoDataMessage
protected void drawNoDataMessage(Graphics2D g2, Rectangle2D area)(Code)
Draws a message to state that there is no data to plot.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area within which the plot should be drawn.



drawOutline
public void drawOutline(Graphics2D g2, Rectangle2D area)(Code)
Draws the plot outline. This method will be called during the chart drawing process and is declared public so that it can be accessed by the renderers used by certain subclasses. You shouldn't need to call this method directly.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area within which the plot should be drawn.



equals
public boolean equals(Object obj)(Code)
Tests this plot for equality with another object.
Parameters:
  obj - the object (null permitted). true or false.



fillBackground
protected void fillBackground(Graphics2D g2, Rectangle2D area)(Code)
Fills the specified area with the background paint.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area.
See Also:   Plot.getBackgroundPaint()
See Also:   Plot.getBackgroundAlpha()
See Also:   Plot.fillBackground(Graphics2D,Rectangle2D,PlotOrientation)



fillBackground
protected void fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)(Code)
Fills the specified area with the background paint. If the background paint is an instance of GradientPaint, the gradient will run in the direction suggested by the plot's orientation.
Parameters:
  g2 - the graphics target.
Parameters:
  area - the plot area.
Parameters:
  orientation - the plot orientation (null not permitted).
since:
   1.0.6



getBackgroundAlpha
public float getBackgroundAlpha()(Code)
Returns the alpha transparency of the plot area background. The alpha transparency.
See Also:   Plot.setBackgroundAlpha(float)



getBackgroundImage
public Image getBackgroundImage()(Code)
Returns the background image that is used to fill the plot's background area. The image (possibly null).
See Also:   Plot.setBackgroundImage(Image)



getBackgroundImageAlignment
public int getBackgroundImageAlignment()(Code)
Returns the background image alignment. Alignment constants are defined in the org.jfree.ui.Align class in the JCommon class library. The alignment.
See Also:   Plot.setBackgroundImageAlignment(int)



getBackgroundImageAlpha
public float getBackgroundImageAlpha()(Code)
Returns the alpha transparency used to draw the background image. This is a value in the range 0.0f to 1.0f, where 0.0f is fully transparent and 1.0f is fully opaque. The alpha transparency.
See Also:   Plot.setBackgroundImageAlpha(float)



getBackgroundPaint
public Paint getBackgroundPaint()(Code)
Returns the background color of the plot area. The paint (possibly null).
See Also:   Plot.setBackgroundPaint(Paint)



getDatasetGroup
public DatasetGroup getDatasetGroup()(Code)
Returns the dataset group for the plot (not currently used). The dataset group.
See Also:   Plot.setDatasetGroup(DatasetGroup)



getDrawingSupplier
public DrawingSupplier getDrawingSupplier()(Code)
Returns the drawing supplier for the plot. The drawing supplier (possibly null).
See Also:   Plot.setDrawingSupplier(DrawingSupplier)



getForegroundAlpha
public float getForegroundAlpha()(Code)
Returns the alpha-transparency for the plot foreground. The alpha-transparency.
See Also:   Plot.setForegroundAlpha(float)



getInsets
public RectangleInsets getInsets()(Code)
Returns the insets for the plot area. The insets (never null).
See Also:   Plot.setInsets(RectangleInsets)



getLegendItems
public LegendItemCollection getLegendItems()(Code)
Returns the legend items for the plot. By default, this method returns null. Subclasses should override to return a LegendItemCollection . The legend items for the plot (possibly null).



getNoDataMessage
public String getNoDataMessage()(Code)
Returns the string that is displayed when the dataset is empty or null. The 'no data' message (null possible).
See Also:   Plot.setNoDataMessage(String)
See Also:   Plot.getNoDataMessageFont()
See Also:   Plot.getNoDataMessagePaint()



getNoDataMessageFont
public Font getNoDataMessageFont()(Code)
Returns the font used to display the 'no data' message. The font (never null).
See Also:   Plot.setNoDataMessageFont(Font)
See Also:   Plot.getNoDataMessage()



getNoDataMessagePaint
public Paint getNoDataMessagePaint()(Code)
Returns the paint used to display the 'no data' message. The paint (never null).
See Also:   Plot.setNoDataMessagePaint(Paint)
See Also:   Plot.getNoDataMessage()



getOutlinePaint
public Paint getOutlinePaint()(Code)
Returns the color used to draw the outline of the plot area. The color (possibly null).
See Also:   Plot.setOutlinePaint(Paint)



getOutlineStroke
public Stroke getOutlineStroke()(Code)
Returns the stroke used to outline the plot area. The stroke (possibly null).
See Also:   Plot.setOutlineStroke(Stroke)



getParent
public Plot getParent()(Code)
Returns the parent plot (or null if this plot is not part of a combined plot). The parent plot.
See Also:   Plot.setParent(Plot)
See Also:   Plot.getRootPlot()



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

Note: this gets used in the chart property editing user interface, but there needs to be a better mechanism for identifying the plot type. A short string describing the plot type (never null).




getRectX
protected double getRectX(double x, double w1, double w2, RectangleEdge edge)(Code)
Adjusts the supplied x-value.
Parameters:
  x - the x-value.
Parameters:
  w1 - width 1.
Parameters:
  w2 - width 2.
Parameters:
  edge - the edge (left or right). The adjusted x-value.



getRectY
protected double getRectY(double y, double h1, double h2, RectangleEdge edge)(Code)
Adjusts the supplied y-value.
Parameters:
  y - the x-value.
Parameters:
  h1 - height 1.
Parameters:
  h2 - height 2.
Parameters:
  edge - the edge (top or bottom). The adjusted y-value.



getRootPlot
public Plot getRootPlot()(Code)
Returns the root plot. The root plot.
See Also:   Plot.getParent()



handleClick
public void handleClick(int x, int y, PlotRenderingInfo info)(Code)
Handles a 'click' on the plot. Since the plot does not maintain any information about where it has been drawn, the plot rendering info is supplied as an argument.
Parameters:
  x - the x coordinate (in Java2D space).
Parameters:
  y - the y coordinate (in Java2D space).
Parameters:
  info - an object containing information about the dimensions of the plot.



isOutlineVisible
public boolean isOutlineVisible()(Code)
Returns the flag that controls whether or not the plot outline is drawn. The default value is true. Note that for historical reasons, the plot's outline paint and stroke can take on null values, in which case the outline will not be drawn even if this flag is set to true. The outline visibility flag.
since:
   1.0.6
See Also:   Plot.setOutlineVisible(boolean)



isSubplot
public boolean isSubplot()(Code)
Returns true if this plot is part of a combined plot structure (that is, Plot.getParent() returns a non-null value), and false otherwise. true if this plot is part of a combined plot structure.
See Also:   Plot.getParent()



markerChanged
public void markerChanged(MarkerChangeEvent event)(Code)
Receives notification of a change to a marker that is assigned to the plot.
Parameters:
  event - the event.
since:
   1.0.3



notifyListeners
public void notifyListeners(PlotChangeEvent event)(Code)
Notifies all registered listeners that the plot has been modified.
Parameters:
  event - information about the change event.



removeChangeListener
public void removeChangeListener(PlotChangeListener listener)(Code)
Unregisters an object for notification of changes to the plot.
Parameters:
  listener - the object to be unregistered.
See Also:   Plot.addChangeListener(PlotChangeListener)



resolveDomainAxisLocation
public static RectangleEdge resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)
Resolves a domain axis location for a given plot orientation.
Parameters:
  location - the location (null not permitted).
Parameters:
  orientation - the orientation (null not permitted). The edge (never null).



resolveRangeAxisLocation
public static RectangleEdge resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)
Resolves a range axis location for a given plot orientation.
Parameters:
  location - the location (null not permitted).
Parameters:
  orientation - the orientation (null not permitted). The edge (never null).



setBackgroundAlpha
public void setBackgroundAlpha(float alpha)(Code)
Sets the alpha transparency of the plot area background, and notifies registered listeners that the plot has been modified.
Parameters:
  alpha - the new alpha value (in the range 0.0f to 1.0f).
See Also:   Plot.getBackgroundAlpha()



setBackgroundImage
public void setBackgroundImage(Image image)(Code)
Sets the background image for the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  image - the image (null permitted).
See Also:   Plot.getBackgroundImage()



setBackgroundImageAlignment
public void setBackgroundImageAlignment(int alignment)(Code)
Sets the alignment for the background image and sends a PlotChangeEvent to all registered listeners. Alignment options are defined by the org.jfree.ui.Align class in the JCommon class library.
Parameters:
  alignment - the alignment.
See Also:   Plot.getBackgroundImageAlignment()



setBackgroundImageAlpha
public void setBackgroundImageAlpha(float alpha)(Code)
Sets the alpha transparency used when drawing the background image.
Parameters:
  alpha - the alpha transparency (in the range 0.0f to 1.0f, where0.0f is fully transparent, and 1.0f is fully opaque).
throws:
  IllegalArgumentException - if alpha is not withinthe specified range.
See Also:   Plot.getBackgroundImageAlpha()



setBackgroundPaint
public void setBackgroundPaint(Paint paint)(Code)
Sets the background color of the plot area and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null permitted).
See Also:   Plot.getBackgroundPaint()



setDatasetGroup
protected void setDatasetGroup(DatasetGroup group)(Code)
Sets the dataset group (not currently used).
Parameters:
  group - the dataset group (null permitted).
See Also:   Plot.getDatasetGroup()



setDrawingSupplier
public void setDrawingSupplier(DrawingSupplier supplier)(Code)
Sets the drawing supplier for the plot. The drawing supplier is responsible for supplying a limitless (possibly repeating) sequence of Paint, Stroke and Shape objects that the plot's renderer(s) can use to populate its (their) tables.
Parameters:
  supplier - the new supplier.
See Also:   Plot.getDrawingSupplier()



setForegroundAlpha
public void setForegroundAlpha(float alpha)(Code)
Sets the alpha-transparency for the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  alpha - the new alpha transparency.
See Also:   Plot.getForegroundAlpha()



setInsets
public void setInsets(RectangleInsets insets)(Code)
Sets the insets for the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  insets - the new insets (null not permitted).
See Also:   Plot.getInsets()
See Also:   Plot.setInsets(RectangleInsets,boolean)



setInsets
public void setInsets(RectangleInsets insets, boolean notify)(Code)
Sets the insets for the plot and, if requested, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  insets - the new insets (null not permitted).
Parameters:
  notify - a flag that controls whether the registered listeners arenotified.
See Also:   Plot.getInsets()
See Also:   Plot.setInsets(RectangleInsets)



setNoDataMessage
public void setNoDataMessage(String message)(Code)
Sets the message that is displayed when the dataset is empty or null, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  message - the message (null permitted).
See Also:   Plot.getNoDataMessage()



setNoDataMessageFont
public void setNoDataMessageFont(Font font)(Code)
Sets the font used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners.
Parameters:
  font - the font (null not permitted).
See Also:   Plot.getNoDataMessageFont()



setNoDataMessagePaint
public void setNoDataMessagePaint(Paint paint)(Code)
Sets the paint used to display the 'no data' message and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   Plot.getNoDataMessagePaint()



setOutlinePaint
public void setOutlinePaint(Paint paint)(Code)
Sets the paint used to draw the outline of the plot area and sends a PlotChangeEvent to all registered listeners. If you set this attribute to null, no outline will be drawn.
Parameters:
  paint - the paint (null permitted).
See Also:   Plot.getOutlinePaint()



setOutlineStroke
public void setOutlineStroke(Stroke stroke)(Code)
Sets the stroke used to outline the plot area and sends a PlotChangeEvent to all registered listeners. If you set this attribute to null, no outline will be drawn.
Parameters:
  stroke - the stroke (null permitted).
See Also:   Plot.getOutlineStroke()



setOutlineVisible
public void setOutlineVisible(boolean visible)(Code)
Sets the flag that controls whether or not the plot's outline is drawn, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  visible - the new flag value.
since:
   1.0.6
See Also:   Plot.isOutlineVisible()



setParent
public void setParent(Plot parent)(Code)
Sets the parent plot. This method is intended for internal use, you shouldn't need to call it directly.
Parameters:
  parent - the parent plot (null permitted).
See Also:   Plot.getParent()



zoom
public void zoom(double percent)(Code)
Performs a zoom on the plot. Subclasses should override if zooming is appropriate for the type of plot.
Parameters:
  percent - the zoom percentage.



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.