|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.algorithms.layout3d.RadiusGraphElementAccessor<V,E>
public class RadiusGraphElementAccessor<V,E>
Simple implementation of PickSupport that returns the vertex or edge that is closest to the specified location. This implementation provides the same picking options that were available in previous versions of AbstractLayout.
No element will be returned that is farther away than the specified maximum distance.
Field Summary | |
---|---|
protected double |
maxDistance
|
Constructor Summary | |
---|---|
RadiusGraphElementAccessor()
Creates an instance with an effectively infinite default maximum distance. |
|
RadiusGraphElementAccessor(double maxDistance)
Creates an instance with the specified default maximum distance. |
Method Summary | |
---|---|
V |
getVertex(Layout<V,E> layout,
javax.vecmath.Point3f p)
Gets the vertex nearest to the location of the (x,y) location selected, within a distance of maxDistance. |
V |
getVertex(Layout<V,E> layout,
javax.vecmath.Point3f p,
double maxDistance)
Gets the vertex nearest to the location of the (x,y) location selected, within a distance of maxDistance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double maxDistance
Constructor Detail |
---|
public RadiusGraphElementAccessor()
public RadiusGraphElementAccessor(double maxDistance)
Method Detail |
---|
public V getVertex(Layout<V,E> layout, javax.vecmath.Point3f p)
getVertex
in interface GraphElementAccessor<V,E>
public V getVertex(Layout<V,E> layout, javax.vecmath.Point3f p, double maxDistance)
x
- y
- maxDistance
- temporarily overrides member maxDistance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |