/*-
*******************************************************************************
* Copyright (c) 2011, 2014 Diamond Light Source Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Peter Chang - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.dawnsci.analysis.dataset.roi;
import java.io.Serializable;
/**
* Class for rectangular region of interest : XAxis line type
*/
public class XAxisLineBoxROI extends RectangularROI implements Serializable {
/**
* Default square of 10 pixels
*/
public XAxisLineBoxROI() {
super(10, 0.0);
}
/**
* Square constructor
*
* @param width
* @param angle
*/
public XAxisLineBoxROI(double width, double angle) {
super(0, 0, width, width, angle);
}
/**
* @param width
* @param height
* @param angle
*/
public XAxisLineBoxROI(double width, double height, double angle) {
super(0, 0, width, height, angle);
}
/**
* @param ptx
* @param pty
* @param width
* @param height
* @param angle
*/
public XAxisLineBoxROI(double ptx, double pty, double width, double height, double angle) {
super(ptx, pty, width, height, angle, false);
}
/**
* @param ptx
* @param pty
* @param width
* @param height
* @param angle
* @param clip
*/
public XAxisLineBoxROI(double ptx, double pty, double width, double height, double angle, boolean clip) {
super(ptx, pty, width, height, angle, clip);
}
}