SourceForge Jpcap

net.sourceforge.jpcap.client
Class HostRenderer

java.lang.Object
  extended by net.sourceforge.jpcap.client.HostRenderer

public class HostRenderer
extends Object

A rendering of a host on a network.

Version:
$Revision: 1.1 $
Author:
Patrick Charles and Jonas Lehmann
Last modified by:
$Author: esmondpitt $
Last modified at:
$Date: 2008/08/21 02:58:12 $

Field Summary
 String hostName
          The host name of the host associated with this renderer.
 String ipAddress
          The IP address of the host associated with this renderer.
 
Constructor Summary
HostRenderer(Canvas canvas, String ipAddress)
          Create a new host renderer.
 
Method Summary
 String getHostName()
          Fetch the name of the host associated with this renderer.
 String getIpAddress()
          Fetch the IP address of the host associated with this renderer.
protected  void setHostName(String hostName)
          Fetch the name of the host associated with this renderer.
 void setPos(int xn, int yn)
           
 String toString()
          Convert this host renderer to a readable string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ipAddress

public String ipAddress
The IP address of the host associated with this renderer.


hostName

public String hostName
The host name of the host associated with this renderer.

Constructor Detail

HostRenderer

public HostRenderer(Canvas canvas,
                    String ipAddress)
Create a new host renderer.

Parameters:
canvas - the canvas where this host is being drawn.
ipAddress - the ip address of the host being drawn.
Method Detail

setPos

public void setPos(int xn,
                   int yn)

toString

public String toString()
Convert this host renderer to a readable string.

Overrides:
toString in class Object

getIpAddress

public String getIpAddress()
Fetch the IP address of the host associated with this renderer.


getHostName

public String getHostName()
Fetch the name of the host associated with this renderer.


setHostName

protected void setHostName(String hostName)
Fetch the name of the host associated with this renderer.


Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.