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

package it.businesslogic.ireport.gui.command;

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

/**
 *
 */
public class FormatCommandAlignBottomToBand extends FormatCommand {
    
        
    {
        operationType = OperationType.ALIGN_BOTTOM_TO_BAND;
    }

    
    public void modify() {
        re.trasform( new Point(0, jrf.getReport().getBandYLocation( re.band)+10 + re.band.getHeight() -
                ( re.getPosition().y + re.getHeight() ) ), TransformationType.TRANSFORMATION_MOVE);
    }
    
}
