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 43 public class FormatCommandAlignLeft extends FormatCommand { 44 { 45 operationType = OperationType.ALIGN_LEFT; 46 } 47 48 int left; 49 50 public void preparation() { 51 left = ((ReportElement) this.getSelectedElements().firstElement()).getPosition().x; 52 } 53 54 public void modify() { 55 re.setPosition(new Point (left, re.getPosition().y)); 57 58 } 59 60 } 61 | Popular Tags |