KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > graph > DefaultGraphElement


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.graph;
8
9 import java.awt.Color JavaDoc;
10 import java.awt.Graphics JavaDoc;
11
12 /**
13  * @author Laurent Etiemble
14  * @version $Revision: 1.8 $
15  * @todo Javadoc to complete
16  */

17 public class DefaultGraphElement implements GraphElement
18 {
19    /** Description of the Field */
20    protected Range xr = new Range(0.0d, 1.0d);
21    /** Description of the Field */
22    protected Range yr = new Range(0.0d, 1.0d);
23
24
25    /** Constructor for DefaultElement. */
26    public DefaultGraphElement() { }
27
28
29    /**
30     * @param graphics Description of the Parameter
31     * @param scaleX Description of the Parameter
32     * @param offsetX Description of the Parameter
33     * @param scaleY Description of the Parameter
34     * @param offsetY Description of the Parameter
35     */

36    public void draw(Graphics JavaDoc graphics, double scaleX, double offsetX, double scaleY, double offsetY) { }
37
38
39    /**
40     * @return The color value
41     */

42    public Color JavaDoc getColor()
43    {
44       return Color.black;
45    }
46
47
48    /**
49     * @return The xRange value
50     */

51    public Range getXRange()
52    {
53       return this.xr;
54    }
55
56
57    /**
58     * @return The yRange value
59     */

60    public Range getYRange()
61    {
62       return this.yr;
63    }
64 }
65
Popular Tags