Package net.sf.jasperreports.engine.base

Examples of net.sf.jasperreports.engine.base.JRBoxPen


  {
    switch (rotation)
    {
      case LEFT :
      {
        JRBoxPen topPen = box.getTopPen();
        Integer topPadding = box.getTopPadding();
       
        box.copyTopPen(box.getLeftPen());
        box.setTopPadding(box.getLeftPadding());

        box.copyLeftPen(box.getBottomPen());
        box.setLeftPadding(box.getBottomPadding());
       
        box.copyBottomPen(box.getRightPen());
        box.setBottomPadding(box.getRightPadding());
       
        box.copyRightPen(topPen);
        box.setRightPadding(topPadding);

        break;
      }
      case RIGHT :
      {
        JRBoxPen topPen = box.getTopPen();
        Integer topPadding = box.getTopPadding();
       
        box.copyTopPen(box.getRightPen());
        box.setTopPadding(box.getRightPadding());

        box.copyRightPen(box.getBottomPen());
        box.setRightPadding(box.getBottomPadding());

        box.copyBottomPen(box.getLeftPen());
        box.setBottomPadding(box.getLeftPadding());

        box.copyLeftPen(topPen);
        box.setLeftPadding(topPadding);
       
        break;
      }
      case UPSIDE_DOWN :
      {
        JRBoxPen topPen = box.getTopPen();
        Integer topPadding = box.getTopPadding();
       
        box.copyTopPen(box.getBottomPen());
        box.setTopPadding(box.getBottomPadding());

        box.copyBottomPen(topPen);
        box.setBottomPadding(topPadding);
       
        JRBoxPen leftPen = box.getLeftPen();
        Integer leftPadding = box.getLeftPadding();
       
        box.copyLeftPen(box.getRightPen());
        box.setLeftPadding(box.getRightPadding());
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.base.JRBoxPen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.