private void creatExample() {
   Band p = new Band();
   p.mask = false;
   p.xPos1 = -1;
   p.yPos1 = 100;
   p.xPos2 = -1;
   p.yPos2 = 100;
   p.brightness = -50;
   p.contrast = 0;
   p.saturation = 0;
   mBands.add(0, p);
   mCurrentBand = p;
   trimVector();
 }
 public void setParameter(int type, int value) {
   mCurrentBand.mask = false;
   switch (type) {
     case PARAM_BRIGHTNESS:
       mCurrentBand.brightness = value;
       break;
     case PARAM_SATURATION:
       mCurrentBand.saturation = value;
       break;
     case PARAM_CONTRAST:
       mCurrentBand.contrast = value;
       break;
     default:
       throw new IllegalArgumentException("no such type " + type);
   }
 }
  @Override
  public void deSerializeRepresentation(JsonReader sreader) throws IOException {
    sreader.beginObject();
    Vector<Band> points = new Vector<Band>();

    while (sreader.hasNext()) {
      String name = sreader.nextName();
      if (name.startsWith(LINE_NAME)) {
        int pointNo = Integer.parseInt(name.substring(LINE_NAME.length()));
        sreader.beginArray();
        Band p = new Band();
        p.mask = false;
        sreader.hasNext();
        p.xPos1 = sreader.nextInt();
        sreader.hasNext();
        p.yPos1 = sreader.nextInt();
        sreader.hasNext();
        p.xPos2 = sreader.nextInt();
        sreader.hasNext();
        p.yPos2 = sreader.nextInt();
        sreader.hasNext();
        p.brightness = sreader.nextInt();
        sreader.hasNext();
        p.contrast = sreader.nextInt();
        sreader.hasNext();
        p.saturation = sreader.nextInt();
        sreader.hasNext();
        sreader.endArray();
        points.add(p);

      } else {
        sreader.skipValue();
      }
    }
    mBands = points;
    trimVector();
    mCurrentBand = mBands.get(0);
    sreader.endObject();
  }