Java Doc for JRDesignMeterPlot.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » charts » design » 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 » Report » jasperreports 2.0.1 » net.sf.jasperreports.charts.design 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sf.jasperreports.charts.base.JRBaseMeterPlot
   net.sf.jasperreports.charts.design.JRDesignMeterPlot

JRDesignMeterPlot
public class JRDesignMeterPlot extends JRBaseMeterPlot (Code)
A meter plot that displays a single value against a range of values. The range can be further subdivided into multiple color coded regions.
author:
   Barry Klawans (bklawans@users.sourceforge.net)
version:
   $Id: JRDesignMeterPlot.java 1794 2007-07-30 09:07:50Z teodord $



Constructor Summary
public  JRDesignMeterPlot(JRChartPlot meterPlot, JRChart chart)
     Construct a new meter plot by copying an existing one.

Method Summary
public  voidaddInterval(JRMeterInterval interval)
     Adds an interval to the meter.
public  voidclearIntervals()
     Removes all the intervals for the meter.
public  voidsetDataRange(JRDataRange dataRange)
     Sets the range of values that the meter can display.
public  voidsetMeterAngle(int meterAngle)
     Sets the size of the meter face in degrees.
public  voidsetMeterBackgroundColor(Color meterBackgroundColor)
     Sets the color to use for the meter face.
public  voidsetNeedleColor(Color needleColor)
     Sets the color to use for the meter pointer.
public  voidsetShape(byte shape)
     Sets the shape of the meter.
public  voidsetTickColor(Color tickColor)
     Sets the color to use when drawing tick marks on the meter.
public  voidsetTickInterval(double tickInterval)
     Sets the space between tick marks on the face of the meter.
public  voidsetUnits(String units)
     Sets the units string to use.
public  voidsetValueDisplay(JRValueDisplay valueDisplay)
     Sets the value display formatting options.


Constructor Detail
JRDesignMeterPlot
public JRDesignMeterPlot(JRChartPlot meterPlot, JRChart chart)(Code)
Construct a new meter plot by copying an existing one.
Parameters:
  meterPlot - the plot to copy




Method Detail
addInterval
public void addInterval(JRMeterInterval interval)(Code)
Adds an interval to the meter. An interval is used to indicate a section of the meter.
Parameters:
  interval - the interval to add to the meter



clearIntervals
public void clearIntervals()(Code)
Removes all the intervals for the meter.



setDataRange
public void setDataRange(JRDataRange dataRange) throws JRException(Code)
Sets the range of values that the meter can display. Before changing this for an existing meter you should clear any existing intervals to ensure that you don't end up with intervals that are outside of the new range.
Parameters:
  dataRange - the range of values that the meter can display



setMeterAngle
public void setMeterAngle(int meterAngle)(Code)
Sets the size of the meter face in degrees.
Parameters:
  meterAngle - the size of the meter in degrees



setMeterBackgroundColor
public void setMeterBackgroundColor(Color meterBackgroundColor)(Code)
Sets the color to use for the meter face.
Parameters:
  meterBackgroundColor - the color to use for the meter face



setNeedleColor
public void setNeedleColor(Color needleColor)(Code)
Sets the color to use for the meter pointer.
Parameters:
  needleColor - the color to use for the meter pointer



setShape
public void setShape(byte shape) throws JRException(Code)
Sets the shape of the meter. Must be one of JRMeterPlot.SHAPE_CHORD, JRMeterPlot.SHAPE_CIRCLE or JRMeterPlot.SHAPE_PIE.
Parameters:
  shape - the shape of the meter
throws:
  JRException - invalid shape was specified



setTickColor
public void setTickColor(Color tickColor)(Code)
Sets the color to use when drawing tick marks on the meter.
Parameters:
  tickColor - the color to use when drawing tick marks



setTickInterval
public void setTickInterval(double tickInterval)(Code)
Sets the space between tick marks on the face of the meter. The spacing is relative to the range of the meter. If the meter is displaying the range 100 to 200 and the tick interval is 20, four tick marks will be shown, one each at 120, 140, 160 and 180.
Parameters:
  tickInterval - the space between tick marks on the meter



setUnits
public void setUnits(String units)(Code)
Sets the units string to use. This string is appended to the value when it is displayed.
Parameters:
  units - the units string to use



setValueDisplay
public void setValueDisplay(JRValueDisplay valueDisplay)(Code)
Sets the value display formatting options.
Parameters:
  valueDisplay - how to show the textual representation of the value



Fields inherited from net.sf.jasperreports.charts.base.JRBaseMeterPlot
protected JRDataRange dataRange(Code)(Java Doc)
protected List intervals(Code)(Java Doc)
protected int meterAngle(Code)(Java Doc)
protected Color meterBackgroundColor(Code)(Java Doc)
protected Color needleColor(Code)(Java Doc)
protected byte shape(Code)(Java Doc)
protected Color tickColor(Code)(Java Doc)
protected double tickInterval(Code)(Java Doc)
protected String units(Code)(Java Doc)
protected JRValueDisplay valueDisplay(Code)(Java Doc)

Methods inherited from net.sf.jasperreports.charts.base.JRBaseMeterPlot
public void collectExpressions(JRExpressionCollector collector)(Code)(Java Doc)
public JRDataRange getDataRange()(Code)(Java Doc)
public List getIntervals()(Code)(Java Doc)
public int getMeterAngle()(Code)(Java Doc)
public Color getMeterBackgroundColor()(Code)(Java Doc)
public Color getNeedleColor()(Code)(Java Doc)
public byte getShape()(Code)(Java Doc)
public Color getTickColor()(Code)(Java Doc)
public double getTickInterval()(Code)(Java Doc)
public String getUnits()(Code)(Java Doc)
public JRValueDisplay getValueDisplay()(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.