Class ImageTransmitter

  • All Implemented Interfaces:
    java.lang.Runnable

    public class ImageTransmitter
    extends java.lang.Object
    implements java.lang.Runnable
    UDP Image Receiver. It uses PNG Tiles into UDP packets.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int KEYFRAME  
      static int tileWidth  
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageTransmitter​(java.net.DatagramSocket socket, java.net.InetAddress remoteHost, int remotePort, java.awt.Rectangle area)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageTransmitter

        public ImageTransmitter​(java.net.DatagramSocket socket,
                                java.net.InetAddress remoteHost,
                                int remotePort,
                                java.awt.Rectangle area)
    • Method Detail

      • start

        public void start()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • setTransmit

        public void setTransmit​(boolean transmit)
        Set Transmit Enabled/Disabled.
        Parameters:
        transmit - boolean Enabled/Disabled
      • getEncoder

        public ImageEncoder getEncoder()
        Get the encoder used to encode Images Tiles.
        Returns:
        encoder TODO javadoc me please
      • setEncoder

        public void setEncoder​(ImageEncoder encoder)
        Set the encoder used to encode Image Tiles.
        Parameters:
        encoder - encoder
      • stop

        public void stop()
        Stops Transmitter.