// Path: jfxvnc-net/src/main/java/org/jfxvnc/net/rfb/codec/Encoding.java
// public enum Encoding {
// 
// 
// 
//   UNKNOWN(Integer.MIN_VALUE),
// 
//   RAW(0),
// 
//   COPY_RECT(1),
// 
//   RRE(2),
// 
//   CO_RRE(4),
// 
//   HEXTILE(5),
// 
//   ZLIB(6),
// 
//   TIGHT(7),
// 
//   ZLIB_HEX(8),
// 
//   TRLE(15),
// 
//   ZRLE(16),
// 
//   H_ZYWRLE(17),
// 
//   AW_XZ(18),
// 
//   AW_XZYW(19),
// 
//   DESKTOP_SIZE(-223),
// 
//   CURSOR(-239);
// 
//   private static Logger logger = LoggerFactory.getLogger(Encoding.class);
// 
//   private final int type;
// 
//   private Encoding(int type) {
//     this.type = type;
//   }
// 
//   public static Encoding valueOf(int type) {
//     for (Encoding e : values()) {
//       if (e.type == type) {
//         return e;
//       }
//     }
//     logger.error("unknown encoding: {}", type);
//     return UNKNOWN;
//   }
// 
//   public int getType() {
//     return type;
//   }
// }


import java.util.List;
import org.jfxvnc.net.rfb.codec.Encoding;
import java.util.ArrayList;
/*******************************************************************************
 * Copyright (c) 2016 comtel inc.
 *
 * Licensed under the Apache License, version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 *******************************************************************************/
package org.jfxvnc.net.rfb.render.rect;



public class HextileImageRect extends ImageRect {

  protected final List<RawImageRect> rects;

  public HextileImageRect(int x, int y, int width, int height) {
    super(x, y, width, height);
    rects = new ArrayList<>();
  }

  public List<RawImageRect> getRects() {
    return rects;
  }

  @Override
// Path: jfxvnc-net/src/main/java/org/jfxvnc/net/rfb/codec/Encoding.java
// public enum Encoding {
// 
// 
// 
//   UNKNOWN(Integer.MIN_VALUE),
// 
//   RAW(0),
// 
//   COPY_RECT(1),
// 
//   RRE(2),
// 
//   CO_RRE(4),
// 
//   HEXTILE(5),
// 
//   ZLIB(6),
// 
//   TIGHT(7),
// 
//   ZLIB_HEX(8),
// 
//   TRLE(15),
// 
//   ZRLE(16),
// 
//   H_ZYWRLE(17),
// 
//   AW_XZ(18),
// 
//   AW_XZYW(19),
// 
//   DESKTOP_SIZE(-223),
// 
//   CURSOR(-239);
// 
//   private static Logger logger = LoggerFactory.getLogger(Encoding.class);
// 
//   private final int type;
// 
//   private Encoding(int type) {
//     this.type = type;
//   }
// 
//   public static Encoding valueOf(int type) {
//     for (Encoding e : values()) {
//       if (e.type == type) {
//         return e;
//       }
//     }
//     logger.error("unknown encoding: {}", type);
//     return UNKNOWN;
//   }
// 
//   public int getType() {
//     return type;
//   }
// }


// Path: jfxvnc-net/src/main/java/org/jfxvnc/net/rfb/render/rect/HextileImageRect.java
import java.util.List;
import org.jfxvnc.net.rfb.codec.Encoding;
import java.util.ArrayList;

/*******************************************************************************
 * Copyright (c) 2016 comtel inc.
 *
 * Licensed under the Apache License, version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 *******************************************************************************/
package org.jfxvnc.net.rfb.render.rect;



public class HextileImageRect extends ImageRect {

  protected final List<RawImageRect> rects;

  public HextileImageRect(int x, int y, int width, int height) {
    super(x, y, width, height);
    rects = new ArrayList<>();
  }

  public List<RawImageRect> getRects() {
    return rects;
  }

  @Override
  public Encoding getEncoding() {