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

ThermometerPlot
public class ThermometerPlot extends Plot implements ValueAxisPlot,Zoomable,Cloneable,Serializable(Code)
A plot that displays a single value (from a ValueDataset ) in a thermometer type display.

This plot supports a number of options:

  1. three sub-ranges which could be viewed as 'Normal', 'Warning' and 'Critical' ranges.
  2. the thermometer can be run in two modes:
    • fixed range, or
    • range adjusts to current sub-range.
  3. settable units to be displayed.
  4. settable display location for the value text.


Field Summary
final protected static  intAXIS_GAP
     The axis gap.
final public static  intBULB
     A constant for the value label position (in the thermometer bulb).
final protected static  intBULB_DIAMETER
     The bulb diameter.
final protected static  intBULB_RADIUS
     The bulb radius.
final protected static  intCOLUMN_DIAMETER
     The column diameter.
final protected static  intCOLUMN_RADIUS
     The column radius.
final public static  intCRITICAL
     A constant for the 'critical' range.
final protected static  doubleDEFAULT_LOWER_BOUND
     The default lower bound.
final protected static  doubleDEFAULT_UPPER_BOUND
     The default upper bound.
final protected static  intDISPLAY_HIGH
     Index for display high value in subrangeInfo matrix.
final protected static  intDISPLAY_LOW
     Index for display low value in subrangeInfo matrix.
final protected static  intGAP_DIAMETER
     The gap diameter.
final protected static  intGAP_RADIUS
     The gap radius.
final public static  intLEFT
     A constant for the value label position (left of the thermometer).
final public static  intNONE
     A constant for the value label position (no label).
final public static  intNORMAL
     A constant for the 'normal' range.
final protected static  intRANGE_HIGH
     Index for high value in subrangeInfo matrix.
final protected static  intRANGE_LOW
     Index for low value in subrangeInfo matrix.
final public static  intRIGHT
     A constant for the value label position (right of the thermometer).
final protected static  String[]UNITS
     The unit strings.
final public static  intUNITS_CELCIUS
     A constant for unit type 'Celcius'.
final public static  intUNITS_FAHRENHEIT
     A constant for unit type 'Fahrenheit'.
final public static  intUNITS_KELVIN
     A constant for unit type 'Kelvin'.
final public static  intUNITS_NONE
     A constant for unit type 'None'.
final public static  intWARNING
     A constant for the 'warning' range.
protected static  ResourceBundlelocalizationResources
     The resourceBundle for the localization.

Constructor Summary
public  ThermometerPlot()
     Creates a new thermometer plot.
public  ThermometerPlot(ValueDataset dataset)
     Creates a new thermometer plot, using default attributes where necessary.

Method Summary
public  Objectclone()
     Returns a clone of the plot.
public  voiddatasetChanged(DatasetChangeEvent event)
     Checks to see if a new value means the axis range needs adjusting.
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 this plot for equality with another object.
public  intgetAxisLocation()
     Returns the axis location.
public  RangegetDataRange(ValueAxis axis)
     Returns the data range.
Parameters:
  axis - the axis.
public  ValueDatasetgetDataset()
     Returns the dataset for the plot.
public  booleangetFollowDataInSubranges()
     Returns a flag that controls whether or not the thermometer axis zooms to display the subrange within which the data value falls.
public  LegendItemCollectiongetLegendItems()
     Returns the legend items for the plot.
public  doublegetLowerBound()
     Returns the lower bound for the thermometer.
public  NumbergetMaximumVerticalDataValue()
     Returns the maximum value in either the domain or the range, whichever is displayed against the vertical axis for the particular type of plot implementing this interface.
public  PaintgetMercuryPaint()
     Returns the default mercury paint.
public  NumbergetMinimumVerticalDataValue()
     Returns the minimum value in either the domain or the range, whichever is displayed against the vertical axis for the particular type of plot implementing this interface.
public  PlotOrientationgetOrientation()
     Returns the orientation of the plot.
public  RectangleInsetsgetPadding()
     Returns the padding for the thermometer.
public  StringgetPlotType()
     Returns a short string describing the type of plot.
public  ValueAxisgetRangeAxis()
     Returns the range axis.
public  booleangetShowValueLines()
     Returns the flag that controls whether not value lines are displayed.
public  PaintgetSubrangePaint(int range)
     Gets the paint used for a particular subrange.
Parameters:
  range - the range (.
public  PaintgetThermometerPaint()
     Returns the paint used to draw the thermometer outline.
public  StrokegetThermometerStroke()
     Returns the stroke used to draw the thermometer outline.
public  intgetUnits()
     Returns a code indicating the unit display type.
public  doublegetUpperBound()
     Returns the upper bound for the thermometer.
public  booleangetUseSubrangePaint()
     Returns a flag that controls whether or not the mercury color changes for each subrange.
public  FontgetValueFont()
     Gets the font used to display the current value.
public  intgetValueLocation()
     Returns a code indicating the location at which the value label is displayed.
public  PaintgetValuePaint()
     Gets the paint used to display the current value.
public  booleanisDomainZoomable()
     Returns false.
public  booleanisRangeZoomable()
     Returns true.
protected static  booleanisValidNumber(double d)
     Determine whether a number is valid and finite.
Parameters:
  d - the number to be tested.
public  voidsetAxisLocation(int location)
     Sets the location at which the axis is displayed relative to the thermometer, and sends a PlotChangeEvent to all registered listeners.
protected  voidsetAxisRange()
     Sets the axis range to the current values in the rangeInfo array.
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  voidsetDisplayRange(int range, double low, double high)
     Sets the displayed bounds for a sub range.
public  voidsetFollowDataInSubranges(boolean flag)
     Sets the flag that controls whether or not the thermometer axis zooms to display the subrange within which the data value falls.
public  voidsetLowerBound(double lower)
     Sets the lower bound for the thermometer.
public  voidsetMercuryPaint(Paint paint)
     Sets the default mercury paint and sends a PlotChangeEvent to all registered listeners.
public  voidsetPadding(RectangleInsets padding)
     Sets the padding for the thermometer and sends a PlotChangeEvent to all registered listeners.
public  voidsetRange(double lower, double upper)
     Sets the lower and upper bounds for the thermometer.
public  voidsetRangeAxis(ValueAxis axis)
     Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetShowValueLines(boolean b)
     Sets the display as to whether to show value lines in the output.
public  voidsetSubrange(int range, double low, double high)
     Sets the bounds for a subrange.
public  voidsetSubrangeInfo(int range, double low, double hi)
     Sets information for a particular range.
public  voidsetSubrangeInfo(int range, double rangeLow, double rangeHigh, double displayLow, double displayHigh)
    
public  voidsetSubrangePaint(int range, Paint paint)
     Sets the paint to be used for a subrange and sends a PlotChangeEvent to all registered listeners.
public  voidsetThermometerPaint(Paint paint)
     Sets the paint used to draw the thermometer outline and sends a PlotChangeEvent to all registered listeners.
public  voidsetThermometerStroke(Stroke s)
     Sets the stroke used to draw the thermometer outline and sends a PlotChangeEvent to all registered listeners.
public  voidsetUnits(int u)
     Sets the units to be displayed in the thermometer.
public  voidsetUnits(String u)
     Sets the unit type.
public  voidsetUpperBound(double upper)
     Sets the upper bound for the thermometer.
public  voidsetUseSubrangePaint(boolean flag)
     Sets the range colour change option.
public  voidsetValueFont(Font f)
     Sets the font used to display the current value.
public  voidsetValueFormat(NumberFormat formatter)
     Sets the formatter for the value label and sends a PlotChangeEvent to all registered listeners.
public  voidsetValueLocation(int location)
     Sets the location at which the current value is displayed and sends a PlotChangeEvent to all registered listeners.
public  voidsetValuePaint(Paint paint)
     Sets the paint used to display the current value and sends a PlotChangeEvent to all registered listeners.
public  voidzoom(double percent)
     A zoom method that does nothing.
public  voidzoomDomainAxes(double factor, PlotRenderingInfo state, Point2D source)
     Multiplies the range on the domain axis/axes by the specified factor.
public  voidzoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)
     This method does nothing.
public  voidzoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source)
     Multiplies the range on the range axis/axes by the specified factor.
public  voidzoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)
     Zooms the range axes.

Field Detail
AXIS_GAP
final protected static int AXIS_GAP(Code)
The axis gap.



BULB
final public static int BULB(Code)
A constant for the value label position (in the thermometer bulb).



BULB_DIAMETER
final protected static int BULB_DIAMETER(Code)
The bulb diameter.



BULB_RADIUS
final protected static int BULB_RADIUS(Code)
The bulb radius.



COLUMN_DIAMETER
final protected static int COLUMN_DIAMETER(Code)
The column diameter.



COLUMN_RADIUS
final protected static int COLUMN_RADIUS(Code)
The column radius.



CRITICAL
final public static int CRITICAL(Code)
A constant for the 'critical' range.



DEFAULT_LOWER_BOUND
final protected static double DEFAULT_LOWER_BOUND(Code)
The default lower bound.



DEFAULT_UPPER_BOUND
final protected static double DEFAULT_UPPER_BOUND(Code)
The default upper bound.



DISPLAY_HIGH
final protected static int DISPLAY_HIGH(Code)
Index for display high value in subrangeInfo matrix.



DISPLAY_LOW
final protected static int DISPLAY_LOW(Code)
Index for display low value in subrangeInfo matrix.



GAP_DIAMETER
final protected static int GAP_DIAMETER(Code)
The gap diameter.



GAP_RADIUS
final protected static int GAP_RADIUS(Code)
The gap radius.



LEFT
final public static int LEFT(Code)
A constant for the value label position (left of the thermometer).



NONE
final public static int NONE(Code)
A constant for the value label position (no label).



NORMAL
final public static int NORMAL(Code)
A constant for the 'normal' range.



RANGE_HIGH
final protected static int RANGE_HIGH(Code)
Index for high value in subrangeInfo matrix.



RANGE_LOW
final protected static int RANGE_LOW(Code)
Index for low value in subrangeInfo matrix.



RIGHT
final public static int RIGHT(Code)
A constant for the value label position (right of the thermometer).



UNITS
final protected static String[] UNITS(Code)
The unit strings.



UNITS_CELCIUS
final public static int UNITS_CELCIUS(Code)
A constant for unit type 'Celcius'.



UNITS_FAHRENHEIT
final public static int UNITS_FAHRENHEIT(Code)
A constant for unit type 'Fahrenheit'.



UNITS_KELVIN
final public static int UNITS_KELVIN(Code)
A constant for unit type 'Kelvin'.



UNITS_NONE
final public static int UNITS_NONE(Code)
A constant for unit type 'None'.



WARNING
final public static int WARNING(Code)
A constant for the 'warning' range.



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




Constructor Detail
ThermometerPlot
public ThermometerPlot()(Code)
Creates a new thermometer plot.



ThermometerPlot
public ThermometerPlot(ValueDataset dataset)(Code)
Creates a new thermometer plot, using default attributes where necessary.
Parameters:
  dataset - the data set.




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the plot. A clone.
throws:
  CloneNotSupportedException - if the plot cannot be cloned.



datasetChanged
public void datasetChanged(DatasetChangeEvent event)(Code)
Checks to see if a new value means the axis range needs adjusting.
Parameters:
  event - the dataset change event.



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 this plot for equality with another object. The plot's dataset is not considered in the test.
Parameters:
  obj - the object (null permitted). true or false.



getAxisLocation
public int getAxisLocation()(Code)
Returns the axis location. The location (one of ThermometerPlot.NONE, ThermometerPlot.LEFT and ThermometerPlot.RIGHT).
See Also:   ThermometerPlot.setAxisLocation(int)



getDataRange
public Range getDataRange(ValueAxis axis)(Code)
Returns the data range.
Parameters:
  axis - the axis. The range of data displayed.



getDataset
public ValueDataset getDataset()(Code)
Returns the dataset for the plot. The dataset (possibly null).
See Also:   ThermometerPlot.setDataset(ValueDataset)



getFollowDataInSubranges
public boolean getFollowDataInSubranges()(Code)
Returns a flag that controls whether or not the thermometer axis zooms to display the subrange within which the data value falls. The flag.



getLegendItems
public LegendItemCollection getLegendItems()(Code)
Returns the legend items for the plot. null.



getLowerBound
public double getLowerBound()(Code)
Returns the lower bound for the thermometer. The data value can be set lower than this, but it will not be shown in the thermometer. The lower bound.
See Also:   ThermometerPlot.setLowerBound(double)



getMaximumVerticalDataValue
public Number getMaximumVerticalDataValue()(Code)
Returns the maximum value in either the domain or the range, whichever is displayed against the vertical axis for the particular type of plot implementing this interface. The maximum value in either the domain or the range



getMercuryPaint
public Paint getMercuryPaint()(Code)
Returns the default mercury paint. The paint (never null).
See Also:   ThermometerPlot.setMercuryPaint(Paint)



getMinimumVerticalDataValue
public Number getMinimumVerticalDataValue()(Code)
Returns the minimum value in either the domain or the range, whichever is displayed against the vertical axis for the particular type of plot implementing this interface. The minimum value in either the domain or the range.



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



getPadding
public RectangleInsets getPadding()(Code)
Returns the padding for the thermometer. This is the space inside the plot area. The padding (never null).
See Also:   ThermometerPlot.setPadding(RectangleInsets)



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



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



getShowValueLines
public boolean getShowValueLines()(Code)
Returns the flag that controls whether not value lines are displayed. The flag.
See Also:   ThermometerPlot.setShowValueLines(boolean)



getSubrangePaint
public Paint getSubrangePaint(int range)(Code)
Gets the paint used for a particular subrange.
Parameters:
  range - the range (. The paint.
See Also:   ThermometerPlot.setSubrangePaint(int,Paint)



getThermometerPaint
public Paint getThermometerPaint()(Code)
Returns the paint used to draw the thermometer outline. The paint (never null).
See Also:   ThermometerPlot.setThermometerPaint(Paint)
See Also:   ThermometerPlot.getThermometerStroke()



getThermometerStroke
public Stroke getThermometerStroke()(Code)
Returns the stroke used to draw the thermometer outline. The stroke (never null).
See Also:   ThermometerPlot.setThermometerStroke(Stroke)
See Also:   ThermometerPlot.getThermometerPaint()



getUnits
public int getUnits()(Code)
Returns a code indicating the unit display type. This is one of ThermometerPlot.UNITS_NONE , ThermometerPlot.UNITS_FAHRENHEIT , ThermometerPlot.UNITS_CELCIUS and ThermometerPlot.UNITS_KELVIN . The units type.
See Also:   ThermometerPlot.setUnits(int)



getUpperBound
public double getUpperBound()(Code)
Returns the upper bound for the thermometer. The data value can be set higher than this, but it will not be shown in the thermometer. The upper bound.
See Also:   ThermometerPlot.setUpperBound(double)



getUseSubrangePaint
public boolean getUseSubrangePaint()(Code)
Returns a flag that controls whether or not the mercury color changes for each subrange. The flag.
See Also:   ThermometerPlot.setUseSubrangePaint(boolean)



getValueFont
public Font getValueFont()(Code)
Gets the font used to display the current value. The font.
See Also:   ThermometerPlot.setValueFont(Font)



getValueLocation
public int getValueLocation()(Code)
Returns a code indicating the location at which the value label is displayed. The location (one of ThermometerPlot.NONE, ThermometerPlot.RIGHT, ThermometerPlot.LEFT and ThermometerPlot.BULB.).



getValuePaint
public Paint getValuePaint()(Code)
Gets the paint used to display the current value. The paint.
See Also:   ThermometerPlot.setValuePaint(Paint)



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



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



isValidNumber
protected static boolean isValidNumber(double d)(Code)
Determine whether a number is valid and finite.
Parameters:
  d - the number to be tested. true if the number is valid and finite, and false otherwise.



setAxisLocation
public void setAxisLocation(int location)(Code)
Sets the location at which the axis is displayed relative to the thermometer, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  location - the location (one of ThermometerPlot.NONE, ThermometerPlot.LEFT and ThermometerPlot.RIGHT).
See Also:   ThermometerPlot.getAxisLocation()



setAxisRange
protected void setAxisRange()(Code)
Sets the axis range to the current values in the rangeInfo array.



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).
See Also:   ThermometerPlot.getDataset()



setDisplayRange
public void setDisplayRange(int range, double low, double high)(Code)
Sets the displayed bounds for a sub range.
Parameters:
  range - the range type.
Parameters:
  low - the low value.
Parameters:
  high - the high value.



setFollowDataInSubranges
public void setFollowDataInSubranges(boolean flag)(Code)
Sets the flag that controls whether or not the thermometer axis zooms to display the subrange within which the data value falls.
Parameters:
  flag - the flag.



setLowerBound
public void setLowerBound(double lower)(Code)
Sets the lower bound for the thermometer.
Parameters:
  lower - the lower bound.
See Also:   ThermometerPlot.getLowerBound()



setMercuryPaint
public void setMercuryPaint(Paint paint)(Code)
Sets the default mercury paint and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the new paint (null not permitted).
See Also:   ThermometerPlot.getMercuryPaint()



setPadding
public void setPadding(RectangleInsets padding)(Code)
Sets the padding for the thermometer and sends a PlotChangeEvent to all registered listeners.
Parameters:
  padding - the padding (null not permitted).
See Also:   ThermometerPlot.getPadding()



setRange
public void setRange(double lower, double upper)(Code)
Sets the lower and upper bounds for the thermometer.
Parameters:
  lower - the lower bound.
Parameters:
  upper - the upper bound.



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



setShowValueLines
public void setShowValueLines(boolean b)(Code)
Sets the display as to whether to show value lines in the output.
Parameters:
  b - Whether to show value lines in the thermometer
See Also:   ThermometerPlot.getShowValueLines()



setSubrange
public void setSubrange(int range, double low, double high)(Code)
Sets the bounds for a subrange.
Parameters:
  range - the range type.
Parameters:
  low - the low value.
Parameters:
  high - the high value.



setSubrangeInfo
public void setSubrangeInfo(int range, double low, double hi)(Code)
Sets information for a particular range.
Parameters:
  range - the range to specify information about.
Parameters:
  low - the low value for the range
Parameters:
  hi - the high value for the range



setSubrangeInfo
public void setSubrangeInfo(int range, double rangeLow, double rangeHigh, double displayLow, double displayHigh)(Code)
Sets the subrangeInfo attribute of the ThermometerPlot object
Parameters:
  range - the new rangeInfo value.
Parameters:
  rangeLow - the new rangeInfo value
Parameters:
  rangeHigh - the new rangeInfo value
Parameters:
  displayLow - the new rangeInfo value
Parameters:
  displayHigh - the new rangeInfo value



setSubrangePaint
public void setSubrangePaint(int range, Paint paint)(Code)
Sets the paint to be used for a subrange and sends a PlotChangeEvent to all registered listeners.
Parameters:
  range - the range (0, 1 or 2).
Parameters:
  paint - the paint to be applied (null not permitted).
See Also:   ThermometerPlot.getSubrangePaint(int)



setThermometerPaint
public void setThermometerPaint(Paint paint)(Code)
Sets the paint used to draw the thermometer outline and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the new paint (null ignored).
See Also:   ThermometerPlot.getThermometerPaint()



setThermometerStroke
public void setThermometerStroke(Stroke s)(Code)
Sets the stroke used to draw the thermometer outline and sends a PlotChangeEvent to all registered listeners.
Parameters:
  s - the new stroke (null ignored).
See Also:   ThermometerPlot.getThermometerStroke()



setUnits
public void setUnits(int u)(Code)
Sets the units to be displayed in the thermometer. Use one of the following constants:
  • UNITS_NONE : no units displayed.
  • UNITS_FAHRENHEIT : units displayed in Fahrenheit.
  • UNITS_CELCIUS : units displayed in Celcius.
  • UNITS_KELVIN : units displayed in Kelvin.

Parameters:
  u - the new unit type.
See Also:   ThermometerPlot.getUnits()



setUnits
public void setUnits(String u)(Code)
Sets the unit type.
Parameters:
  u - the unit type (null ignored).



setUpperBound
public void setUpperBound(double upper)(Code)
Sets the upper bound for the thermometer.
Parameters:
  upper - the upper bound.
See Also:   ThermometerPlot.getUpperBound()



setUseSubrangePaint
public void setUseSubrangePaint(boolean flag)(Code)
Sets the range colour change option.
Parameters:
  flag - the new range colour change option
See Also:   ThermometerPlot.getUseSubrangePaint()



setValueFont
public void setValueFont(Font f)(Code)
Sets the font used to display the current value.
Parameters:
  f - the new font (null not permitted).
See Also:   ThermometerPlot.getValueFont()



setValueFormat
public void setValueFormat(NumberFormat formatter)(Code)
Sets the formatter for the value label and sends a PlotChangeEvent to all registered listeners.
Parameters:
  formatter - the new formatter (null not permitted).



setValueLocation
public void setValueLocation(int location)(Code)
Sets the location at which the current value is displayed and sends a PlotChangeEvent to all registered listeners.

The location can be one of the constants: NONE, RIGHT LEFT and BULB.
Parameters:
  location - the location.




setValuePaint
public void setValuePaint(Paint paint)(Code)
Sets the paint used to display the current value and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the new paint (null not permitted).
See Also:   ThermometerPlot.getValuePaint()



zoom
public void zoom(double percent)(Code)
A zoom method that does nothing. Plots are required to support the zoom operation. In the case of a thermometer chart, it doesn't make sense to zoom in or out, so the method is empty.
Parameters:
  percent - the zoom percentage.



zoomDomainAxes
public void zoomDomainAxes(double factor, PlotRenderingInfo state, Point2D source)(Code)
Multiplies the range on the domain axis/axes by the specified factor.
Parameters:
  factor - the zoom factor.
Parameters:
  state - the plot state.
Parameters:
  source - the source point.



zoomDomainAxes
public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)(Code)
This method does nothing.
Parameters:
  lowerPercent - the lower percent.
Parameters:
  upperPercent - the upper percent.
Parameters:
  state - the plot state.
Parameters:
  source - the source point.



zoomRangeAxes
public void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source)(Code)
Multiplies the range on the range axis/axes by the specified factor.
Parameters:
  factor - the zoom factor.
Parameters:
  state - the plot state.
Parameters:
  source - the source point.



zoomRangeAxes
public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)(Code)
Zooms the range axes.
Parameters:
  lowerPercent - the lower percent.
Parameters:
  upperPercent - the upper percent.
Parameters:
  state - the plot state.
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.