KickJava   Java API By Example, From Geeks To Geeks.

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


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.7 $
15  * @todo Javadoc to complete
16  */

17 public interface GraphElement
18 {
19    /**
20     * Gets the xRange attribute of the GraphModel object
21     *
22     * @return The xRange value
23     */

24    public Range getXRange();
25
26
27    /**
28     * Gets the color attribute of the Element object
29     *
30     * @return The color value
31     */

32    public Color JavaDoc getColor();
33
34
35    /**
36     * Description of the Method
37     *
38     * @param graphics Description of the Parameter
39     * @param scaleX Description of the Parameter
40     * @param offsetX Description of the Parameter
41     * @param scaleY Description of the Parameter
42     * @param offsetY Description of the Parameter
43     */

44    public void draw(Graphics JavaDoc graphics, double scaleX, double offsetX, double scaleY, double offsetY);
45
46
47    /**
48     * Gets the yRange attribute of the GraphModel object
49     *
50     * @return The yRange value
51     */

52    public Range getYRange();
53 }
54
Popular Tags