Package org.gephi.filters.api

Examples of org.gephi.filters.api.Range


                min = Math.min(min, degree);
                max = Math.max(max, degree);
                values.add(degree);
            }
            if (range == null) {
                range = new Range(min, max, min, max);
            } else {
                range.setMinMax(min, max);
            }
        }
View Full Code Here


        }

        public void setRange(Range range) {
            if (range.getMinimum() == null && range.getMaximum() == null) {
                //Opening project
                this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
            } else {
                this.range = range;
            }
        }
View Full Code Here

                        max = Math.max(max, Double.isInfinite(timeInterval.getHigh()) ? max : timeInterval.getHigh());
                    }
                }
            }
            if (range == null) {
                range = new Range(visibleInterval.getLow(), visibleInterval.getHigh(), min, max);
            } else {
                range.setMinMax(min, max);
            }
            if (!Double.isInfinite(min) && timelineController != null) {
                timelineController.setMin(min);
View Full Code Here

        public void dynamicModelChanged(DynamicModelEvent event) {
            switch (event.getEventType()) {
                case VISIBLE_INTERVAL:
                    TimeInterval interval = (TimeInterval) event.getData();
                    getProperties()[0].setValue(new Range(interval.getLow(), interval.getHigh(), min, max));
                    break;
            }
        }
View Full Code Here

        public void setKeepNull(boolean keepNull) {
            this.keepNull = keepNull;
        }

        public Range getRange() {
            return new Range(visibleInterval.getLow(), visibleInterval.getHigh(), min, max);
        }
View Full Code Here

                min = Math.min(min, degree);
                max = Math.max(max, degree);
                values.add(degree);
            }
            if (range == null) {
                range = new Range(min, max, min, max);
            } else {
                range.setMinMax(min, max);
            }
        }
View Full Code Here

        }

        public void setRange(Range range) {
            if (range.getMinimum() == null && range.getMaximum() == null) {
                //Opening project
                this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
            } else {
                this.range = range;
            }
        }
View Full Code Here

            values = ComparableArrayConverter.convert(vals);

            Number min = (Number) AttributeUtils.getDefault().getMin(column, values /*valuesArray*/);
            Number max = (Number) AttributeUtils.getDefault().getMax(column, values /*valuesArray*/);
            if (range == null) {
                range = new Range(min, max, min, max);
            } else {
                range.setMinMax(min, max);
            }
        }
View Full Code Here

        }

        public void setRange(Range range) {
            if (range.getMinimum() == null && range.getMaximum() == null) {
                //Opening project
                this.range = new Range(range.getLowerBound(), range.getUpperBound(), this.range.getMinimum(), this.range.getMaximum());
            } else {
                this.range = range;
            }
        }
View Full Code Here

                min = Math.min(min, partCount);
                max = Math.max(max, partCount);
                values[i] = partCount;
            }
            if (range == null) {
                range = new Range(min, max, min, max);
            } else {
                range.setMinMax(min, max);
            }
        }
View Full Code Here

TOP

Related Classes of org.gephi.filters.api.Range

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.