View Javadoc
1 /***************************************************************************** 2 * Virtual Mockup for Machine Vision 3 * Copyright (C) 2001-2003 Fabio R. de Miranda, João E. Kogler Jr., 4 * Carlos S. Santos. 5 * Virtual Mockup for Machine Vision Project funded by SENAC-SP 6 * 7 * Permission is granted to redistribute and/or modify this 8 * software under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This software is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License (http://www.gnu.org/copyleft/lesser.html) 16 * for more details. 17 * 18 *****************************************************************************/ 19 20 package camera3d.gui; 21 22 /* 23 * Title: Câmera Virtual - LIVES 24 * Description: Câmera Virtual para Controle via Sockets 25 * Copyright: Copyright (c) 2001 26 * Company: Centro de Educação em Informática - SENAC - SP 27 */ 28 import javax.swing.JFrame; 29 import java.awt.*; 30 import camera3d.*; 31 32 33 /*** 34 * Simple window that contains a Viewport and a ViewportCommandPane. Consider using 35 * ViewportFrame or ViewportCombo instead. 36 * 37 * @author Fábio Roberto de Miranda 38 * @version 1.0 39 * @see camera3d.Viewport 40 * @see camera3d.gui.ViewportFrame 41 * @see camera3d.gui.ViewportCombo 42 */ 43 44 class ViewportWindow extends JFrame { 45 46 private Viewport viewport; 47 private ViewportCommandPane commandPane; 48 private BorderLayout borderLayout1 = new BorderLayout(); 49 50 ViewportWindow(Viewport viewport, ViewportCommandPane commandPane) { 51 this(); 52 this.commandPane = commandPane; 53 this.viewport = viewport; 54 this.getContentPane().add(viewport, BorderLayout.CENTER); 55 this.getContentPane().add(commandPane, BorderLayout.SOUTH); 56 } 57 58 ViewportWindow(){ 59 try { 60 jbInit(); 61 } 62 catch(Exception e) { 63 e.printStackTrace(); 64 } 65 } 66 67 68 public static void main(String[] args) { 69 VcView view = new VcView(); 70 Viewport vp = new Viewport(view); 71 //ViewportContainerPane pane = new ViewportContainerPane(vp); 72 ViewportWindow viewportWindow1 = new ViewportWindow(vp, new ViewportCommandPane(vp)); 73 viewportWindow1.pack(); 74 viewportWindow1.setVisible(true); 75 //viewportWindow1.show(true); 76 } 77 78 private void jbInit() throws Exception { 79 this.setSize(new Dimension(400, 300)); 80 this.getContentPane().setLayout(borderLayout1); 81 } 82 }

This page was automatically generated by Maven