1 32 33 package it.businesslogic.ireport.gui.command; 34 35 import it.businesslogic.ireport.OperationType; 36 import it.businesslogic.ireport.TransformationType; 37 import java.awt.Point ; 38 39 42 public class FormatCommandAlignTopToBand extends FormatCommand { 43 { 44 operationType = OperationType.ALIGN_TOP_TO_BAND; 45 } 46 47 public void modify() { 48 49 if (re.getBand() != null) 50 { 51 re.trasform(new Point (0, jrf.getReport().getBandYLocation( re.band) + 10- re.getPosition().y), 52 TransformationType.TRANSFORMATION_MOVE); 53 54 } else if (re.getCell() != null) 55 { 56 re.setPosition(new Point (re.getPosition().x, re.getCell().getTop() + 10)); 57 re.updateRelativePosition(); 58 } 59 } 60 61 } 62 | Popular Tags |