/*
 * Copyright (C) 2015 Pedro Vicente Gomez Sanchez.
 *
 * 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 com.github.pedrovgs.nox;

import android.graphics.drawable.Drawable;

/**
 * Contains all the NoxView configurable elements needed to render a list of NoxItems inside
 * NoxView.
 *
 * @author Pedro Vicente Gomez Sanchez.
 */
class NoxConfig {

  private float noxItemSize;
  private float noxItemMargin;
  private Drawable placeholder;

  float getNoxItemSize() {
    return noxItemSize;
  }

  void setNoxItemSize(float noxItemSize) {
    this.noxItemSize = noxItemSize;
  }

  void setNoxItemMargin(float noxItemMargin) {
    this.noxItemMargin = noxItemMargin;
  }

  float getNoxItemMargin() {
    return noxItemMargin;
  }

  void setPlaceholder(Drawable placeholder) {
    this.placeholder = placeholder;
  }

  Drawable getPlaceholder() {
    return placeholder;
  }
}

@@ -958,384 +958,979 @@
 %0A%0A  
-float getNoxItemSize() %7B%0A    return noxItemSize;%0A  %7D%0A%0A  void setNoxItemSize(float noxItemSize) %7B%0A    this.noxItemSize = noxItemSize;%0A  %7D%0A%0A  void setNoxItemMargin(float noxItemMargin) %7B%0A    this.noxItemMargin = noxItemMargin;%0A  %7D%0A%0A  float getNoxItemMargin() %7B%0A    return noxItemMargin;%0A  %7D%0A%0A  void setPlaceholder(Drawable placeholder) %7B%0A    this.placeholder = placeholder;%0A  %7D%0A
+/**%0A   * Returns the size of the NoxItem instance drawn inside NoxView.%0A   */%0A  float getNoxItemSize() %7B%0A    return noxItemSize;%0A  %7D%0A%0A  /**%0A   * Configures the size of the NoxItem instance drawn inside NoxView.%0A   */%0A  void setNoxItemSize(float noxItemSize) %7B%0A    this.noxItemSize = noxItemSize;%0A  %7D%0A%0A  /**%0A   * Returns the margin of the NoxItem instance drawn inside NoxView.%0A   */%0A  float getNoxItemMargin() %7B%0A    return noxItemMargin;%0A  %7D%0A%0A  /**%0A   * Configures the margin of the NoxItem instance drawn inside NoxView.%0A   */%0A  void setNoxItemMargin(float noxItemMargin) %7B%0A    this.noxItemMargin = noxItemMargin;%0A  %7D%0A%0A  /**%0A   * Configures the placeholder used to draw a NoxItem instance if the NoxItem object has no%0A   * placeholder configured.%0A   */%0A  void setPlaceholder(Drawable placeholder) %7B%0A    this.placeholder = placeholder;%0A  %7D%0A%0A  /**%0A   * Returns the placeholder used to draw a NoxItem instance if the NoxItem object has no%0A   * placeholder configured.%0A   */
 %0A  D

Add javadoc to NoxConfig