Class ViewLensSupport<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.shape.ViewLensSupport<V,E,M>
-
- All Implemented Interfaces:
ItemSelectable
,LensSupport<M>
public class ViewLensSupport<V,E,M extends LensGraphMouse> extends AbstractLensSupport<V,E,M> implements LensSupport<M>
Uses a LensTransformer to use in the view transform. This one will distort Vertex shapes.- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ViewLensSupport.Builder<V,E,M extends LensGraphMouse,T extends ViewLensSupport<V,E,M>,B extends ViewLensSupport.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 GraphicsDecorator
lensGraphicsDecorator
protected GraphElementAccessor<V,E>
pickSupport
protected RenderContext<V,E>
renderContext
protected Renderer.Edge<V,E>
reshapingEdgeRenderer
protected Renderer.Edge<V,E>
savedEdgeRenderer
protected GraphicsDecorator
savedGraphicsDecorator
-
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
ViewLensSupport(ViewLensSupport.Builder<V,E,M,?,?> builder)
protected
ViewLensSupport(VisualizationViewer<V,E> vv, LensTransformer lensTransformer, M lensGraphMouse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
static <V,E,M extends LensGraphMouse>
ViewLensSupport.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
-
renderContext
protected RenderContext<V,E> renderContext
-
lensGraphicsDecorator
protected GraphicsDecorator lensGraphicsDecorator
-
savedGraphicsDecorator
protected GraphicsDecorator savedGraphicsDecorator
-
pickSupport
protected GraphElementAccessor<V,E> pickSupport
-
savedEdgeRenderer
protected Renderer.Edge<V,E> savedEdgeRenderer
-
reshapingEdgeRenderer
protected Renderer.Edge<V,E> reshapingEdgeRenderer
-
-
Constructor Detail
-
ViewLensSupport
protected ViewLensSupport(ViewLensSupport.Builder<V,E,M,?,?> builder)
-
ViewLensSupport
protected ViewLensSupport(VisualizationViewer<V,E> vv, LensTransformer lensTransformer, M lensGraphMouse)
-
-
Method Detail
-
builder
public static <V,E,M extends LensGraphMouse> ViewLensSupport.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>
-
-