private void decodeCategoryLabelInfo(Area area, CategoryLabelEntity info, Chart chart) { final Comparable category = info.getKey(); area.setAttribute("category", category); if (chart.isShowTooltiptext() && info.getToolTipText() == null) { area.setTooltiptext(category.toString()); } }
public void render(Chart chart, Area area, ChartEntity info) { if (info instanceof LegendItemEntity) { area.setAttribute("entity", "LEGEND"); Integer seq = (Integer)chart.getAttribute("LEGEND_SEQ"); seq = seq == null ? new Integer(0) : new Integer(seq.intValue()+1); chart.setAttribute("LEGEND_SEQ", seq); decodeLegendInfo(area, (LegendItemEntity)info, chart); } else { area.setAttribute("entity", "TITLE"); if (chart.isShowTooltiptext()) { area.setTooltiptext(chart.getTitle()); } } } public JFreeChart createChart(Chart chart) {
public void render(Chart chart, Area area, ChartEntity info) { // System.out.println("wind info:"+info); if (info instanceof LegendItemEntity) { area.setAttribute("entity", "LEGEND"); Integer seq = (Integer)chart.getAttribute("LEGEND_SEQ"); seq = seq == null ? new Integer(0) : new Integer(seq.intValue()+1); chart.setAttribute("LEGEND_SEQ", seq); decodeLegendInfo(area, (LegendItemEntity)info, chart); } else { area.setAttribute("entity", "TITLE"); if (chart.isShowTooltiptext()) { area.setTooltiptext(chart.getTitle()); } } } public JFreeChart createChart(Chart chart) {
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); return ChartFactory.createPieChart( chart.getTitle(), getDataset(model), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); return ChartFactory.createRingChart( chart.getTitle(), getDataset(model), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); return ChartFactory.createPieChart3D( chart.getTitle(), getDataset(model), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYModel)) { throw new UiException("model must be a org.zkoss.zul.XYModel"); } return ChartFactory.createPolarChart( chart.getTitle(), XYModelToXYDataset((XYModel)model), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof GanttModel)) { throw new UiException("model must be a org.zkoss.zul.GanttModel"); } return ChartFactory.createGanttChart( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), GanttModelToGanttDataset((GanttModel)model), chart.isShowLegend(), chart.isShowTooltiptext(), true); } private String ganttTooltip(Chart chart, Area area) {
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYZModel)) { throw new UiException("model must be a org.zkoss.zul.XYZModel"); } final JFreeChart jchart = ChartFactory.createWindPlot( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), XYZModelToWindDataset((XYZModel)model), chart.isShowLegend(), chart.isShowTooltiptext(), true); setupDateAxis(jchart, chart); return jchart; } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYModel)) { throw new UiException("model must be a org.zkoss.zul.XYModel"); } final JFreeChart jchart = ChartFactory.createTimeSeriesChart( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), XYModelToTimeDataset((XYModel)model, chart), chart.isShowLegend(), chart.isShowTooltiptext(), true); setupDateAxis(jchart, chart); return jchart; } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYModel)) { throw new UiException("model must be a org.zkoss.zul.XYModel"); } return ChartFactory.createXYStepAreaChart( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), XYModelToXYDataset((XYModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof CategoryModel)) { throw new UiException("model must be a org.zkoss.zul.CategoryModel"); } return ChartFactory.createBarChart3D( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), CategoryModelToCategoryDataset((CategoryModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof CategoryModel)) { throw new UiException("model must be a org.zkoss.zul.CategoryModel"); } return ChartFactory.createWaterfallChart( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), CategoryModelToCategoryDataset((CategoryModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYModel)) { throw new UiException("model must be a org.zkoss.zul.XYModel"); } return ChartFactory.createScatterPlot( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), XYModelToXYDataset((XYModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYModel)) { throw new UiException("model must be a org.zkoss.zul.XYModel"); } return ChartFactory.createXYStepChart( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), XYModelToXYDataset((XYModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof CategoryModel)) { throw new UiException("model must be a org.zkoss.zul.CategoryModel"); } return ChartFactory.createLineChart3D( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), CategoryModelToCategoryDataset((CategoryModel) model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof CategoryModel)) { throw new UiException("model must be a org.zkoss.zul.CategoryModel"); } return ChartFactory.createStackedBarChart( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), CategoryModelToCategoryDataset((CategoryModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYModel)) { throw new UiException("model must be a org.zkoss.zul.XYModel"); } return ChartFactory.createHistogram( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), (IntervalXYDataset)XYModelToXYDataset((XYModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof XYZModel)) { throw new UiException("model must be a org.zkoss.zul.XYZModel"); } return ChartFactory.createBubbleChart( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), XYZModelToXYZDataset((XYZModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof WaferMapModel)) { throw new UiException("model must be a org.zkoss.zul.WaferMapModel"); } final JFreeChart jfchart = ChartFactory.createWaferMapChart( chart.getTitle(), WaferMapModelToWaferMapDataset((WaferMapModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); final WaferMapRenderer renderer = new MyWaferMapRenderer(); //workaround the paintList not ready issue ((WaferMapPlot)jfchart.getPlot()).setRenderer(renderer); return jfchart; }