/*
 * FormatCommandAlignTop.java
 *
 * Created on 9 mei 2005, 21:36
 */

package it.businesslogic.ireport.gui.command;

import it.businesslogic.ireport.OperationType;
import it.businesslogic.ireport.ReportElement;
import java.awt.Point;

/**
 *
 * @author Robert Lamping
 */
public class FormatCommandAlignLeft extends FormatCommand {
    {
        operationType = OperationType.ALIGN_LEFT; 
    }
    
    int left;

    public void preparation() {
      left = ((ReportElement) jrf.getSelectedElements().firstElement()).getPosition().x;
    }
    
    public void modify() {
        //left = ((ReportElement) jrf.getSelectedElements().firstElement()).getPosition().x;
        re.setPosition(new Point(left, re.getPosition().y));
        
    }
    
}
