1 32 33 package it.businesslogic.ireport.gui.command; 34 35 import it.businesslogic.ireport.OperationType; 36 import it.businesslogic.ireport.ReportElement; 37 import it.businesslogic.ireport.TransformationType; 38 import java.awt.Point ; 39 40 43 public class FormatCommandSameHeight extends FormatCommand { 44 { 45 operationType = OperationType.SAME_HEIGHT; 46 } 47 48 int height; 49 50 51 public void preparation() { 52 height = ((ReportElement) this.getSelectedElements().firstElement()).height; 53 } 54 55 public void modify() { 56 re.trasform(new Point (0,height-re.height), TransformationType.TRANSFORMATION_RESIZE_SE); 57 } 58 59 } 60 | Popular Tags |