Source Code Cross Referenced for MeterPlot.java in  » Report » iReport-2.0.5 » it » businesslogic » ireport » chart » 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 » iReport 2.0.5 » it.businesslogic.ireport.chart 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (C) 2005 - 2008 JasperSoft Corporation.  All rights reserved. 
003:         * http://www.jaspersoft.com.
004:         *
005:         * Unless you have purchased a commercial license agreement from JasperSoft,
006:         * the following license terms apply:
007:         *
008:         * This program is free software; you can redistribute it and/or modify
009:         * it under the terms of the GNU General Public License version 2 as published by
010:         * the Free Software Foundation.
011:         *
012:         * This program is distributed WITHOUT ANY WARRANTY; and without the
013:         * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014:         * See the GNU General Public License for more details.
015:         *
016:         * You should have received a copy of the GNU General Public License
017:         * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018:         * or write to:
019:         *
020:         * Free Software Foundation, Inc.,
021:         * 59 Temple Place - Suite 330,
022:         * Boston, MA  USA  02111-1307
023:         *
024:         *
025:         *
026:         *
027:         * MeterPlot.java
028:         * 
029:         * Created on 16 agosto 2005, 10.19
030:         *
031:         */
032:
033:        package it.businesslogic.ireport.chart;
034:
035:        import java.awt.Color;
036:
037:        /**
038:         *
039:         * @author Administrator
040:         */
041:        public class MeterPlot extends Plot {
042:
043:            private String shape = "pie";
044:            private int angle = 180;
045:            private String units = "";
046:            private double tickInterval = 10.0;
047:            private java.awt.Color meterColor = null;
048:            private java.awt.Color needleColor = null;
049:            private java.awt.Color tickColor = null;
050:
051:            private java.util.List meterIntervals = new java.util.ArrayList();
052:
053:            private ValueDisplay valueDisplay = new ValueDisplay();
054:
055:            private DataRange dataRange = new DataRange();
056:
057:            /** Creates a new instance of PiePlot */
058:            public MeterPlot() {
059:            }
060:
061:            public Plot cloneMe() {
062:                MeterPlot obj = new MeterPlot();
063:                copyBasePlot(obj);
064:                obj.setShape(new String(getShape()));
065:                obj.setAngle(getAngle());
066:                obj.setUnits(new String(getUnits()));
067:                obj.setTickInterval(getTickInterval());
068:                if (getTickColor() != null)
069:                    obj.setTickColor(new Color(getTickColor().getRGB()));
070:                if (getNeedleColor() != null)
071:                    obj.setNeedleColor(new Color(getNeedleColor().getRGB()));
072:                if (getMeterColor() != null)
073:                    obj.setMeterColor(new Color(getMeterColor().getRGB()));
074:                obj.setValueDisplay(getValueDisplay().cloneMe());
075:                obj.setDataRange(getDataRange().cloneMe());
076:
077:                for (int i = 0; i < getMeterIntervals().size(); ++i) {
078:                    obj.getMeterIntervals().add(
079:                            ((MeterInterval) getMeterIntervals().get(i))
080:                                    .cloneMe());
081:                }
082:
083:                return obj;
084:            }
085:
086:            public String getShape() {
087:                return shape;
088:            }
089:
090:            public void setShape(String shape) {
091:                this .shape = shape;
092:            }
093:
094:            public int getAngle() {
095:                return angle;
096:            }
097:
098:            public void setAngle(int angle) {
099:                this .angle = angle;
100:            }
101:
102:            public String getUnits() {
103:                return units;
104:            }
105:
106:            public void setUnits(String units) {
107:                this .units = units;
108:            }
109:
110:            public double getTickInterval() {
111:                return tickInterval;
112:            }
113:
114:            public void setTickInterval(double tickInterval) {
115:                this .tickInterval = tickInterval;
116:            }
117:
118:            public java.awt.Color getMeterColor() {
119:                return meterColor;
120:            }
121:
122:            public void setMeterColor(java.awt.Color meterColor) {
123:                this .meterColor = meterColor;
124:            }
125:
126:            public java.awt.Color getNeedleColor() {
127:                return needleColor;
128:            }
129:
130:            public void setNeedleColor(java.awt.Color needleColor) {
131:                this .needleColor = needleColor;
132:            }
133:
134:            public java.awt.Color getTickColor() {
135:                return tickColor;
136:            }
137:
138:            public void setTickColor(java.awt.Color tickColor) {
139:                this .tickColor = tickColor;
140:            }
141:
142:            public ValueDisplay getValueDisplay() {
143:                return valueDisplay;
144:            }
145:
146:            public void setValueDisplay(ValueDisplay valueDisplay) {
147:                this .valueDisplay = valueDisplay;
148:            }
149:
150:            public java.util.List getMeterIntervals() {
151:                return meterIntervals;
152:            }
153:
154:            public void setMeterIntervals(java.util.List meterIntervals) {
155:                this .meterIntervals = meterIntervals;
156:            }
157:
158:            public DataRange getDataRange() {
159:                return dataRange;
160:            }
161:
162:            public void setDataRange(DataRange dataRange) {
163:                this.dataRange = dataRange;
164:            }
165:
166:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.