Package org.jboss.dashboard.domain.numeric

Examples of org.jboss.dashboard.domain.numeric.NumericDomain


        return prop;
    }

    public Domain createDomain(Class type) {
        if (Date.class.isAssignableFrom(type)) return new DateDomain();
        if (Number.class.isAssignableFrom(type)) return new NumericDomain();
        return new LabelDomain();
    }
View Full Code Here


                for (Interval interval : intervals) {
                    Double scalar = calculateScalar(interval, dataProp, function);
                    _result.addRowValue(j, scalar);
                }
                // After calculations, ensure the new property domain is numeric.
                _prop.setDomain(new NumericDomain());
            }
        }

        // Sort the resulting data set according to the sort order specified.
        if (sortOrder != 0) {
View Full Code Here

                for (Interval interval : intervals) {
                    Double scalar = calculateScalar(interval, dataProp, function);
                    _result.addRowValue(j, scalar);
                }
                // After calculations, ensure the new property domain is numeric.
                _prop.setDomain(new NumericDomain());
            }

        }
        return _result;
    }
View Full Code Here

                for (Interval interval : intervals) {
                    Double scalar = calculateScalar(interval, dataProp, function);
                    _result.addRowValue(j, scalar);
                }
                // After calculations, ensure the new property domain is numeric.
                _prop.setDomain(new NumericDomain());
            }
        }

        // Sort the resulting data set according to the sort order specified.
        if (sortOrder != 0) {
View Full Code Here

                for (Interval interval : intervals) {
                    Double scalar = calculateScalar(interval, dataProp, function);
                    _result.addRowValue(j, scalar);
                }
                // After calculations, ensure the new property domain is numeric.
                _prop.setDomain(new NumericDomain());
            }

        }
        return _result;
    }
View Full Code Here

                }
            }
        }
        // Numeric domain specifics.
        else if (domain instanceof NumericDomain) {
            NumericDomain numericDomain = (NumericDomain) domain;
            numericDomain.setMinValue(null);
            numericDomain.setMaxValue(null);
            if (numericTamInterval != null) numericDomain.setTamInterval(Integer.parseInt(numericTamInterval));
            if (numericMinValue != null && !numericMinValue.trim().equals("")) {
                try {
                    numericDomain.setMinValue(numberFormat.parse(numericMinValue));
                } catch (ParseException e) {
                    // Ignore.
                }
            }
            if (numericMaxValue != null && !numericMaxValue.trim().equals("")) {
                try {
                    numericDomain.setMaxValue(numberFormat.parse(numericMaxValue));
                } catch (ParseException e) {
                    // Ignore.
                }
            }
        }
View Full Code Here

            if (minDate != null) dateMinDate = dateFormat.format(minDate);
            Date maxDate = dateDomain.getMaxDate();
            if (maxDate != null) dateMaxDate = dateFormat.format(maxDate);
        }
        else if (domain instanceof NumericDomain) {
            NumericDomain numericDomain = (NumericDomain) domain;
            numericTamInterval = String.valueOf(numericDomain.getTamInterval());
            Number minValue = numericDomain.getMinValue();
            if (minValue != null) numericMinValue = numberFormat.format(minValue);
            else numericMinValue = null;
            Number maxValue = numericDomain.getMaxValue();
            if (maxValue != null) numericMaxValue = numberFormat.format(maxValue);
            else numericMaxValue = null;
        }
    }
View Full Code Here

                for (Interval interval : intervals) {
                    Double scalar = calculateScalar(interval, dataProp, function);
                    _result.addRowValue(j, scalar);
                }
                // After calculations, ensure the new property domain is numeric.
                _prop.setDomain(new NumericDomain());
            }
        }

        // Sort the resulting data set according to the sort order specified.
        if (sortOrder != 0) {
View Full Code Here

                for (Interval interval : intervals) {
                    Double scalar = calculateScalar(interval, dataProp, function);
                    _result.addRowValue(j, scalar);
                }
                // After calculations, ensure the new property domain is numeric.
                _prop.setDomain(new NumericDomain());
            }
        }
        return _result;
    }
View Full Code Here

        return prop;
    }

    public Domain createDomain(Class<?> type) {
        if (Date.class.isAssignableFrom(type)) return new DateDomain();
        if (Number.class.isAssignableFrom(type)) return new NumericDomain();
        return new LabelDomain();
    }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.domain.numeric.NumericDomain

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.