KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > print > layout > GraphElement


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2002 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.print.layout;
15
16 import java.awt.*;
17 import java.awt.geom.*;
18 import java.util.*;
19
20 import org.compiere.print.*;
21 import org.compiere.util.*;
22
23 /**
24  * Graphic Element
25  *
26  * @author Jorg Janke
27  * @version $Id: GraphElement.java,v 1.1 2002/08/25 05:13:52 jjanke Exp $
28  */

29 public class GraphElement extends PrintElement
30 {
31     /**
32      * Constructor
33      * @param pg graph model
34      */

35     public GraphElement(MPrintGraph pg)
36     {
37     } // GraphElement
38

39     /**
40      * Layout and Calculate Size
41      * Set p_width & p_height
42      * @return true if calculated
43      */

44     protected boolean calculateSize()
45     {
46         return false;
47     } // calcluateSize
48

49     /**
50      * Paint/Print.
51      * @param g2D Graphics
52      * @param pageNo page number for multi page support (0 = header/footer)
53      * @param pageStart top left Location of page
54      * @param ctx context
55      * @param isView true if online view (IDs are links)
56      */

57     public void paint (Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)
58     {
59
60     } // paint
61

62 } // GraphElement
63

64
Popular Tags