Package it.eng.spagobi.engines.kpi.utils

Examples of it.eng.spagobi.engines.kpi.utils.StyleLabel


      String sizeS = (String) content.getAttribute("STYLE_TITLE.size");
      String colorS = (String) content.getAttribute("STYLE_TITLE.color");
      try {
        Color color = Color.decode(colorS);
        int size = Integer.valueOf(sizeS).intValue();
        styleTitle = new StyleLabel(fontS, size, color);
      } catch (Exception e) {
        logger.error("Wrong style Title settings, use default");
      }

    } else {
      styleTitle = new StyleLabel("Arial", 16, new Color(255, 0, 0));
    }
    this.confMap.put("styleTitle", styleTitle);

    //Getting SUBTITLE and setting its style
    SourceBean styleSubTitleSB = (SourceBean) content.getAttribute("STYLE_SUBTITLE");
    if (styleSubTitleSB != null) {

      String subTitle = (String) content.getAttribute("STYLE_SUBTITLE.name");
      subTitle = replaceParsInString(subTitle);
      setSubName(subTitle);   
      String fontS = (String) content.getAttribute("STYLE_SUBTITLE.font");
      String sizeS = (String) content.getAttribute("STYLE_SUBTITLE.size");
      String colorS = (String) content.getAttribute("STYLE_SUBTITLE.color");
      try {
        Color color = Color.decode(colorS);
        int size = Integer.valueOf(sizeS).intValue();
        styleSubTitle = new StyleLabel(fontS, size, color);
      } catch (Exception e) {
        logger.error("Wrong style SubTitle settings, use default");
      }
    } else {
      styleSubTitle = new StyleLabel("Arial", 12, new Color(0, 0, 0));
    }
    this.confMap.put("styleSubTitle", styleSubTitle);

    // get all the other template parameters
    try {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.kpi.utils.StyleLabel

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.