1 32 33 package it.businesslogic.ireport.gui.command; 34 35 import it.businesslogic.ireport.OperationType; 36 import java.awt.Point ; 37 38 41 public class FormatCommandAlignToRightMargin extends FormatCommand { 42 { 43 operationType = OperationType.ALIGN_TO_RIGHT_MARGIN; 44 } 45 46 int rightMargin; 47 48 public void preparation() { 49 rightMargin = jrf.getReport().getRightMargin(); 50 } 51 52 public void modify() { 53 re.setPosition( new Point ( jrf.getReport().getWidth() - rightMargin-re.getWidth()+ 10, 54 re.getPosition().y)); 55 56 } 57 58 } 59 | Popular Tags |