Package org.openfaces.component.chart.impl.generators

Examples of org.openfaces.component.chart.impl.generators.DynamicCategoryGenerator


        }
    }

    private void applyPropertiesToCategoryDataSet(LineAndShapeRenderer renderer, CategoryDataset dataSet,
                                                  LineChartView view, LineProperties lineProperties) {
        DynamicCategoryGenerator dcg = new DynamicCategoryGenerator(view, lineProperties.getDynamicCondition());

        ChartModel chartModel = view.getChart().getModel();
        if (chartModel == null)
            return;

        Series[] series = chartModel.getSeries();
        if (series == null)
            return;

        for (int j = 0; j < series.length; j++) {
            if (!dcg.generateCondition(dataSet, j, 0))
                continue;

            Boolean hideSeries = lineProperties.getHideSeries();
            if (hideSeries != null) {
                boolean seriesVisible = !hideSeries;
View Full Code Here


                public String generateURL(CategoryDataset categoryDataset, int i, int i1) {
                    return chartView.getUrl();
                }
            });
        } else if (chartView.getDynamicUrl() != null) {
            renderer.setItemURLGenerator(new DynamicCategoryGenerator(chartView, chartView.getDynamicUrl()));
        }
    }
View Full Code Here

                public String generateToolTip(CategoryDataset categoryDataset, int i, int i1) {
                    return chartView.getTooltip();
                }
            });
        } else if (chartView.getDynamicTooltip() != null) {
            renderer.setBaseToolTipGenerator(new DynamicCategoryGenerator(chartView, chartView.getDynamicTooltip()));
        }
    }
View Full Code Here

TOP

Related Classes of org.openfaces.component.chart.impl.generators.DynamicCategoryGenerator

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.