/FileExtraction/Java_unseen/rubato-composer_rubato-composer/java/src/org/rubato/rubettes/bigbang/view/model/tools/TranslationTool.java
package org.rubato.rubettes.bigbang.view.model.tools;

import org.rubato.rubettes.bigbang.view.subview.AbstractPainter;

public class TranslationTool extends DisplayTool {

	private final int SIZE = 20;

	@Override
	public void paint(AbstractPainter painter) {
		painter.setColor(this.BRIGHT);
		painter.fillOval(this.startingPoint.getX()-this.SIZE/2, this.startingPoint.getY()-this.SIZE/2, this.SIZE, this.SIZE);
		if (this.endingPoint != null) {
			painter.setColor(this.DARK);
			painter.drawOval(this.endingPoint.getX()-this.SIZE/2, this.endingPoint.getY()-this.SIZE/2, this.SIZE, this.SIZE);
		}
	}

}
