KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > client > grapheditor > BonitaGraphUI


1 /**
2  *
3  * Bonita
4  * Copyright (C) 1999 Bull S.A.
5  * Bull 68 route de versailles 78434 Louveciennes Cedex France
6  * Further information: bonita@objectweb.org
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21  * USA
22  *
23  *
24 --------------------------------------------------------------------------
25  * $Id: BonitaGraphUI.java,v 1.1 2004/07/30 14:57:57 mvaldes Exp $
26  *
27 --------------------------------------------------------------------------
28  */

29
30
31 package hero.client.grapheditor;
32
33 import java.awt.Graphics JavaDoc;
34
35 import com.jgraph.plaf.basic.BasicGraphUI;
36
37 public class BonitaGraphUI extends BasicGraphUI {
38     
39     protected void paintBackground(Graphics JavaDoc g) {
40         super.paintBackground(g);
41         g.drawImage(Frame.getFrame().getWorkflowGraph().getBackgroundImage(),0,0,1280,800,Frame.getFrame().getWorkflowGraph());
42     }
43
44 }
45
Popular Tags