Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRAlignment


    borderHelper.export(gridCell.getBox());

//    if (element instanceof JRCommonGraphicElement)
//      borderHelper.export(((JRCommonGraphicElement)element).getLinePen());
   
    JRAlignment align = element instanceof JRAlignment ? (JRAlignment)element : null;
    if (align != null)
    {
      JRPrintText text = element instanceof JRPrintText ? (JRPrintText)element : null;
      RotationEnum ownRotation = text == null ? null : text.getOwnRotationValue();
     
      String verticalAlignment =
        getVerticalAlignment(
          align.getOwnVerticalAlignmentValue()
          );
      String textRotation = getTextDirection(ownRotation);

      exportAlignmentAndRotation(verticalAlignment, textRotation);
    }
View Full Code Here


    else if (gridCell.getBackcolor() != null)
    {
      this.backcolor = JRColorUtil.getColorHexa(gridCell.getBackcolor());
    }

    JRAlignment align = element instanceof JRAlignment ? (JRAlignment)element : null;
    if (align != null)
    {
      this.horizontalAlign = XlsxParagraphHelper.getHorizontalAlignment(align.getHorizontalAlignmentValue());//FIXMEXLSX use common util
      this.verticalAlign = DocxCellHelper.getVerticalAlignment(align.getVerticalAlignmentValue());//FIXMEXLSX use common util
    }
   
    this.isWrapText = isWrapText;
    this.isHidden = isHidden;
    this.isLocked = isLocked;
View Full Code Here

    RotationEnum rotation = element instanceof JRPrintText ? ((JRPrintText)element).getRotationValue() : RotationEnum.NONE;
    VerticalAlignEnum vAlign = VerticalAlignEnum.TOP;
    HorizontalAlignEnum hAlign = HorizontalAlignEnum.LEFT;

    JRAlignment alignment = element instanceof JRAlignment ? (JRAlignment)element : null;
    if (alignment != null)
    {
      vAlign = alignment.getVerticalAlignmentValue();
      hAlign = alignment.getHorizontalAlignmentValue();
    }
   
    horizontalAlignment = ParagraphStyle.getHorizontalAlignment(hAlign, vAlign, rotation);
    verticalAlignment = ParagraphStyle.getVerticalAlignment(hAlign, vAlign, rotation);
   
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRAlignment

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.