YTics.java

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

/**
 * y軸の目盛り刻みを表すクラスです。
 * 
 * @author koga
 * @version $Revision: 1.6 $, 2005/08/04
 */
public class YTics extends Tics implements Cloneable {

  /**
   * 新しく生成された<code>YTics</code>オブジェクトを初期化します。
   * 
   * @param start 始点
   * @param increase 増分
   * @param end 終点
   */
  public YTics(double start, double increase, double end) {
    super(start, increase, end);
  }

  /**
   * @see org.mklab.tool.graph.gnuplot.decoration.GnuplotComponent#getCommand()
   */
  @SuppressWarnings("nls")
  public String getCommand() {
    return "set ytics " + getStart() + ", " + getIncrease() + ", " + getEnd();
  }

  /**
   * Object#clone()
   */
  @Override
  public Object clone() {
    YTics inst = new YTics(this.getStart(), this.getIncrease(), this.getEnd());
    return inst;
  }
}