XRange.java
/*
* Created on 2005/07/28
* Copyright (C) 2005 Koga Laboratory. All rights reserved.
*
*/
package org.mklab.tool.graph.gnuplot.decoration;
/**
* x軸に関する描画範囲を表すクラスです。
*
* @author koga
* @version $Revision: 1.8 $, 2005/07/28
*/
public class XRange extends Range implements Cloneable {
/**
* コンストラクタ
*
* @param min 最小値
* @param max 最大値
*/
public XRange(final double min, final double max) {
super(min, max);
}
/**
* @see org.mklab.tool.graph.gnuplot.decoration.GnuplotComponent#getCommand()
*/
@SuppressWarnings("nls")
public String getCommand() {
return "set xrange [" + getMinimum() + ":" + getMaximum() + "]";
}
/**
* Object#clone()
*/
@Override
public Object clone() {
final XRange inst = new XRange(this.getMinimum(), this.getMaximum());
return inst;
}
}