Class DimensionSummaryStatistics
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.util.DimensionSummaryStatistics
-
- All Implemented Interfaces:
DimensionConsumer,RectangleConsumer
public class DimensionSummaryStatistics extends Object implements DimensionConsumer, RectangleConsumer
-
-
Constructor Summary
Constructors Constructor Description DimensionSummaryStatistics()DimensionSummaryStatistics(int count, int min, int max, int sum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Dimension dimension)voidaccept(Rectangle rectangle)voidcombine(DimensionSummaryStatistics other)DimensiongetAverage()longgetCount()DimensiongetMax()DimensiongetMin()DimensiongetSum()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.util.DimensionConsumer
andThen
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.util.RectangleConsumer
andThen
-
-
-
-
Constructor Detail
-
DimensionSummaryStatistics
public DimensionSummaryStatistics()
-
DimensionSummaryStatistics
public DimensionSummaryStatistics(int count, int min, int max, int sum) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
-
Method Detail
-
accept
public void accept(Dimension dimension)
- Specified by:
acceptin interfaceDimensionConsumer
-
accept
public void accept(Rectangle rectangle)
- Specified by:
acceptin interfaceRectangleConsumer
-
combine
public void combine(DimensionSummaryStatistics other)
-
getCount
public final long getCount()
-
getSum
public final Dimension getSum()
-
getMin
public final Dimension getMin()
-
getMax
public final Dimension getMax()
-
getAverage
public final Dimension getAverage()
-
-