Package org.jungrapht.visualization.util
Class BoundingRectangleCollector.Points<V>
- java.lang.Object
-
- org.jungrapht.visualization.util.BoundingRectangleCollector<V>
-
- org.jungrapht.visualization.util.BoundingRectangleCollector.Points<V>
-
- Enclosing class:
- BoundingRectangleCollector<T>
public static final class BoundingRectangleCollector.Points<V> extends BoundingRectangleCollector<V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jungrapht.visualization.util.BoundingRectangleCollector
BoundingRectangleCollector.Edges<V,E>, BoundingRectangleCollector.Points<V>, BoundingRectangleCollector.Vertices<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<V,Shape>
vertexShapeFunction
-
Fields inherited from class org.jungrapht.visualization.util.BoundingRectangleCollector
layoutModel, rectangles
-
-
Constructor Summary
Constructors Constructor Description Points(Function<V,Shape> vertexShapeFunction, LayoutModel layoutModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compute()
void
compute(Collection<V> vertices)
Rectangle2D
getForElement(V vertex)
Rectangle2D
getForElement(V vertex, Point p)
Rectangle2D
getForElement(V vertex, Point p1, Point p2)
-
Methods inherited from class org.jungrapht.visualization.util.BoundingRectangleCollector
getRectangles
-
-
-
-
Constructor Detail
-
Points
public Points(Function<V,Shape> vertexShapeFunction, LayoutModel layoutModel)
-
-
Method Detail
-
getForElement
public Rectangle2D getForElement(V vertex)
- Specified by:
getForElement
in classBoundingRectangleCollector<V>
-
getForElement
public Rectangle2D getForElement(V vertex, Point p1, Point p2)
- Specified by:
getForElement
in classBoundingRectangleCollector<V>
- Parameters:
vertex
- the vertex to get bounds forp1
- the location of the vertexp2
- ignored for Vertices- Returns:
- bounds for the vertex shape
-
getForElement
public Rectangle2D getForElement(V vertex, Point p)
- Specified by:
getForElement
in classBoundingRectangleCollector<V>
-
compute
public void compute(Collection<V> vertices)
-
compute
public void compute()
- Overrides:
compute
in classBoundingRectangleCollector<V>
-
-