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 FormatCommandAlignCenterVertically extends FormatCommand { 42 { 43 operationType = OperationType.ALIGN_CENTER_VERTICALLY; 44 } 45 46 public void modify() { 47 int center = jrf.getReport().getBandYLocation(re.getBand()) + 10 + re.getBand().getHeight()/2; 48 re.setPosition(new Point (re.getPosition().x, center-(re.getHeight()/2))); 49 } 50 51 } 52 | Popular Tags |