Package org.openfaces.component.chart

Examples of org.openfaces.component.chart.ChartModel


    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))
View Full Code Here


    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))
View Full Code Here

        sector.setProportionalValue(proportionalPercent);
        return sector;
    }

    private static GridPointInfo getGridPointInfo(CategoryItemEntity en, Chart chart) {
        ChartModel model = chart.getModel();
        if (model == null)
            return null;

        GridPointInfo info = new GridPointInfoImpl();
        info.setSeries(new SeriesInfoImpl());
View Full Code Here

        return info;
    }

    private static GridPointInfo getGridPointInfo(XYItemEntity en, Chart chart) {
        ChartModel model = chart.getModel();
        if (model == null)
            return null;

        GridPointInfo info = new GridPointInfoImpl();
        info.setSeries(new SeriesInfoImpl());
View Full Code Here

    public void onSectorClickActionListener(ActionEvent event) {
        PieSectorEvent pEvent = (PieSectorEvent) event;
        sectorAction = true;
        pieInfo = pEvent.getSector();
        ChartModel model = (barView.getChart().getModel());
        if (model instanceof CitiesDataBean) {
            CitiesDataBean data = (CitiesDataBean) model;
            data.setCountry((String) pieInfo.getKey());
        }

        ChartModel model1 = (lineView.getChart().getModel());
        if (model1 instanceof WeatherBean) {
            WeatherBean data = (WeatherBean) model1;
            data.setCountry((String) pieInfo.getKey());
            data.makeData();
        }
View Full Code Here

TOP

Related Classes of org.openfaces.component.chart.ChartModel

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.