KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pentaho > plugin > jfreechart > WidgetDefinition


1 /*
2  * Copyright 2006 Pentaho Corporation. All rights reserved.
3  * This software was developed by Pentaho Corporation and is provided under the terms
4  * of the Mozilla Public License, Version 1.1, or any later version. You may not use
5  * this file except in compliance with the license. If you need a copy of the license,
6  * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
7  * BI Platform. The Initial Developer is Pentaho Corporation.
8  *
9  * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11  * the license for the specific language governing your rights and limitations.
12  *
13  * @created Aug 23, 2005
14  * @author James Dixon
15  */

16
17 package org.pentaho.plugin.jfreechart;
18
19 import java.awt.Font JavaDoc;
20
21 import org.jfree.data.general.DefaultValueDataset;
22
23 public abstract class WidgetDefinition extends DefaultValueDataset {
24
25     /**
26      * Test Commit
27      */

28     private static final long serialVersionUID = -3570099313517484430L;
29
30     private double minimum = 0;
31
32     private double maximum = 100;
33
34     public WidgetDefinition(double value, double minimum, double maximum) {
35         this.minimum = minimum;
36         this.maximum = maximum;
37         setValue(new Double JavaDoc(value));
38     }
39
40     /**
41      * Gets the minimum value the widget can display
42      *
43      * @return The minimum value the widget can display
44      */

45     public double getMinimum() {
46         return minimum;
47     }
48
49     /**
50      * Sets the minimum value the widget can display
51      *
52      * @param minimum
53      * The minimum value the widget can display
54      */

55
56     public void setMinimum(double minimum) {
57         this.minimum = minimum;
58     }
59
60     /**
61      * Gets the maximum value the widget can display
62      *
63      * @return The maximum value the widget can display
64      */

65     public double getMaximum() {
66         return maximum;
67     }
68
69     /**
70      * Sets the minimum value the widget can display
71      *
72      * @param maximum
73      * The maximum value the widget can display
74      */

75
76     public void setMaximum(double maximum) {
77         this.maximum = maximum;
78     }
79
80     public abstract Font JavaDoc getValueFont();
81
82 }
83
Popular Tags