`

Cewolf 支持的jfree图形

    博客分类:
  • java
阅读更多

CewolfChartFactory都有定义,可以从这学习jreechart的使用,呵呵。

 

 

switch (getChartTypeConstant(chartType)) {
      case XY :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createXYLineChart(title, xAxisLabel, yAxisLabel, (XYDataset) data, PlotOrientation.VERTICAL, true, true, true);
      case PIE :
        check(data, PieDataset.class, chartType);
        return ChartFactory.createPieChart(title, (PieDataset) data, true, true, true);
      case AREA_XY :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createXYAreaChart(title, xAxisLabel, yAxisLabel, (XYDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case SCATTER :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createScatterPlot(title, xAxisLabel, yAxisLabel, (XYDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case AREA :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createAreaChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case HORIZONTAL_BAR :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.HORIZONTAL, true, false, false);
      case HORIZONTAL_BAR_3D :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart3D(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.HORIZONTAL, true, false, false);
      case LINE :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createLineChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case STACKED_HORIZONTAL_BAR :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createStackedBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.HORIZONTAL, true, false, false);
      case STACKED_VERTICAL_BAR :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createStackedBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case STACKED_VERTICAL_BAR_3D :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createStackedBarChart3D(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case VERTICAL_BAR :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case VERTICAL_BAR_3D :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart3D(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case TIME_SERIES :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createTimeSeriesChart(title, xAxisLabel, yAxisLabel, (XYDataset) data, true, false, false);
      case CANDLE_STICK :
        check(data, OHLCDataset.class, chartType);
        return ChartFactory.createCandlestickChart(title, xAxisLabel, yAxisLabel, (OHLCDataset) data, true);
      case HIGH_LOW :
        check(data, OHLCDataset.class, chartType);
        return ChartFactory.createHighLowChart(title, xAxisLabel, yAxisLabel, (OHLCDataset) data, true);
      case GANTT :
        check(data, IntervalCategoryDataset.class, chartType);
        return ChartFactory.createGanttChart(title, xAxisLabel, yAxisLabel, (IntervalCategoryDataset) data, true, false, false);
      case WIND :
        check(data, WindDataset.class, chartType);
        return ChartFactory.createWindPlot(title, xAxisLabel, yAxisLabel, (WindDataset) data, true, false, false);
      //case SIGNAL :
      //  check(data, SignalsDataset.class, chartType);
      //  return ChartFactory.createSignalChart(title, xAxisLabel, yAxisLabel, (SignalsDataset) data, true);
      case VERRTICAL_XY_BAR :
        check(data, IntervalXYDataset.class, chartType);
        return ChartFactory.createXYBarChart(title, xAxisLabel, true,yAxisLabel, (IntervalXYDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case PIE_3D :
        check(data, PieDataset.class, chartType);
        return ChartFactory.createPieChart3D(title, (PieDataset) data, true, false, false);
      case METER :
        check(data, ValueDataset.class, chartType);
        MeterPlot plot = new MeterPlot((ValueDataset) data);
        JFreeChart chart = new JFreeChart(title, plot);
        return chart;
      case STACKED_AREA :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createStackedAreaChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case BUBBLE :
        check(data, XYZDataset.class, chartType);
        return ChartFactory.createBubbleChart(title, xAxisLabel, yAxisLabel, (XYZDataset) data, PlotOrientation.VERTICAL, true, false, false);
      default :
        throw new UnsupportedChartTypeException(chartType + " is not supported.");
    }

分享到:
评论

相关推荐

    cewolf-1.2.1.zip

    **Cewolf** 是一个开源项目,主要专注于提供图形用户界面(GUI)和应用程序开发框架。它允许开发者快速创建和设计具有现代界面的应用程序,而无需深入学习复杂的图形设计技术。Cewolf 的核心特性包括: 1. **易用性...

    cewolf-1.1.4

    **cewolf-1.1.4** 是一个用于图形展示的开源库,主要与Java的JFreeChart库配合使用,提供更加便捷和丰富的图形渲染功能。这个版本是cewolf库的1.1.4更新,可能包含了一些性能优化、新特性和bug修复,以提升用户体验...

    cewolf

    CEWolf是一个基于Java的图形库,它封装了JFreeChart库,提供了一种更简单、更高效的方式来创建和展示图表。JFreeChart是一个广泛使用的开源项目,用于生成高质量的2D图表,如饼图、柱状图、线图等,适用于多种应用...

    图形报表制作jar包:cewolf

    Cewolf,能用于开发web工程的Servlet或JSP等,用于制作比较复杂的统计图表.它能够在写比较少的java代码的情况下,显示JSP页面,通过设置图的特征,象颜色,线条,图形,大小,比例等等.

    jfreechart+cewolf的架包

    JFreeChart和Cewolf是两个强大的开源库,它们共同为开发者提供了丰富的图形生成和展示能力。本文将详细介绍这两个库的功能、使用方法以及如何结合它们来创建高效的报表系统。 **JFreeChart简介** JFreeChart是一个...

    Cewolf web报表实例

    - **功能特性**:Cewolf支持静态和动态图表,能够处理XML、JSON等多种数据格式,且与JavaScript库如jQuery兼容,方便进行进一步的交互定制。 - **技术栈**:Cewolf基于Java Servlet,通过HTTP请求响应机制,将后端...

    cewolf开发需要的jar文件

    在Java Web开发中,有时候需要在服务器端生成图形,例如图表、报表等,cewolf可能就是这样一个工具,提供便捷的方式去实现这样的功能。 在开发过程中,确保正确引入了所有必要的jar文件至关重要。这些文件可能包含...

    cewolf-1.0-bundle-2 第三方生成图形

    cewolf-1.0-bundle-2 第三方生成图形 好东东

    Cewolf开发全攻略

    这里主要详细讲述了cewolf的用法发发发发发发发发发发发发发法案

    cewolf-1.2.3

    Cewolf可以在一个基于Servlet/JSP的Web应用程序内部使用,基于JFreechart的,利用JFreechart的绘制引擎的开源项目。以在Web页中嵌入各种复杂的图形图表(如,直方图、饼图、棒图等等)。它提供了一个功能完备的标签库来...

    cewolf应用

    "cewolf应用"是一个关于开源工具的讨论,主要聚焦在名为"TCEWolf"的软件上。这个工具可能是一个集成开发环境(IDE)或者一个特定领域的应用程序,鉴于标签中提到的"源码"和"工具",我们可以推断它与编程和代码编辑...

    Web报表开发技术-Cewolf开发技术实例

    Cewolf是一种基于Java的Web报表工具,尤其适用于J2EE环境,它允许开发者轻松地创建和展示丰富的图表和报告。本实例将深入探讨如何在Web应用程序中集成和使用Cewolf技术。 1. **Cewolf简介** Cewolf,全称为...

    flex实战报表:jFreeChart,cewolf,iText.doc

    在IT行业中,报表生成是数据可视化的重要组成部分,它允许用户以图形化的方式理解复杂的数据集。本篇文章将深入探讨三个流行的Java库——JFreeChart、Cewolf和iText,它们分别用于创建静态图表、交互式Web报表以及...

    贯通开源WEB图形与报表技术全集—part1

    本篇文章将详细探讨标题"贯通开源WEB图形与报表技术全集—part1"所涵盖的知识点,主要涉及JFreeChart、Cewolf、jCharts、iReport、JasperReports和OpenReports这六个流行的开源工具。 首先,JFreeChart是一款强大的...

    JFreeChart详解

    它支持多种图形展示方式,包括饼图、折线图、柱状图(水平与垂直)、甘特图、XY散点图、时间序列图、高低开收盘图、蜡烛图、组合图、帕累托图、气泡图、风向图、仪表盘图等。JFreeChart官方网站提供了丰富的示例,...

    java 报表生成 工具介绍

    6. **Cewolf**:Cewolf是一个用于在Web应用中嵌入复杂图形图表的Servlet/JSP组件。它提供了一个标签库,使得在JSP页面中添加图表无需编写Java代码。 7. **JOpenChart**:JOpenChart库提供了创建不同类型的图表(如...

    Cewolf:用于在网页中显示图表的JSP标记库-开源

    Cewolf是用于各种图表的标记库。 它使每个JSP都可以轻松地嵌入图表图像。 Servlet容器中运行的任何Web应用程序都可以使用它。 无需Java scriplet代码即可定义图表。

    精通Java+Web动态图表编程

    《精通Java+Web动态图表编程》是一本全面且深入的教程,它不仅涵盖了Java图形处理的基础知识,还提供了大量的实战案例,特别是对JFreeChart和Cewolf动态图表生成引擎的应用,以及如何将复杂的图表生成过程封装成可...

Global site tag (gtag.js) - Google Analytics