//
// https://www.ramecera.it/myscrewdriver.html
// e-mail: screwdriver@ramecera.it
//
/* 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 */
package it.ramecera.salad.graphic;

import java.awt.Rectangle;

/**
 * <p>
 * Simple container of 2 auxiliary rectangles for the management of the
 * progress bars.
 * </p>
 * <p>
 * Creation date: 2020-04-09<br>
 * Last updated: 2020-04-09
 * </p>
 * <p>
 * Changes:<br>
 * 2020-04-09: stabilization on ver. 1.0.0<br>
 * </p>
 * 
 * @author M. Maglioni */

public class ProgressBarAccess {
	/** rectangle for managing the progress bar */
	public Rectangle bar = new Rectangle();
	/** rectangle for label management */
	public Rectangle sinistra = new Rectangle();
	/** rectangle for label management on the left of the bar */
	public Rectangle testa = new Rectangle();

	/** useful constructor
	 * 
	 * @param barx the rectangle for the progress bar
	 * @param leftx the rectangle for the label
	 * @param testax the rectangle for the label to the left of the
	 *        bar */
	public ProgressBarAccess(Rectangle barx, Rectangle leftx,
			Rectangle testax) {
		bar = barx;
		sinistra = leftx;
		testa = testax;
		bar.x = 0;
		bar.y = 0;
		sinistra.x = 0;
		sinistra.y = 0;
		testa.x = 0;
		testa.y = 0;
	}

	/** useful constructor
	 * 
	 * @param barx the rectangle for the progress bar
	 * @param leftx the rectangle for the label on the left of the
	 *        bar */
	public ProgressBarAccess(Rectangle barx, Rectangle leftx) {
		bar = barx;
		sinistra = leftx;
		bar.x = 0;
		bar.y = 0;
		sinistra.x = 0;
		sinistra.y = 0;
	}
}
