public class ViewLensShapePickSupport<V,E> extends ShapePickSupport<V,E> implements GraphElementAccessor<V,E>
ShapePickSupport.Style
pickSize, 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(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(Layout<V,E> layout,
double x,
double y)
Iterates over Vertices, checking to see if x,y is contained in the
Vertex's Shape.
|
Collection<V> |
getVertices(Layout<V,E> layout,
Shape rectangle)
returns the vertices that are contained in the passed shape.
|
edgesAreFiltered, getFilteredEdges, getFilteredVertices, getPickSize, getStyle, isEdgeRendered, isVertexRendered, setPickSize, setStyle, verticesAreFiltered
public 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(Layout<V,E> layout, double x, double y)
getVertex
in interface GraphElementAccessor<V,E>
getVertex
in class ShapePickSupport<V,E>
edu.uci.ics.jung.visualization.picking.PickSupport#getVertex(double, double)
public Collection<V> getVertices(Layout<V,E> layout, Shape rectangle)
getVertices
in interface GraphElementAccessor<V,E>
getVertices
in class ShapePickSupport<V,E>
Collection
of vertices whose layout
coordinates are contained in shape
.Copyright © 2014. All rights reserved.