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, 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 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 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
Copyright © 2015. All rights reserved.