Class LayoutLensSupport<V,E,M extends LensGraphMouse>
- java.lang.Object
-
- org.jungrapht.visualization.util.ItemSupport
-
- org.jungrapht.visualization.transform.AbstractLensSupport<V,E,M>
-
- org.jungrapht.visualization.transform.LayoutLensSupport<V,E,M>
-
- Type Parameters:
V
- vertex typeE
- edge typeM
- LensGraphMouse type
- All Implemented Interfaces:
ItemSelectable
,LensSupport<M>
public class LayoutLensSupport<V,E,M extends LensGraphMouse> extends AbstractLensSupport<V,E,M> implements LensSupport<M>
A class to make it easy to add an examining lens to a jungrapht graph application. See HyperbolicTransformerDemo for an example of how to use it.- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LayoutLensSupport.Builder<V,E,M extends LensGraphMouse,T extends LayoutLensSupport<V,E,M>,B extends LayoutLensSupport.Builder<V,E,M,T,B>>
-
Nested classes/interfaces inherited from class org.jungrapht.visualization.transform.AbstractLensSupport
AbstractLensSupport.LensControls, AbstractLensSupport.LensPaintable
-
-
Field Summary
Fields Modifier and Type Field Description protected GraphElementAccessor<V,E>
pickSupport
-
Fields inherited from class org.jungrapht.visualization.transform.AbstractLensSupport
defaultToolTipText, graphMouse, instructions, lensControls, lensGraphMouse, lensPaintable, lensTransformer, useGradient, vv
-
Fields inherited from class org.jungrapht.visualization.util.ItemSupport
listenerList, selected
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LayoutLensSupport(LayoutLensSupport.Builder<V,E,M,?,?> builder)
protected
LayoutLensSupport(VisualizationViewer<V,E> vv, LensTransformer lensTransformer, M lensGraphMouse)
Create an instance with the specified parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
static <V,E,M extends LensGraphMouse>
LayoutLensSupport.Builder<V,E,M,?,?>builder(VisualizationViewer<V,E> vv)
void
deactivate()
-
Methods inherited from class org.jungrapht.visualization.transform.AbstractLensSupport
activate, allowed, getGraphMouse, getLensControls, getLensPaintable, getLensTransformer, isActive, setLensControls, setLensPaintable, setManager
-
Methods inherited from class org.jungrapht.visualization.util.ItemSupport
addItemListener, fireItemStateChanged, getSelectedObjects, removeItemListener
-
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.transform.LensSupport
activate, addItemListener, getGraphMouse, getLensTransformer, isActive, setManager
-
-
-
-
Field Detail
-
pickSupport
protected GraphElementAccessor<V,E> pickSupport
-
-
Constructor Detail
-
LayoutLensSupport
protected LayoutLensSupport(LayoutLensSupport.Builder<V,E,M,?,?> builder)
-
LayoutLensSupport
protected LayoutLensSupport(VisualizationViewer<V,E> vv, LensTransformer lensTransformer, M lensGraphMouse)
Create an instance with the specified parameters.- Parameters:
vv
- the visualization viewer used for renderinglensTransformer
- the lens layoutTransformer to uselensGraphMouse
- the lens input handler
-
-
Method Detail
-
builder
public static <V,E,M extends LensGraphMouse> LayoutLensSupport.Builder<V,E,M,?,?> builder(VisualizationViewer<V,E> vv)
-
activate
public void activate()
- Specified by:
activate
in interfaceLensSupport<V>
- Overrides:
activate
in classAbstractLensSupport<V,E,M extends LensGraphMouse>
-
deactivate
public void deactivate()
- Specified by:
deactivate
in interfaceLensSupport<V>
- Overrides:
deactivate
in classAbstractLensSupport<V,E,M extends LensGraphMouse>
-
-