X2Tics.java
/*
* Created on 2005/08/04
* Copyright (C) 2005 Koga Laboratory. All rights reserved.
*
*/
package org.mklab.tool.graph.gnuplot.decoration;
/**
* X2軸の目盛り刻みを表すクラスです。
*
* @author koga
* @version $Revision: 1.6 $, 2005/08/04
*/
public class X2Tics extends Tics implements Cloneable {
/**
* 新しく生成された<code>X2Tics</code>オブジェクトを初期化します。
*
* @param start 始点
* @param increase 増分
* @param end 終点
*/
public X2Tics(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 x2tics " + getStart() + ", " + getIncrease() + ", " + getEnd();
}
/**
* Object#clone()
*/
@Override
public Object clone() {
X2Tics inst = new X2Tics(this.getStart(), this.getIncrease(), this.getEnd());
return inst;
}
}