edu.uci.ics.jung.visualization.annotations
Class AnnotatingModalGraphMouse<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.control.PluggableGraphMouse
-
- edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
-
- edu.uci.ics.jung.visualization.annotations.AnnotatingModalGraphMouse<V,E>
-
- Type Parameters:
V- the vertex typeE- the edge type
- All Implemented Interfaces:
- ModalGraphMouse, VisualizationViewer.GraphMouse, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.ItemSelectable, java.util.EventListener
public class AnnotatingModalGraphMouse<V,E> extends AbstractModalGraphMouse implements ModalGraphMouse, java.awt.ItemSelectable
a graph mouse that supplies an annotations mode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classAnnotatingModalGraphMouse.ModeKeyAdapter-
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse
ModalGraphMouse.Mode
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.swing.JComboBox<ModalGraphMouse.Mode>getModeComboBox()javax.swing.JMenugetModeMenu()create (if necessary) and return a menu that will change the modevoidsetMode(ModalGraphMouse.Mode mode)setter for the Mode.-
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
addItemListener, getItemListeners, getModeKeyListener, getModeListener, getSelectedObjects, removeItemListener, setModeKeyListener, setZoomAtMouse
-
Methods inherited from class edu.uci.ics.jung.visualization.control.PluggableGraphMouse
add, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse
getModeListener
-
-
-
-
Constructor Detail
-
AnnotatingModalGraphMouse
public 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).- Parameters:
rc- the RenderContext for which this class will be usedannotatingPlugin- the plugin used by this class for annotating
-
AnnotatingModalGraphMouse
public 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.- Parameters:
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 out
-
-
Method Detail
-
setMode
public void setMode(ModalGraphMouse.Mode mode)
setter for the Mode.- Specified by:
setModein interfaceModalGraphMouse- Overrides:
setModein classAbstractModalGraphMouse
-
getModeComboBox
public javax.swing.JComboBox<ModalGraphMouse.Mode> getModeComboBox()
- Overrides:
getModeComboBoxin classAbstractModalGraphMouse- Returns:
- Returns the modeBox.
-
getModeMenu
public javax.swing.JMenu getModeMenu()
create (if necessary) and return a menu that will change the mode- Overrides:
getModeMenuin classAbstractModalGraphMouse- Returns:
- the menu
-
-
DataMelt 3.0 © DataMelt by jWork.ORG