public class ViewLensShapePickSupport<V,E> extends ShapePickSupport<V,E> implements edu.uci.ics.jung.algorithms.layout.GraphElementAccessor<V,E>
ShapePickSupport.StylepickSize, style, vv| Constructor and Description |
|---|
ViewLensShapePickSupport(VisualizationServer<V,E> vv)
Create an instance.
|
ViewLensShapePickSupport(VisualizationServer<V,E> vv,
float pickSize)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
E |
getEdge(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
double x,
double y)
return an edge whose shape intersects the 'pickArea' footprint of the passed
x,y, coordinates.
|
V |
getVertex(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
double x,
double y)
Iterates over Vertices, checking to see if x,y is contained in the
Vertex's Shape.
|
java.util.Collection<V> |
getVertices(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
java.awt.Shape rectangle)
returns the vertices that are contained in the passed shape.
|
edgesAreFiltered, getFilteredEdges, getFilteredVertices, getPickSize, getStyle, isEdgeRendered, isVertexRendered, setPickSize, setStyle, verticesAreFilteredpublic ViewLensShapePickSupport(VisualizationServer<V,E> vv, float pickSize)
hasGraphLayout - source of the current layout.hasShapeFunctions - source of Vertex and Edge shapes.pickSize - how large to make the pick footprint for line edgespublic ViewLensShapePickSupport(VisualizationServer<V,E> vv)
public V getVertex(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, double x, double y)
public java.util.Collection<V> getVertices(edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, java.awt.Shape rectangle)
getVertices in interface edu.uci.ics.jung.algorithms.layout.GraphElementAccessor<V,E>getVertices in class ShapePickSupport<V,E>Collection of vertices whose layout
coordinates are contained in shape.