Examples of GraphConfig


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

    caption = caption + "已分配总内存:" + new Double(Runtime.getRuntime().totalMemory() / 1024 / 1024).intValue() + "M ";
    caption = caption
        + "已用内存:"
        + new Double((Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1024 / 1024)
            .intValue() + "M)";
    GraphConfig graphConfig = new GraphConfig();
    graphConfig.setCaption(caption);
    graphConfig.put("divLineColor", "008ED6");
    graphConfig.put("divLineAlpha", "20");
    graphConfig.put("showAlternateHGridColor", "1");
    graphConfig.put("AlternateHGridColor", "BFFFFF");
    graphConfig.put("alternateHGridAlpha", "20");
    graphConfig.put("numberSuffix", "M");
    graphConfig.put("decimalPrecision", "0");
    graphConfig.put("limitsDecimalPrecision", "0");
    graphConfig.put("anchorRadius", "3");
    graphConfig.setXAxisName("%(已用内存/已分配的总内存)");

    List dataList = (ArrayList) getSessionAttribute(request, "JVM_MEM_LIST");
    if (G4Utils.isEmpty(dataList)) {
      dataList = new ArrayList();
    }
View Full Code Here

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

    if (dto.getAsString("product").equals("2")) {
      product = "(产品二)";
    }
    List list = g4Reader.queryForList("Demo.getFcfDataList", dto);
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表" + product);
    //X坐标轴名称
    graphConfig.setXAxisName("月度");
    //数字值前缀
    graphConfig.setNumberPrefix("$");
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《G4Studio开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
    List dataList = new ArrayList();
    //将原始数据对象转换为框架封装的Set报表数据对象
    for (int i = 0; i < list.size(); i++) {
View Full Code Here

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

   * @return
   */
  public ActionForward fcf2DColumnInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表 (产品一)");
    //X坐标轴名称
    graphConfig.setXAxisName("月度");
    //数字值前缀
    graphConfig.setNumberPrefix("$");
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《G4Studio开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
        Dto qDto = new BaseDto();   
        qDto.put("product", "1");
        //查询原始数据
View Full Code Here

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

   * @return
   */
  public ActionForward fcf3DColumnInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表");
    //设置数字值的前缀
    graphConfig.setNumberPrefix("$");
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
        Dto qDto = new BaseDto();   
        qDto.put("product", "1");
        //查询原始数据
View Full Code Here

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

   * @return
   */
  public ActionForward fcfLineInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表");
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
    //设置水平分割线的颜色
    graphConfig.put("divLineColor", "008ED6");
    //设置水平分割线的透明度
    graphConfig.put("divLineAlpha", "20");
    //设置对水平分割区域使用斑马纹
    graphConfig.put("showAlternateHGridColor", "1");
    //设置斑马纹颜色
    graphConfig.put("AlternateHGridColor", "BFFFFF");
    //设置斑马纹的透明度
    graphConfig.put("alternateHGridAlpha", "20");
        Dto qDto = new BaseDto();   
        qDto.put("product", "1");
        //查询原始数据
    List list = g4Reader.queryForList("Demo.getFcfDataList", qDto);
    List dataList = new ArrayList();
View Full Code Here

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

   * @return
   */
  public ActionForward fcf2DPieInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表");
    //设置数字值的前缀
    graphConfig.setNumberPrefix("$");
    graphConfig.setShowNames(new Boolean(true));
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
        Dto qDto = new BaseDto();   
        qDto.put("product", "1");
        //查询原始数据
View Full Code Here

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

   * @return
   */
  public ActionForward fcf3DPieInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表");
    //设置数字值的前缀
    graphConfig.setNumberPrefix("$");
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
        Dto qDto = new BaseDto();   
        qDto.put("product", "1");
        //查询原始数据
View Full Code Here

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

   * @return
   */
  public ActionForward fcfAreaInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表");
    //设置数字值的前缀
    graphConfig.setNumberPrefix("$");
    //graphConfig.setShowValues(true);
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
    //设置水平分割线的颜色
    graphConfig.put("divLineColor", "008ED6");
    //设置水平分割线的透明度
    graphConfig.put("divLineAlpha", "10");
    //设置对水平分割区域使用斑马纹
    graphConfig.put("showAlternateHGridColor", "1");
    //设置斑马纹颜色
    graphConfig.put("AlternateHGridColor", "BFFFFF");
    //设置斑马纹的透明度
    graphConfig.put("alternateHGridAlpha", "10");
    //graphConfig.put("areaAlpha", "60");
    //graphConfig.put("areaBorderColor", "441570");
        Dto qDto = new BaseDto();   
        qDto.put("product", "1");
        //查询原始数据
View Full Code Here

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

   * @return
   */
  public ActionForward fcfCircularityInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表");
    //设置数字值的前缀
    graphConfig.setNumberPrefix("$");
    graphConfig.setShowNames(new Boolean(true));
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
        Dto qDto = new BaseDto();   
        qDto.put("product", "1");
        //查询原始数据
View Full Code Here

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

   * @return
   */
  public ActionForward fcf2DColumnMsInit(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    //实例化一个图形配置对象
    GraphConfig graphConfig = new GraphConfig();
    //主标题
    graphConfig.setCaption("Google软件2010年月度销售业绩图表");
    //设置数字值的前缀
    graphConfig.setNumberPrefix("$");
    //使用这种方式可以加入框架没有封装的原生报表属性,原生属可以参考《开发指南》的相关章节
    //graphConfig.put("propertyName", "value");
    graphConfig.setCanvasBorderThickness(new Boolean(true));
    //实例化组合种类配置对象
    CategoriesConfig categoriesConfig = new CategoriesConfig();
    List cateList = new ArrayList();
    cateList.add(new Categorie("一月"));
    cateList.add(new Categorie("二月"));
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.