public abstract class AbstractLensSupport<V,E> extends java.lang.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 java.lang.String |
defaultToolTipText |
protected VisualizationViewer.GraphMouse |
graphMouse |
protected static java.lang.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, waitactivate, deactivateprotected VisualizationViewer<V,E> vv
protected VisualizationViewer.GraphMouse graphMouse
protected LensTransformer lensTransformer
protected ModalGraphMouse lensGraphMouse
protected AbstractLensSupport.Lens lens
protected AbstractLensSupport.LensControls lensControls
protected java.lang.String defaultToolTipText
protected static final java.lang.String instructions
public AbstractLensSupport(VisualizationViewer<V,E> vv, ModalGraphMouse lensGraphMouse)
vv - the VisualizationViewer to work onpublic void activate(boolean state)
activate in interface LensSupportpublic LensTransformer getLensTransformer()
getLensTransformer in interface LensSupportpublic ModalGraphMouse getGraphMouse()
getGraphMouse in interface LensSupportpublic 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 set