Examples of RotationEnum


Examples of net.sf.jasperreports.engine.type.RotationEnum

 
  /**
   *
   */
  public static RotationEnum getRotationValue(JRComponentElement element)  {
    RotationEnum ownRotation = ((BarbecueComponent)element.getComponent()).getOwnRotation();
    if (ownRotation != null) {
      return ownRotation;
    }
    JRStyle style = JRStyleResolver.getBaseStyle(element);
    if (style != null) {
      RotationEnum rotation = style.getRotationValue();
      if (rotation != null) {
        return rotation;
      }
    }
    return RotationEnum.NONE;
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

  /**
   * @deprecated Replaced by {@link #getRotationValue(JRStyle)}.
   */
  public static Byte getRotation(JRStyle style)
  {
    RotationEnum rotation = getRotationValue(style);
    return rotation == null ? null : rotation.getValueByte();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

  /**
   *
   */
  public static RotationEnum getRotationValue(JRCommonText element)
  {
    RotationEnum ownRotation = element.getOwnRotationValue();
    if (ownRotation != null)
    {
      return ownRotation;
    }
    JRStyle style = getBaseStyle(element);
    if (style != null)
    {
      RotationEnum rotation = style.getRotationValue();
      if (rotation != null)
      {
        return rotation;
      }
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

  /**
   *
   */
  public static RotationEnum getRotationValue(JRStyle style)
  {
    RotationEnum ownRotation = style.getOwnRotationValue();
    if (ownRotation != null)
    {
      return ownRotation;
    }
    JRStyle baseStyle = getBaseStyle(style);
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

    if (verticalAlignment != null)
    {
      text.setVerticalAlignment(verticalAlignment);
    }

    RotationEnum rotation = RotationEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_rotation));
    if (rotation != null)
    {
      text.setRotation(rotation);
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

   */
  protected static TextAlignHolder getTextAlignHolder(JRPrintText textElement)
  {
    HorizontalAlignEnum horizontalAlignment;
    VerticalAlignEnum verticalAlignment;
    RotationEnum rotation = textElement.getRotationValue();

    switch (textElement.getRotationValue())
    {
      case LEFT :
      {
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

      }
      style.getLineBox().setRightPadding(Integer.parseInt(padding));
    }


    RotationEnum rotation = RotationEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_rotation));
    if (rotation != null)
    {
      style.setRotation(rotation);
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

  public static TextAlignHolder getTextAlignHolder(JRPrintText textElement)
  {
    HorizontalAlignEnum horizontalAlignment;
    VerticalAlignEnum verticalAlignment;
    RotationEnum rotation = textElement.getRotationValue();

    switch (textElement.getRotationValue())
    {
      case LEFT :
      {
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

   
    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()
          );
View Full Code Here

Examples of net.sf.jasperreports.engine.type.RotationEnum

      {
        backcolor = JRColorUtil.getColorHexa(gridCell.getBackcolor());
      }
    }

    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)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.