net.sourceforge.jpcap.client
Class HostRenderer
java.lang.Object
|
+--net.sourceforge.jpcap.client.HostRenderer
- public class HostRenderer
- extends java.lang.Object
A rendering of a host on a network.
Field Summary |
java.lang.String |
hostName
The host name of the host associated with this renderer. |
java.lang.String |
ipAddress
The IP address of the host associated with this renderer. |
Constructor Summary |
HostRenderer(java.awt.Canvas canvas,
java.lang.String ipAddress)
Create a new host renderer. |
Method Summary |
java.lang.String |
getHostName()
Fetch the name of the host associated with this renderer. |
java.lang.String |
getIpAddress()
Fetch the IP address of the host associated with this renderer. |
protected void |
setHostName(java.lang.String hostName)
Fetch the name of the host associated with this renderer. |
void |
setPos(int xn,
int yn)
|
java.lang.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 |
ipAddress
public java.lang.String ipAddress
- The IP address of the host associated with this renderer.
hostName
public java.lang.String hostName
- The host name of the host associated with this renderer.
HostRenderer
public HostRenderer(java.awt.Canvas canvas,
java.lang.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.
setPos
public void setPos(int xn,
int yn)
toString
public java.lang.String toString()
- Convert this host renderer to a readable string.
- Overrides:
toString
in class java.lang.Object
getIpAddress
public java.lang.String getIpAddress()
- Fetch the IP address of the host associated with this renderer.
getHostName
public java.lang.String getHostName()
- Fetch the name of the host associated with this renderer.
setHostName
protected void setHostName(java.lang.String hostName)
- Fetch the name of the host associated with this renderer.