Examples of RangeBlocks


Examples of it.eng.spagobi.engines.chart.bo.charttypes.blockcharts.util.RangeBlocks

      String rangePattern = (String)range.getAttribute("pattern");
      Color color=null;
      if(rangeColor!=null){
        color=new Color(Integer.decode(rangeColor).intValue());
      }
      RangeBlocks block=new RangeBlocks(rangeLabel, rangePattern, color);
      ranges.add(block);
    }


    SourceBean styleAnnotationSB = (SourceBean)content.getAttribute(STYLE_ANNOTATION_LABELS);
View Full Code Here

Examples of it.eng.spagobi.engines.chart.bo.charttypes.blockcharts.util.RangeBlocks

    logger.debug("IN");
    super.configureChart(content);

    patternRangeIndex=new HashMap<String, Integer>();
    for(int i=0; i<ranges.size(); i++){
      RangeBlocks rangeBlocks = ranges.get(i);
      patternRangeIndex.put(rangeBlocks.getPattern(), Integer.valueOf(i));
    }
    logger.debug("OUT");
  }
View Full Code Here

Examples of it.eng.spagobi.engines.chart.bo.charttypes.blockcharts.util.RangeBlocks

    String[] labels=new String[ranges.size()+1];
    labels[0]="";

    // ******************** SCALE ****************************
    for (Iterator iterator = ranges.iterator(); iterator.hasNext();) {
      RangeBlocks range = (RangeBlocks) iterator.next();
      Integer index=patternRangeIndex.get(range.getPattern());
      Color color=range.getColor();
      if(color!=null){
        //Paint colorTransparent=new Color(color.getRed(), color.getGreen(), color.getBlue(), 50);     
        Paint colorTransparent=null;
        if(addTransparency==true){
          colorTransparent=new Color(color.getRed(), color.getGreen(), color.getBlue(),50);     
        }
        else{
          colorTransparent=new Color(color.getRed(), color.getGreen(), color.getBlue());               
        }
        paintScale.add(index+0.5, colorTransparent);
      }
      //String insertLabel="            "+range.getLabel();
      String insertLabel=range.getLabel();     
      labels[index+1]=insertLabel;
    }
    renderer.setPaintScale(paintScale);


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.