ZRange.java

/*
 * Created on 2005/07/28
 * Copyright (C) 2005 Koga Laboratory. All rights reserved.
 *
 */
package org.mklab.tool.graph.gnuplot.decoration;

/**
 * z軸に関する描画範囲を表すクラスです。
 * 
 * @author koga
 * @version $Revision: 1.7 $, 2005/07/28
 */
public class ZRange extends Range implements Cloneable {

  /**
   * コンストラクタ
   * 
   * @param min 最小値
   * @param max 最大値
   */
  public ZRange(double min, double max) {
    super(min, max);
  }

  /**
   * @see org.mklab.tool.graph.gnuplot.decoration.GnuplotComponent#getCommand()
   */
  @SuppressWarnings("nls")
  public String getCommand() {
    return "set zrange [" + getMinimum() + ":" + getMaximum() + "]";
  }

  /**
   * Object#clone()
   */
  @Override
  public Object clone() {
    ZRange inst = new ZRange(this.getMinimum(), this.getMaximum());
    return inst;
  }

}