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 FormatCommandSameWidth extends FormatCommand { 44 { 45 operationType = OperationType.SAME_WIDTH; 46 } 47 48 int width; 49 50 51 public void preparation() { 52 width = ((ReportElement) this.getSelectedElements().firstElement()).width; 53 } 54 55 public void modify() { 56 re.trasform(new Point (width - re.getWidth(),0), TransformationType.TRANSFORMATION_RESIZE_SE); 57 58 } 59 60 } 61 | Popular Tags |