1 32 33 package it.businesslogic.ireport.gui.command; 34 35 import it.businesslogic.ireport.OperationType; 36 import it.businesslogic.ireport.ReportElement; 37 import java.awt.Point ; 38 39 42 public class FormatCommandAlignTop extends FormatCommand { 43 { 44 operationType = OperationType.ALIGN_TOP; 45 } 46 int top; 47 49 public void preparation() { 50 top = ((ReportElement) this.getSelectedElements().firstElement()).getPosition().y; 51 } 52 53 public void modify() { 54 re.setPosition(new Point (re.getPosition().x, top)); 55 } 56 57 } 58 | Popular Tags |