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

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


        }
    }

    private void applyPropertiesToXYDataSet(XYRendererAdapter renderer, XYDataset dataSet, LineChartView view,
                                            LineProperties lineProperties) {
        DynamicXYGenerator dcg = new DynamicXYGenerator(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) {
                renderer.setSeriesVisible(j, !hideSeries);
View Full Code Here


                public String generateURL(XYDataset xyDataset, int i, int i1) {
                    return chartView.getUrl();
                }
            });
        } else if (chartView.getDynamicUrl() != null) {
            renderer.setURLGenerator(new DynamicXYGenerator(chartView, chartView.getDynamicUrl()));
        }
    }
View Full Code Here

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

TOP

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

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.