net.sourceforge.jpcap.client
Class CommRenderer

java.lang.Object
  |
  +--net.sourceforge.jpcap.client.CommRenderer

public class CommRenderer
extends java.lang.Object

A rendering of communication between two hosts.


Field Summary
protected static java.util.HashSet slots
           
 
Constructor Summary
CommRenderer(java.awt.Canvas canvas, Packet packet, HostRenderer hostA, HostRenderer hostB, java.lang.String description)
          Create a new communication renderer.
 
Method Summary
 java.lang.String getDescription()
          Fetch a description (read protocol name) of the communication associated with this renderer.
 void incrementByteCount(long newBytes)
           
 void incrementConnectionCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

slots

protected static java.util.HashSet slots
Constructor Detail

CommRenderer

public CommRenderer(java.awt.Canvas canvas,
                    Packet packet,
                    HostRenderer hostA,
                    HostRenderer hostB,
                    java.lang.String description)
Create a new communication renderer.
Parameters:
canvas - the canvas where this communication is being drawn.
Method Detail

getDescription

public java.lang.String getDescription()
Fetch a description (read protocol name) of the communication associated with this renderer.

incrementConnectionCount

public void incrementConnectionCount()

incrementByteCount

public void incrementByteCount(long newBytes)