]> git.sesse.net Git - vlc/blob - bindings/java/org/videolan/jvlc/GenericVideoWidget.java
ff23f3a5c1b8dedbe3ec165f615ab06aa87ea69f
[vlc] / bindings / java / org / videolan / jvlc / GenericVideoWidget.java
1 /*****************************************************************************
2  * SWTVideoWidget.java: A component usable in SWT Application, embeds JVLC
3  *****************************************************************************
4  *
5  * Copyright (C) 1998-2006 the VideoLAN team
6  * 
7  * Author: Kuldipsingh Pabla <Kuldipsingh.Pabla@sun.com>
8  * 
9  * Created on 10-jun-2006
10  *
11  * $Id $
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2 of the
16  * License, or (at your option) any later version.
17  * 
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * General Public License for more details.
22  * 
23  * You should have received a copy of the GNU General Public
24  * License along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
26  * 
27  */
28
29
30 package org.videolan.jvlc;
31 import java.awt.Frame;
32 import java.awt.Component;
33
34
35 public class GenericVideoWidget {
36     /*
37      * This class implements a Composite container for VLC Video Output
38      */
39
40     /*
41      * The root SWT Frame we embed JVLCCanvas in
42      */
43     public Frame rootFrame;
44     private JVLCCanvas jvlcCanvas;
45     
46     public GenericVideoWidget( Component parent ) {
47         // allocate the new AWT Frame to embed in the Composite
48         rootFrame = new Frame ();
49
50         // add the JVLCCanvas to the Frame
51         jvlcCanvas = new JVLCCanvas();
52         rootFrame.add( jvlcCanvas );
53     }
54     
55     
56         public JVLC getJVLC() {
57                 return jvlcCanvas.getJVLC();
58         }
59 }