public class EditingModalGraphMouse<V,E> extends AbstractModalGraphMouse implements ModalGraphMouse, ItemSelectable
Modifier and Type | Class and Description |
---|---|
static class |
EditingModalGraphMouse.ModeKeyAdapter |
ModalGraphMouse.Mode
Modifier and Type | Field and Description |
---|---|
protected AnnotatingGraphMousePlugin<V,E> |
annotatingPlugin |
protected MultiLayerTransformer |
basicTransformer |
protected com.google.common.base.Supplier<E> |
edgeFactory |
protected EditingGraphMousePlugin<V,E> |
editingPlugin |
protected LabelEditingGraphMousePlugin<V,E> |
labelEditingPlugin |
protected EditingPopupGraphMousePlugin<V,E> |
popupEditingPlugin |
protected RenderContext<V,E> |
rc |
protected com.google.common.base.Supplier<V> |
vertexFactory |
animatedPickingPlugin, in, listenerList, mode, modeBox, modeKeyListener, modeListener, modeMenu, out, pickingPlugin, rotatingPlugin, scalingPlugin, shearingPlugin, translatingPlugin
Constructor and Description |
---|
EditingModalGraphMouse(RenderContext<V,E> rc,
com.google.common.base.Supplier<V> vertexFactory,
com.google.common.base.Supplier<E> edgeFactory)
Creates an instance with the specified rendering context and vertex/edge factories,
and with default zoom in/out values of 1.1 and 1/1.1.
|
EditingModalGraphMouse(RenderContext<V,E> rc,
com.google.common.base.Supplier<V> vertexFactory,
com.google.common.base.Supplier<E> edgeFactory,
float in,
float out)
Creates an instance with the specified rendering context and vertex/edge factories,
and with the specified zoom in/out values.
|
Modifier and Type | Method and Description |
---|---|
AnnotatingGraphMousePlugin<V,E> |
getAnnotatingPlugin() |
EditingGraphMousePlugin<V,E> |
getEditingPlugin() |
LabelEditingGraphMousePlugin<V,E> |
getLabelEditingPlugin() |
JComboBox<ModalGraphMouse.Mode> |
getModeComboBox() |
JMenu |
getModeMenu()
create (if necessary) and return a menu that will change
the mode
|
EditingPopupGraphMousePlugin<V,E> |
getPopupEditingPlugin() |
protected void |
loadPlugins()
create the plugins, and load the plugins for TRANSFORMING mode
|
protected void |
setAnnotatingMode() |
protected void |
setEditingMode() |
void |
setMode(ModalGraphMouse.Mode mode)
setter for the Mode.
|
protected void |
setPickingMode() |
protected void |
setTransformingMode() |
addItemListener, fireItemStateChanged, getItemListeners, getModeKeyListener, getModeListener, getSelectedObjects, removeItemListener, setModeKeyListener, setZoomAtMouse
add, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModeListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
mouseDragged, mouseMoved
mouseWheelMoved
addItemListener, getSelectedObjects, removeItemListener
protected com.google.common.base.Supplier<V> vertexFactory
protected com.google.common.base.Supplier<E> edgeFactory
protected EditingGraphMousePlugin<V,E> editingPlugin
protected LabelEditingGraphMousePlugin<V,E> labelEditingPlugin
protected EditingPopupGraphMousePlugin<V,E> popupEditingPlugin
protected AnnotatingGraphMousePlugin<V,E> annotatingPlugin
protected MultiLayerTransformer basicTransformer
protected RenderContext<V,E> rc
public EditingModalGraphMouse(RenderContext<V,E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory)
rc
- the rendering contextvertexFactory
- used to construct verticesedgeFactory
- used to construct edgespublic EditingModalGraphMouse(RenderContext<V,E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory, float in, float out)
rc
- the rendering contextvertexFactory
- used to construct verticesedgeFactory
- used to construct edgesin
- amount to zoom in by for each actionout
- amount to zoom out by for each actionprotected void loadPlugins()
loadPlugins
in class AbstractModalGraphMouse
public void setMode(ModalGraphMouse.Mode mode)
setMode
in interface ModalGraphMouse
setMode
in class AbstractModalGraphMouse
protected void setPickingMode()
setPickingMode
in class AbstractModalGraphMouse
protected void setTransformingMode()
setTransformingMode
in class AbstractModalGraphMouse
protected void setEditingMode()
protected void setAnnotatingMode()
public JComboBox<ModalGraphMouse.Mode> getModeComboBox()
getModeComboBox
in class AbstractModalGraphMouse
public JMenu getModeMenu()
getModeMenu
in class AbstractModalGraphMouse
public AnnotatingGraphMousePlugin<V,E> getAnnotatingPlugin()
public EditingGraphMousePlugin<V,E> getEditingPlugin()
public LabelEditingGraphMousePlugin<V,E> getLabelEditingPlugin()
public EditingPopupGraphMousePlugin<V,E> getPopupEditingPlugin()
Copyright © 2015. All rights reserved.