Package de.tudresden.ws.container

Examples of de.tudresden.ws.container.SumoColor


      int r = resp.content().readUnsignedByte();
      int g = resp.content().readUnsignedByte();
      int b = resp.content().readUnsignedByte();
      int a = resp.content().readUnsignedByte();
     
      output = new SumoColor(r, g, b, a);
   
    }else if(sc.output_type == Constants.TYPE_UBYTE){
     
      output = resp.content().readUnsignedByte();
     
View Full Code Here


      boolean b = (Boolean) input;
      cmd.content().writeUnsignedByte(b ? 1 : 0);
    }
    else if(input.getClass().equals(SumoColor.class)){
   
      SumoColor sc = (SumoColor) input;
      this.cmd.content().writeByte(sc.r);
      this.cmd.content().writeByte(sc.g);
      this.cmd.content().writeByte(sc.b);
      this.cmd.content().writeByte(sc.a);
     
View Full Code Here

    return output;
  }

  public SumoColor getColor(Object obj) {

    SumoColor output = new SumoColor(0, 0, 0, 0);

    try {

      if (obj.getClass().equals(SumoColor.class)) {
        output = (SumoColor) obj;
View Full Code Here

TOP

Related Classes of de.tudresden.ws.container.SumoColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.