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 void
accept(Dimension dimension)
void
accept(Rectangle rectangle)
void
combine(DimensionSummaryStatistics other)
Dimension
getAverage()
long
getCount()
Dimension
getMax()
Dimension
getMin()
Dimension
getSum()
String
toString()
-
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:
accept
in interfaceDimensionConsumer
-
accept
public void accept(Rectangle rectangle)
- Specified by:
accept
in 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()
-
-