1 30 31 package it.businesslogic.ireport.gui.command; 32 33 import it.businesslogic.ireport.OperationType; 34 import it.businesslogic.ireport.ReportElement; 35 import it.businesslogic.ireport.TransformationType; 36 import java.awt.Point ; 37 38 41 public class FormatCommandElementMaximizeV extends FormatCommand { 42 { 44 operationType = OperationType.ELEMENT_MAXIMIZE_V; 45 } 46 47 void executeDeeper() { 48 49 resetEnumeration(); 50 51 processElements(); 53 sleepUndo = true; 54 55 getCommand(OperationType.ALIGN_TOP_TO_BAND).execute(); 56 int height = 0 ; 57 58 resetEnumeration(); 60 while (e.hasMoreElements()) { 61 re = (ReportElement) e.nextElement(); 62 63 if (re.getCell() != null) 64 { 65 height = re.getCell().getHeight(); 66 re.setHeight(height); 67 re.updateBounds(); 69 70 } 71 else 72 { 73 height = re.getBand().getHeight(); 74 re.setHeight(height); 75 re.updateBounds(); 77 } 78 } 79 80 updateElements(); 81 82 sleepUndo = false; 83 } 84 85 } 86 | Popular Tags |