public abstract class AbstractLensSupport<V,E> extends Object implements LensSupport
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLensSupport.Lens
the background for the hyperbolic projection
|
static class |
AbstractLensSupport.LensControls
the background for the hyperbolic projection
|
Modifier and Type | Field and Description |
---|---|
protected String |
defaultToolTipText |
protected VisualizationViewer.GraphMouse |
graphMouse |
protected static String |
instructions |
protected AbstractLensSupport.Lens |
lens |
protected AbstractLensSupport.LensControls |
lensControls |
protected ModalGraphMouse |
lensGraphMouse |
protected LensTransformer |
lensTransformer |
protected VisualizationViewer<V,E> |
vv |
Constructor and Description |
---|
AbstractLensSupport(VisualizationViewer<V,E> vv,
ModalGraphMouse lensGraphMouse)
create the base class, setting common members and creating
a custom GraphMouse
|
Modifier and Type | Method and Description |
---|---|
void |
activate(boolean state) |
ModalGraphMouse |
getGraphMouse() |
AbstractLensSupport.Lens |
getLens() |
AbstractLensSupport.LensControls |
getLensControls() |
LensTransformer |
getLensTransformer() |
void |
setLens(AbstractLensSupport.Lens lens) |
void |
setLensControls(AbstractLensSupport.LensControls lensControls) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, deactivate
protected VisualizationViewer<V,E> vv
protected VisualizationViewer.GraphMouse graphMouse
protected LensTransformer lensTransformer
protected ModalGraphMouse lensGraphMouse
protected AbstractLensSupport.Lens lens
protected AbstractLensSupport.LensControls lensControls
protected String defaultToolTipText
protected static final String instructions
public AbstractLensSupport(VisualizationViewer<V,E> vv, ModalGraphMouse lensGraphMouse)
vv
- the VisualizationViewer to work onlensGraphMouse
- the GraphMouse instance to use for the lenspublic void activate(boolean state)
activate
in interface LensSupport
public LensTransformer getLensTransformer()
getLensTransformer
in interface LensSupport
public ModalGraphMouse getGraphMouse()
getGraphMouse
in interface LensSupport
public AbstractLensSupport.Lens getLens()
public void setLens(AbstractLensSupport.Lens lens)
lens
- the lens to setpublic AbstractLensSupport.LensControls getLensControls()
public void setLensControls(AbstractLensSupport.LensControls lensControls)
lensControls
- the lensControls to setCopyright © 2015. All rights reserved.