V - the vertex typeE - the edge typepublic class AnnotatingModalGraphMouse<V,E> extends AbstractModalGraphMouse implements ModalGraphMouse, ItemSelectable
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotatingModalGraphMouse.ModeKeyAdapter |
ModalGraphMouse.Mode| Modifier and Type | Field and Description |
|---|---|
protected AnnotatingGraphMousePlugin<V,E> |
annotatingPlugin |
protected MultiLayerTransformer |
basicTransformer |
protected RenderContext<V,E> |
rc |
animatedPickingPlugin, in, listenerList, mode, modeBox, modeKeyListener, modeListener, modeMenu, out, pickingPlugin, rotatingPlugin, scalingPlugin, shearingPlugin, translatingPlugin| Constructor and Description |
|---|
AnnotatingModalGraphMouse(RenderContext<V,E> rc,
AnnotatingGraphMousePlugin<V,E> annotatingPlugin)
Create an instance with default values for scale in (1.1) and scale out (1/1.1).
|
AnnotatingModalGraphMouse(RenderContext<V,E> rc,
AnnotatingGraphMousePlugin<V,E> annotatingPlugin,
float in,
float out)
Create an instance with the specified scale in and scale out values.
|
| Modifier and Type | Method and Description |
|---|---|
JComboBox<ModalGraphMouse.Mode> |
getModeComboBox() |
JMenu |
getModeMenu()
create (if necessary) and return a menu that will change
the mode
|
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, setZoomAtMouseadd, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModeListenermouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedmouseDragged, mouseMovedmouseWheelMovedaddItemListener, getSelectedObjects, removeItemListenerprotected AnnotatingGraphMousePlugin<V,E> annotatingPlugin
protected MultiLayerTransformer basicTransformer
protected RenderContext<V,E> rc
public AnnotatingModalGraphMouse(RenderContext<V,E> rc, AnnotatingGraphMousePlugin<V,E> annotatingPlugin)
rc - the RenderContext for which this class will be usedannotatingPlugin - the plugin used by this class for annotatingpublic AnnotatingModalGraphMouse(RenderContext<V,E> rc, AnnotatingGraphMousePlugin<V,E> annotatingPlugin, float in, float out)
rc - the RenderContext for which this class will be usedannotatingPlugin - the plugin used by this class for annotatingin - override value for scale inout - override value for scale outprotected void loadPlugins()
loadPlugins in class AbstractModalGraphMousepublic void setMode(ModalGraphMouse.Mode mode)
setMode in interface ModalGraphMousesetMode in class AbstractModalGraphMouseprotected void setPickingMode()
setPickingMode in class AbstractModalGraphMouseprotected void setTransformingMode()
setTransformingMode in class AbstractModalGraphMouseprotected void setEditingMode()
protected void setAnnotatingMode()
public JComboBox<ModalGraphMouse.Mode> getModeComboBox()
getModeComboBox in class AbstractModalGraphMousepublic JMenu getModeMenu()
getModeMenu in class AbstractModalGraphMouseCopyright © 2016. All rights reserved.