01: /*
02: * ComponentLayer.java
03: *
04: * Created on 23 January 2007, 17:55
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package com.xoetrope.svg;
11:
12: import java.awt.Component;
13: import javax.swing.JComponent;
14:
15: /**
16: *
17: *
18: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
19: * the GNU Public License (GPL), please see license.txt for more details. If
20: * you make commercial use of this software you must purchase a commercial
21: * license from Xoetrope.</p>
22: * <p> $Revision: 1.2 $</p>
23: */
24: public class XOverlayComponent extends JComponent {
25:
26: /** Creates a new instance of ComponentLayer */
27: public XOverlayComponent() {
28: setOpaque(false);
29: }
30:
31: /**
32: * Used to add a component to the component layer.
33: * @param comp the <CODE>Component</CODE> to be added.
34: * @return the added <CODE>Component</CODE>.
35: */
36: public Component add(Component comp) {
37: add(comp);
38: return comp;
39: }
40: }
|