Commit 4ed2b87a authored by Kevin Kershaw's avatar Kevin Kershaw

initial checkin

parent 34186ca7
<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.2.0" simple-config="true">
<fileset name="all" enabled="true" check-config-name="DSIT Checkstyle" local="false">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="var" path="CLOVER_RUNTIME"/>
<classpathentry kind="src" output="protocol/target/classes" path="protocol/src/main/java"/>
<classpathentry kind="src" output="protocol/target/test-classes" path="protocol/src/test/java"/>
<classpathentry kind="src" output="common/target/classes" path="common/src/main/java"/>
<classpathentry excluding="**" kind="src" output="common/target/classes" path="common/src/main/resources"/>
<classpathentry kind="src" output="cabletester/target/classes" path="cabletester/src/main/java"/>
<classpathentry kind="src" output="cabletester/target/test-classes" path="cabletester/src/test/java"/>
<classpathentry excluding="**" kind="src" output="cabletester/target/classes" path="cabletester/src/main/resources"/>
<classpathentry kind="src" path="sisniffer/src/main/java"/>
<classpathentry kind="src" path="tool/src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="src" output="tunnelsniffer/target/classes" path="tunnelsniffer/src/main/java"/>
<classpathentry kind="lib" path="thirdparty/mysql-connector-java-5.1.12-bin.jar"/>
<classpathentry kind="lib" path="/Users/jvd/.m2/repository/commons-cli/commons-cli/1.1/commons-cli-1.1.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>cl_truview_2.4</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.cenqua.clover.core.prejavabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.cenqua.clover.core.postjavabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature>
<nature>com.cenqua.clover.core.clovernature</nature>
</natures>
</projectDescription>
#Tue Jan 27 10:50:24 MST 2009
eclipse.preferences.version=1
flush_interval=1000
flush_policy=0
init_string_default=true
init_string_project_relative=true
instrumentation_enabled=false
output_root=.clover/bin
output_root_same_as_project=true
should_qualify_java_lang=true
#Fri Dec 12 11:56:52 MST 2008
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
#Tue Dec 09 14:08:21 MST 2008
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
includeModules=true
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
version=1
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includes>
<include>com.comcast:comcast-truview-protocol</include>
<include>com.comcast:comcast-truview-common</include>
<include>com.comcast:comcast-truview-epgviewer</include>
</includes>
<binaries>
<outputDirectory></outputDirectory>
<includeDependencies>true</includeDependencies>
<unpack>true</unpack>
<outputFileNameMapping />
</binaries>
</moduleSet>
</moduleSets>
<dependencySets>
<dependencySet>
<outputDirectory></outputDirectory>
<outputFileNameMapping></outputFileNameMapping>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includes>
<include>com.comcast:comcast-truview-protocol</include>
<include>com.comcast:comcast-truview-common</include>
<include>com.comcast:comcast-truview-sisniffer</include>
</includes>
<binaries>
<outputDirectory></outputDirectory>
<includeDependencies>true</includeDependencies>
<unpack>true</unpack>
<outputFileNameMapping />
</binaries>
</moduleSet>
</moduleSets>
<dependencySets>
<dependencySet>
<outputDirectory></outputDirectory>
<outputFileNameMapping></outputFileNameMapping>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includes>
<include>com.comcast:comcast-truview-protocol</include>
<include>com.comcast:comcast-truview-common</include>
<include>com.comcast:comcast-truview-tunnelsniffer</include>
</includes>
<binaries>
<outputDirectory></outputDirectory>
<includeDependencies>true</includeDependencies>
<unpack>true</unpack>
<outputFileNameMapping />
</binaries>
</moduleSet>
</moduleSets>
<dependencySets>
<dependencySet>
<outputDirectory></outputDirectory>
<outputFileNameMapping></outputFileNameMapping>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includes>
<include>com.comcast:comcast-truview-protocol</include>
<include>com.comcast:comcast-truview-common</include>
<include>com.comcast:comcast-truview-cabletester</include>
</includes>
<binaries>
<outputDirectory></outputDirectory>
<includeDependencies>true</includeDependencies>
<unpack>true</unpack>
<outputFileNameMapping />
</binaries>
</moduleSet>
</moduleSets>
<dependencySets>
<dependencySet>
<outputDirectory></outputDirectory>
<outputFileNameMapping></outputFileNameMapping>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
\ No newline at end of file
<cabletester DAC="FALSE" TiVo="FALSE" Tru2Way="TRUE" Width="1272" Height="948" LocX="20" LocY="1" readfast="TRUE">
#Thu Sep 25 14:30:46 MDT 2008
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- The artifact Id for this module -->
<artifactId>comcast-truview-cabletester</artifactId>
<!-- The packaging for this module (jar, war) -->
<packaging>jar</packaging>
<!-- The name for this module -->
<name>Comcast - truView - Cabletester Module</name>
<!-- Description for this module -->
<description>Comcast - Cabletester Module</description>
<!--
Parent information; should reference group, artifactId, and version of
the parent POM.
-->
<parent>
<groupId>com.comcast</groupId>
<artifactId>comcast-truview-parent</artifactId>
<version>2.4.0-SNAPSHOT</version>
</parent>
<!-- Dependencies specific to this module. -->
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>com.comcast</groupId>
<artifactId>comcast-truview-common</artifactId>
<version>2.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.comcast</groupId>
<artifactId>comcast-truview-protocol</artifactId>
<version>2.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.comcast</groupId>
<artifactId>comcast-protocol-dcii</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!--
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<obfuscate>true</obfuscate>
<proguardInclude>../proguard2.conf</proguardInclude>
<libs>
<lib>${java.home}/lib/rt.jar</lib>
</libs>
</configuration>
</plugin>
-->
</plugins>
</build>
</project>
package com.comcast.truview.cabletester;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.AbstractButton;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import org.apache.log4j.Logger;
// =======================================================================
// ======================= AnalyzerPanel CLASS
// =======================================================================
/**
* Class for each thread type progress panel.
*/
public class AllPacketPanel extends JPanel implements ActionListener
{
/** log4j logging object. */
private static final Logger logger = Logger.getLogger(AnalyzerPanel.class);
/** The default width of this panel. */
public static final int DEFAULT_WIDTH = 320;
/** The default height of this panel. */
public static final int DEFAULT_HEIGHT = 100;
/** Title of Panel. */
private String title;
// ------------ GUI Variables
/** Panel for Labels in the middle. */
private JComponent labelPanel = new JPanel();
/** Panel for colon's. */
private JComponent colonPanel = new JPanel();
/** Panel with packet count and bps. */
private JComponent infoPanel = new JPanel();
/** Packet Count for panel. */
private JLabel packetCountField = new JLabel("", SwingConstants.RIGHT);
/** Bytes per second. */
private JLabel bwField = new JLabel("", SwingConstants.RIGHT);
/** HTML Browser table. (to the right) */
private BrowserPanel browserText;
/** True if EPG style 'MAP' display on right. */
private String buttonText;
/** The stream view panel. */
private StreamingViewPanel streamViewPanel;
/**
* Main Constructor.
*
* @param inTitle
* - Title for progress panel
* @param inBrow
* - Browser panel for display
*/
public AllPacketPanel(final String inTitle, final BrowserPanel inBrow)
{
this.title = inTitle;
this.browserText = inBrow;
//this.buttonText = "View All Packets";
this.buttonText = null;
this.streamViewPanel = new StreamingViewPanel(browserText);
buildPanel(inTitle);
}
/**
* Action performed.
*
* @param e the e
*/
public void actionPerformed(final ActionEvent e)
{
logger.debug("actionPerformed action event = " + e);
if ("viewData".equals(e.getActionCommand()))
{