Examples of JRStyle


Examples of net.sf.jasperreports.engine.JRStyle

      JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);
      Map stylesMap = jasperDesign.getStylesMap();

      if (stylesMap.containsKey(styleName))
      {
        JRStyle style = (JRStyle) stylesMap.get(styleName);
        cell.setStyle(style);
      }
      else
      {
        cell.setStyleNameReference(styleName);
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

   
    try
    {
      for (Iterator it = stylesMap.values().iterator(); it.hasNext();)
      {
        JRStyle style = (JRStyle) it.next();
        jasperPrint.addStyle(style);
      }
    }
    catch (JRException e)
    {
      throw new JRRuntimeException(e);
    }

    JRStyle reportDefault = report.getDefaultStyle();
    JRStyle printDefault = null;
    if (reportDefault == null)
    {
      //search for the last default style
      for (Iterator it = stylesMap.values().iterator(); it.hasNext();)
      {
        JRStyle style = (JRStyle) it.next();
        if (style.isDefault())
        {
          printDefault = style;
        }
      }
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

  {
    if (styles != null)
    {
      for (int i = 0; i < styles.length; i++)
      {
        JRStyle style = styles[i];
        stylesMap.put(style.getName(), style);
      }
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

  /**
   *
   */
  public JRStyle resolveStyle(JRStyleContainer originalContainer)
  {
    JRStyle originalStyle = originalContainer.getStyle();
    String nameReference = originalContainer.getStyleNameReference();
    JRStyle style;
    if (originalStyle != null)
    {
      style = originalStyle;
    }
    else if (nameReference != null)
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

  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.JRStyle

    printFrame.setWidth(fillContext.getComponentElement().getWidth());
  }

  protected JRTemplateFrame getFrameTemplate()
  {
    JRStyle style = fillContext.getElementStyle();
    JRTemplateFrame frameTemplate = (JRTemplateFrame) printFrameTemplates.get(style);
    if (frameTemplate == null)
    {
      frameTemplate = new JRTemplateFrame(
            fillContext.getElementOrigin(),
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

    image.setRenderer(renderer);
  }

  protected JRTemplateImage getTemplateImage()
  {
    JRStyle elementStyle = fillContext.getElementStyle();
    JRTemplateImage templateImage = (JRTemplateImage) printTemplates.get(elementStyle);
    if (templateImage == null)
    {
      templateImage = new JRTemplateImage(
          fillContext.getElementOrigin(),
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

    tagHelper.endPageAnchor();
  }

  protected Map getDefaultPdfFontAttributes() {
    Map attrs;
    JRStyle style = jasperPrint.getDefaultStyle();
    if (style != null)
    {
      attrs = new HashMap();
      //FIXME font name for extensions
      attrs.put(JRTextAttribute.PDF_FONT_NAME, style.getPdfFontName());
      attrs.put(JRTextAttribute.PDF_ENCODING, style.getPdfEncoding());
      attrs.put(JRTextAttribute.IS_PDF_EMBEDDED, style.isPdfEmbedded());
    }
    else
    {
      JRReportFont font = jasperPrint.getDefaultFont();
      if (font != null)
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

    if (styleName != null)
    {
      Map stylesMap = jasperDesign.getStylesMap();
      if (stylesMap.containsKey(styleName))
      {
        JRStyle style = (JRStyle) stylesMap.get(styleName);
        styleContainer.setStyle(style);
      }
      else
      {
        styleContainer.setStyleNameReference(styleName);
View Full Code Here

Examples of net.sf.jasperreports.engine.JRStyle

  /**
   *
   */
  protected Map getStyledTextAttributes()
  {
    JRStyle style = getStyle();
    Map styledTextAttributes = (Map)styledTextAttributesMap.get(style);
    if (styledTextAttributes == null)
    {
      styledTextAttributes = new HashMap();
      //JRFontUtil.getAttributes(styledTextAttributes, this, filler.getLocale());
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.