public class ImageTransmitter extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
static int |
KEYFRAME |
static int |
tileWidth |
Constructor and Description |
---|
ImageTransmitter(DatagramSocket socket,
InetAddress remoteHost,
int remotePort,
Rectangle area) |
Modifier and Type | Method and Description |
---|---|
ImageEncoder |
getEncoder()
Get the encoder used to encode Images Tiles.
|
void |
run() |
void |
setEncoder(ImageEncoder encoder)
Set the encoder used to encode Image Tiles.
|
void |
setTransmit(boolean transmit)
Set Transmit Enabled/Disabled.
|
void |
start() |
void |
stop()
Stops Transmitter.
|
public static final int tileWidth
public static final int KEYFRAME
public ImageTransmitter(DatagramSocket socket, InetAddress remoteHost, int remotePort, Rectangle area)
public void start()
public void setTransmit(boolean transmit)
transmit
- boolean Enabled/Disabledpublic ImageEncoder getEncoder()
public void setEncoder(ImageEncoder encoder)
encoder
- encoderpublic void stop()