Class Spatial.NoOp<T,NT>
- java.lang.Object
-
- org.jungrapht.visualization.spatial.AbstractSpatial<T,NT>
-
- org.jungrapht.visualization.spatial.Spatial.NoOp<T,NT>
-
- Type Parameters:
T- the type for elements in the spatialNT- the type for the Vertices in a LayoutModel
- All Implemented Interfaces:
LayoutStateChange.Listener,LayoutVertexPositionChange.Listener<NT>,Spatial<T,NT>
- Direct Known Subclasses:
Spatial.NoOp.Edge,Spatial.NoOp.Vertex
public abstract static class Spatial.NoOp<T,NT> extends AbstractSpatial<T,NT>
a special case Spatial that does no filtering
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpatial.NoOp.DegenerateTreeVertex<V>a TreeNode that is immutable and covers the entire layout areastatic classSpatial.NoOp.Edge<E,V>static classSpatial.NoOp.Vertex<V>-
Nested classes/interfaces inherited from interface org.jungrapht.visualization.spatial.Spatial
Spatial.NoOp<T,NT>
-
-
Field Summary
-
Fields inherited from class org.jungrapht.visualization.spatial.AbstractSpatial
gridCache, layoutModel, pickShapes, rectangle
-
-
Constructor Summary
Constructors Constructor Description NoOp(LayoutModel<NT> layoutModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()nothing to clearTreeNodegetContainingLeaf(Object element)Set<? extends TreeNode>getContainingLeafs(double x, double y)Set<? extends TreeNode>getContainingLeafs(Point2D p)List<Shape>getGrid()return the entire areaRectangle2DgetLayoutArea()return the entire areavoidlayoutVertexPositionChanged(LayoutVertexPositionChange.Event<NT> evt)voidlayoutVertexPositionChanged(LayoutVertexPositionChange.GraphEvent<NT> evt)voidrecalculate()nothing to recalculatevoidsetBounds(Rectangle2D bounds)nothing to changevoidupdate(T element, Point location)nothing to update-
Methods inherited from class org.jungrapht.visualization.spatial.AbstractSpatial
getClosest, getLayoutModel, getPickShapes, isActive, layoutStateChanged, setActive
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.spatial.Spatial
getClosestElement, getClosestElement, getUnion, getUnion, getVisibleElements
-
-
-
-
Constructor Detail
-
NoOp
public NoOp(LayoutModel<NT> layoutModel)
-
-
Method Detail
-
clear
public void clear()
nothing to clear
-
recalculate
public void recalculate()
nothing to recalculate
-
getLayoutArea
public Rectangle2D getLayoutArea()
return the entire area- Returns:
-
setBounds
public void setBounds(Rectangle2D bounds)
nothing to change- Parameters:
bounds- the new bounds for the data struture
-
update
public void update(T element, Point location)
nothing to update- Parameters:
element- the element to considerlocation- the location of the element
-
getContainingLeafs
public Set<? extends TreeNode> getContainingLeafs(Point2D p)
- Parameters:
p- a point to search in the spatial structure- Returns:
- the single element that contains everything
-
getContainingLeafs
public Set<? extends TreeNode> getContainingLeafs(double x, double y)
- Parameters:
x- the x location to search fory- the y location to search for- Returns:
- the single element that contains everything
-
getContainingLeaf
public TreeNode getContainingLeaf(Object element)
- Parameters:
element- element to search for- Returns:
- the single leaf that contains everything
-
layoutVertexPositionChanged
public void layoutVertexPositionChanged(LayoutVertexPositionChange.Event<NT> evt)
-
layoutVertexPositionChanged
public void layoutVertexPositionChanged(LayoutVertexPositionChange.GraphEvent<NT> evt)
-
-