diff --git a/LICENSE.txt b/LICENSE.txt index 1f41f86538dcf96c22369d99ef9a656026ad808a..865aaead99eb06b229fadc9c17843a2bb9dd9ed6 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -274,6 +274,10 @@ Applications: Some images licensed under a Creative Commons 2.0 license. Silk icons: See licenses/LICENSE-SilkIcons.txt + Router Console M-Lab subsystem: + Copyright 2010 Vuze, Inc. All rights reserved. + See licenses/LICENSE-GPLv2.txt + Router Console NDT subsystem: Copyright (c) 2003 University of Chicago. All rights reserved. See licenses/LICENSE-NDT.txt diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/ActionEvent.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/ActionEvent.java new file mode 100644 index 0000000000000000000000000000000000000000..07ad3711c8b36dddc9564c996a389a821a9b98b7 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/ActionEvent.java @@ -0,0 +1,34 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +ActionEvent +{ + public Object + getSource() + { + return( new Object()); + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/ActionListener.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/ActionListener.java new file mode 100644 index 0000000000000000000000000000000000000000..618d37a3f635aa5a533d5be8bf4c925ed1e9493a --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/ActionListener.java @@ -0,0 +1,28 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public interface ActionListener { + +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/AppletContext.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/AppletContext.java new file mode 100644 index 0000000000000000000000000000000000000000..95ad05d6319f97656a4138aec9375b2fdf28e9fe --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/AppletContext.java @@ -0,0 +1,36 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +import java.net.URL; + +public class AppletContext { + + public void + showDocument( + URL url ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BadLocationException.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BadLocationException.java new file mode 100644 index 0000000000000000000000000000000000000000..4a4f8272477f3f4de9f088d5fefb25802b8a5a2f --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BadLocationException.java @@ -0,0 +1,30 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +BadLocationException + extends Exception +{ +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BorderFactory.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BorderFactory.java new file mode 100644 index 0000000000000000000000000000000000000000..9ccc0cb69f527802d2b3f6f7a770096dbe121449 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BorderFactory.java @@ -0,0 +1,34 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class BorderFactory { + + public static Component + createTitledBorder( + String str ) + { + return( new Component()); + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BorderLayout.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BorderLayout.java new file mode 100644 index 0000000000000000000000000000000000000000..91b3e33acb2daa81c2af9ff7f1f2f3a49b5e5ec4 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BorderLayout.java @@ -0,0 +1,31 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class BorderLayout { + + public static final int NORTH = 1; + public static final int SOUTH = 2; + +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BoxLayout.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BoxLayout.java new file mode 100644 index 0000000000000000000000000000000000000000..cbc98b8b3e025ea383740b99fe2389c7277f8ce1 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/BoxLayout.java @@ -0,0 +1,37 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class BoxLayout { + public static int X_AXIS = 1; + public static int Y_AXIS = 2; + + public + BoxLayout( + Component c, + int i ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Clipboard.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Clipboard.java new file mode 100644 index 0000000000000000000000000000000000000000..468158627a1b479407e91171c8bf9abe048d6074 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Clipboard.java @@ -0,0 +1,34 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class Clipboard { + + public void + setContents( + StringSelection s, + StringSelection t ) + { + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Color.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Color.java new file mode 100644 index 0000000000000000000000000000000000000000..a70e4ccf9b3bbff38aa67d81d131bb7e8dbf9164 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Color.java @@ -0,0 +1,28 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class Color { + public static Color BLUE = null; +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Component.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Component.java new file mode 100644 index 0000000000000000000000000000000000000000..23e143c5ecdb9ea9d6b4ed52332fefdeb5af1340 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Component.java @@ -0,0 +1,147 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +Component +{ + public void + setTitle( + String s ) + { + } + + public void + add( + Component c ) + { + } + + public void + add( String str, Component c ) + { + } + + public void + add( int i, Component c ) + { + } + + public void + setEnabled( + boolean b ) + { + } + + public void + setVisible( + boolean b ) + { + } + + public void + setEditable( + boolean b ) + { + } + + public void + setResizable( + boolean b ) + { + } + + public void + setSize( + int i, int j ) + { + } + + public void + setPreferredSize( + Dimension d ) + { + } + + public void + setBorder( + Component c ) + { + } + + public void + setLayout( + BorderLayout l ) + { + } + + public void + setLayout( + BoxLayout l ) + { + } + + public void + setCursor( + Cursor c ) + { + } + + public void + setForeground( + Color c ) + { + } + + public void + pack() + { + + } + public void + repaint() + { + + } + + public Toolkit + getToolkit() + { + return( new Toolkit()); + } + + public void + addMouseListener( + MouseAdapter l ) + { + + } + + public void + addWindowListener( + WindowAdapter l ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Cursor.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Cursor.java new file mode 100644 index 0000000000000000000000000000000000000000..d853ad637875eb2e118ca543a909acace14f3433 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Cursor.java @@ -0,0 +1,35 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class Cursor { + public static Cursor HAND_CURSOR = null; + + public + Cursor( + Cursor c ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Dimension.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Dimension.java new file mode 100644 index 0000000000000000000000000000000000000000..7f2d1d249f55fde7d1193977b862b6c769652bf4 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Dimension.java @@ -0,0 +1,29 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class Dimension { + + public Dimension( int x, int y ){} +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JApplet.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JApplet.java new file mode 100644 index 0000000000000000000000000000000000000000..1dc4af7c77f4a7e2125cde587d0292e04cd5093b --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JApplet.java @@ -0,0 +1,61 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +import java.net.URL; + +public class JApplet extends JFrame{ + + public URL + getCodeBase() + { + return( null ); + } + + public AppletContext + getAppletContext() + { + return( null ); + } + + public String + getParameter( + String name ) + { + return( null ); + } + + public void + showStatus( + String str ) + { + System.out.println( "status: " + str ); + } + + public void + start() + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JButton.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JButton.java new file mode 100644 index 0000000000000000000000000000000000000000..1097c15efd7aa0eb15364fcbad6499f3faa1309f --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JButton.java @@ -0,0 +1,42 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JButton + extends Component +{ + public + JButton( + String name ) + { + } + + public void + addActionListener( + ActionListener l ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JCheckBox.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JCheckBox.java new file mode 100644 index 0000000000000000000000000000000000000000..2e455b2e99f23a6990f543372d72442064490638 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JCheckBox.java @@ -0,0 +1,51 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JCheckBox + extends Component +{ + boolean selected; + + public + JCheckBox( + String str ) + { + + } + + public void + setSelected( + boolean b ) + { + selected = b; + } + + public boolean + isSelected() + { + return( selected ); + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JComboBox.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JComboBox.java new file mode 100644 index 0000000000000000000000000000000000000000..44ef67181e3053f4504e040154544cbf842019e9 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JComboBox.java @@ -0,0 +1,51 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JComboBox + extends Component +{ + private int index; + + public void + setSelectedIndex( + int i ) + { + index = i; + } + + public int + getSelectedIndex() + { + return( index ); + } + + public void + addItem( + String str ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JFrame.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JFrame.java new file mode 100644 index 0000000000000000000000000000000000000000..a6984af5b610519e659ab78a1965a36ba768b3d6 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JFrame.java @@ -0,0 +1,67 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JFrame + extends Component +{ + private Panel content_pane = new Panel(); + + public + JFrame() + { + + } + + public + JFrame( + String s ) + { + + } + + public Panel + getContentPane() + { + return( content_pane ); + } + + public void + toBack() + { + } + + public void + destroy() + { + + } + + public void + dispose() + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JLabel.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JLabel.java new file mode 100644 index 0000000000000000000000000000000000000000..5f1b79a833c6dbe7ece8be028fd5bf4ce3d740d1 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JLabel.java @@ -0,0 +1,54 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JLabel + extends Component +{ + public + JLabel() + { + } + + public + JLabel( + String s ) + { + + } + + public void + setText( + String s ) + { + + } + + public void + setAlignmentY( + float f ) + { + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JOptionPane.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JOptionPane.java new file mode 100644 index 0000000000000000000000000000000000000000..313efd187542be8996a71f83c73ca6a79b448ac9 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JOptionPane.java @@ -0,0 +1,49 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JOptionPane +{ + public static final int INFORMATION_MESSAGE = 0; + + public static void + showMessageDialog( + Object wha, + String str ) + { + System.out.println( "dialog: " + str ); + } + + public static void + showMessageDialog( + Object wha, + String str1, + String str2, + int a ) + { + System.out.println( "dialog: " + str1 + "/" + str2 ); + } + +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JPanel.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JPanel.java new file mode 100644 index 0000000000000000000000000000000000000000..0b4a849844a24e25d93bda4f9f8a6b8ee2f90079 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JPanel.java @@ -0,0 +1,43 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JPanel + extends Component +{ + @Override + public void + add( Component c ) + { + + } + + @Override + public void + add( String str, Component c ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JProgressBar.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JProgressBar.java new file mode 100644 index 0000000000000000000000000000000000000000..9105bde5d0eeb6609bc2079d68cde71c9dba974e --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JProgressBar.java @@ -0,0 +1,74 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JProgressBar + extends Component +{ + private boolean indeterminate; + + public void + setString( + String str ) + { + } + + public void + setValue( + int i ) + { + } + + public void + setMinimum( + int i ) + { + } + + public void + setMaximum( + int i ) + { + } + + public void + setStringPainted( + boolean b ) + { + } + + public void + setIndeterminate( + boolean b ) + { + indeterminate = b; + } + + public boolean + isIndeterminate() + { + return( indeterminate ); + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JScrollPane.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JScrollPane.java new file mode 100644 index 0000000000000000000000000000000000000000..aaa1ee7fd534887a4733c5313c82533bfe3f1b27 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JScrollPane.java @@ -0,0 +1,36 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JScrollPane + extends Component +{ + public + JScrollPane( + Component p ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JSpinner.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JSpinner.java new file mode 100644 index 0000000000000000000000000000000000000000..b330bc0dc992c0bf87cf01971442579dd59c90dd --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JSpinner.java @@ -0,0 +1,49 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JSpinner + extends Component +{ + private SpinnerNumberModel model; + + public int + getValue() + { + if ( model == null ){ + + return( 0 ); + } + + return( model.getValue()); + } + + public void + setModel( + SpinnerNumberModel _model ) + { + model = _model; + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JTextArea.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JTextArea.java new file mode 100644 index 0000000000000000000000000000000000000000..05b93b9846c07ef1c338ae2a09aa78f6e5f5b27e --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JTextArea.java @@ -0,0 +1,69 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JTextArea + extends Component +{ + private String text = ""; + + public + JTextArea( + String str, + int a, + int b ) + { + text = str; + } + + public void + append( + String str ) + { + Tcpbw100UIWrapperListener listener = Tcpbw100UIWrapper.current_adapter; + + if ( listener != null ){ + + listener.reportDetail( str ); + + }else{ + + System.out.println( "text: " + str ); + } + + text += str; + } + + public String + getText() + { + return( text ); + } + + public void + selectAll() + { + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JTextPane.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JTextPane.java new file mode 100644 index 0000000000000000000000000000000000000000..bd4cb39739e45a268be635222bd46ff4012f6741 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JTextPane.java @@ -0,0 +1,55 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +JTextPane + extends Component +{ + private StyledDocument sd = new StyledDocument(); + + public void + insertComponent( + Component comp ) + { + } + + public StyledDocument + getStyledDocument() + { + return( sd ); + } + + public void + setSelectionStart( + int i ) + { + } + + public void + setSelectionEnd( + int i ) + { + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/MouseAdapter.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/MouseAdapter.java new file mode 100644 index 0000000000000000000000000000000000000000..eb5f6c61b05971162a02e529acc17ba2a2ff89a5 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/MouseAdapter.java @@ -0,0 +1,28 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class MouseAdapter { + +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/MouseEvent.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/MouseEvent.java new file mode 100644 index 0000000000000000000000000000000000000000..f6f89ef49eee4c10c568f44d8ebc7f7165bd7904 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/MouseEvent.java @@ -0,0 +1,28 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class MouseEvent { + +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Panel.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Panel.java new file mode 100644 index 0000000000000000000000000000000000000000..0ad9817414331914b159c6649c34c37c49577b97 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Panel.java @@ -0,0 +1,40 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +Panel + extends Component +{ + public void + validate() + { + } + + public void + remove( + Component c ) + { + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/SpinnerNumberModel.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/SpinnerNumberModel.java new file mode 100644 index 0000000000000000000000000000000000000000..6dfe588995620710e8fd7649f67b383a98d7db93 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/SpinnerNumberModel.java @@ -0,0 +1,49 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +SpinnerNumberModel +{ + private int value; + + public void + setValue( + int i ) + { + value = i; + } + + public int + getValue() + { + return( value ); + } + + public void + setMinimum( + int i ) + { + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/StringSelection.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/StringSelection.java new file mode 100644 index 0000000000000000000000000000000000000000..0b72829fcab69dcd224cd53dccb883ec49cfdc71 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/StringSelection.java @@ -0,0 +1,34 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class StringSelection { + + public + StringSelection( + String s ) + { + + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/StyledDocument.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/StyledDocument.java new file mode 100644 index 0000000000000000000000000000000000000000..ec805e57f4fca9ca7fc4b365e89f8256b2db46cb --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/StyledDocument.java @@ -0,0 +1,58 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +StyledDocument +{ + public String str = ""; + + public int + getLength() + { + return( str.length()); + } + + public void + insertString( + int offset, + String s, + Object x ) + + throws BadLocationException + { + Tcpbw100UIWrapperListener listener = Tcpbw100UIWrapper.current_adapter; + + if ( listener != null ){ + + listener.reportSummary( s ); + + }else{ + + System.out.println( "doc: " + s ); + } + + str += s; + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Tcpbw100UIWrapper.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Tcpbw100UIWrapper.java new file mode 100644 index 0000000000000000000000000000000000000000..0127e667fc038763cef2e4810f41dfdd2bbe7e48 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Tcpbw100UIWrapper.java @@ -0,0 +1,37 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class +Tcpbw100UIWrapper +{ + public static Tcpbw100UIWrapperListener current_adapter; + + public + Tcpbw100UIWrapper( + Tcpbw100UIWrapperListener adapter ) + { + current_adapter = adapter; + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Tcpbw100UIWrapperListener.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Tcpbw100UIWrapperListener.java new file mode 100644 index 0000000000000000000000000000000000000000..1888a5966914a32e0f73369b4b27a54b4938bc2e --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Tcpbw100UIWrapperListener.java @@ -0,0 +1,36 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public interface +Tcpbw100UIWrapperListener +{ + public void + reportSummary( + String str ); + + public void + reportDetail( + String str ); +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Toolkit.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Toolkit.java new file mode 100644 index 0000000000000000000000000000000000000000..25013e93f0b46fd6cca93fd420bbdd74de24635b --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/Toolkit.java @@ -0,0 +1,33 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class Toolkit { + + public Clipboard + getSystemClipboard() + { + return( new Clipboard()); + } +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/WindowAdapter.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/WindowAdapter.java new file mode 100644 index 0000000000000000000000000000000000000000..2e0990429313ef083bae8f97b08947feae296ce0 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/WindowAdapter.java @@ -0,0 +1,28 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class WindowAdapter { + +} diff --git a/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/WindowEvent.java b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/WindowEvent.java new file mode 100644 index 0000000000000000000000000000000000000000..631ee54c50ed1243e1d8be8b21848407a0fb48f6 --- /dev/null +++ b/apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/WindowEvent.java @@ -0,0 +1,28 @@ +/* + * Created on May 20, 2010 + * Created by Paul Gardner + * + * Copyright 2010 Vuze, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details ( see the LICENSE file ). + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + + +package com.vuze.plugins.mlab.tools.ndt.swingemu; + +public class WindowEvent { + +}