Package org.g4studio.core.web.report.fcf

Examples of org.g4studio.core.web.report.fcf.Set


    pDto.put("product", "1");
    List alist = g4Reader.queryForList("Demo.getFcfDataList", pDto);
    List aSetList = new ArrayList();
    for (int i = 0; i < alist.size(); i++) {
      Dto dto = (BaseDto)alist.get(i);
      Set set = new Set();
      set.setValue(dto.getAsString("value"));
      aSetList.add(set);
    }
    dataSet1.setData(aSetList);
    dataList.add(dataSet1);
   
    DataSet dataSet2 = new DataSet();
    dataSet2.setSeriesname("产品B");
    dataSet2.setColor("44BC2F");
    pDto.put("product", "2");
    List blist = g4Reader.queryForList("Demo.getFcfDataList", pDto);
    List bSetList = new ArrayList();
    for (int i = 0; i < blist.size(); i++) {
      Dto dto = (BaseDto)blist.get(i);
      Set set = new Set();
      set.setValue(dto.getAsString("value"));
      bSetList.add(set);
    }
    dataSet2.setData(bSetList);
    dataList.add(dataSet2);
    return dataList;
View Full Code Here


    List dataList = (ArrayList) getSessionAttribute(request, "JVM_MEM_LIST");
    if (G4Utils.isEmpty(dataList)) {
      dataList = new ArrayList();
    }
    long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
    Set set0 = new Set();
    set0.setName(new BigDecimal(used)
        .divide(new BigDecimal(Runtime.getRuntime().totalMemory()), 2, BigDecimal.ROUND_HALF_UP)
        .multiply(new BigDecimal(100)).intValue()
        + "%");

    set0.setValue(new Double(used / 1024 / 1024).intValue() + "");
    set0.setColor(G4Constants.CHART_COLORS[G4Utils.getRandom(0, 10).intValue()]);
    dataList.add(set0);
    while (dataList.size() > 10) {
      dataList.remove(dataList.size() - 10);
    }
    setSessionAttribute(request, "JVM_MEM_LIST", dataList);
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      set.setColor(dto.getAsString("color")); //柱状图颜色
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
    //此Key对应的<flashReport />标签的datavar属性
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      set.setColor(dto.getAsString("color")); //柱状图颜色
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
    //此Key对应的<flashReport />标签的datavar属性
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      set.setColor(dto.getAsString("color")); //柱状图颜色
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
    //此Key对应的<flashReport />标签的datavar属性
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      set.setColor(dto.getAsString("color")); //柱状图颜色
      set.setIsSliced(dto.getAsString("issliced"));//浮动
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
    //此Key对应的<flashReport />标签的datavar属性
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      set.setColor(dto.getAsString("color")); //柱状图颜色
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
    //此Key对应的<flashReport />标签的datavar属性
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      //set.setColor(dto.getAsString("color"));
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      set.setColor(dto.getAsString("color"));
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
    //此Key对应的<flashReport />标签的datavar属性
View Full Code Here

    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      //实例化一个图表元数据对象
      Set set = new Set();
      set.setName(dto.getAsString("name")); //名称
      set.setValue(dto.getAsString("value")); //数据值
      set.setColor(dto.getAsString("color")); //柱状图颜色
      set.setJsFunction("fnMyJs(\"xiongchun\")"); //调用的JS函数
      //set.setLink("这里可以是一个下钻的url链接");
      dataList.add(set);
    }
    //将图表数据转为Flash能解析的XML资料格式
    String xmlString = FcfDataMapper.toFcfXmlData(dataList, graphConfig);
View Full Code Here

TOP

Related Classes of org.g4studio.core.web.report.fcf.Set

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.