Package er.grouping

Examples of er.grouping.DRValue


       
        if(totalKey != null) {
            NSArray tots = recordGroup().totalList();
           
            if (tots != null && tots.count() > 0) {
                DRValue v = recordGroup().totalForKey(totalToShow());
                if(v != null) {
                    doubleValue = v.total();
                } else {
                    return noTotalLabel();
                }
            }
        }
View Full Code Here


                                    double value = 0.0D;
                                    String dayLabel = dayFormat.format(ts);
                                    coordinates.setObjectForKey(dayCriteria, dayGroup.masterCriteria().keyDesc());
                                    DRRecordGroup recordGroup = model().recordGroupForCoordinates(coordinates);
                                    if(attribTotalKey != null) {
                                        DRValue drValue = (DRValue) recordGroup.totals().objectForKey(attribTotalKey);
                                        if(drValue != null) {
                                            value = drValue.total();
                                        }
                                    } else {
                                        value = ((Number) recordGroup.rawRecordList().valueForKeyPath(recordGroupTotalToShow())).doubleValue();
                                    }
                                    if(dataset instanceof CategoryDataset) {
                                        ((DefaultCategoryDataset)dataset).setValue(value, label, dayLabel);
                                    } else if (dataset instanceof PieDataset) {
                                        ((DefaultPieDataset) dataset).setValue(label, value);
                                    } else {
                                        throw new IllegalArgumentException("Neither a Pie nor CategoryDataset");
                                    }
                                }
                            } else {
                                double value = 0.0D;
                                coordinates.setObjectForKey(dayCriteria, dayGroup.masterCriteria().keyDesc());
                                DRRecordGroup recordGroup = model().recordGroupForCoordinates(coordinates);
                                if(attribTotalKey != null) {
                                    DRValue drValue = (DRValue) recordGroup.totals().objectForKey(attribTotalKey);
                                    if(drValue != null) {
                                        value = drValue.total();
                                    }
                                } else {
                                    value = ((Number) recordGroup.rawRecordList().valueForKeyPath(recordGroupTotalToShow())).doubleValue();
                                }
                                if(dataset instanceof CategoryDataset) {
View Full Code Here

TOP

Related Classes of er.grouping.DRValue

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.