|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.visualization.control.PluggableGraphMouse
edu.uci.ics.jung.visualization.control.EditingModalGraphMouse
public class EditingModalGraphMouse
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse |
---|
ModalGraphMouse.Mode |
Field Summary | |
---|---|
protected GraphMousePlugin |
animatedPickingPlugin
|
protected GraphMousePlugin |
editingPlugin
|
protected float |
in
used by the scaling plugins for zoom in |
protected EventListenerList |
listenerList
listeners for mode changes |
protected ModalGraphMouse.Mode |
mode
the current mode |
protected JComboBox |
modeBox
a JComboBox control available to set the mode |
protected ItemListener |
modeListener
a listener for mode changes |
protected JMenu |
modeMenu
a menu available to set the mode |
protected float |
out
used by the scaling plugins for zoom out |
protected GraphMousePlugin |
pickingPlugin
|
protected GraphMousePlugin |
rotatingPlugin
|
protected GraphMousePlugin |
scalingPlugin
|
protected GraphMousePlugin |
shearingPlugin
|
protected GraphMousePlugin |
translatingPlugin
|
Constructor Summary | |
---|---|
EditingModalGraphMouse()
create an instance with default values |
|
EditingModalGraphMouse(float in,
float out)
create an instance with passed values |
Method Summary | |
---|---|
void |
addItemListener(ItemListener aListener)
add a listener for mode changes |
protected void |
fireItemStateChanged(ItemEvent e)
Notifies all listeners that have registered interest for notification on this event type. |
ItemListener[] |
getItemListeners()
Returns an array of all the ItemListener s added
to this JComboBox with addItemListener(). |
JComboBox |
getModeComboBox()
|
ItemListener |
getModeListener()
|
JMenu |
getModeMenu()
create (if necessary) and return a menu that will change the mode |
Object[] |
getSelectedObjects()
|
protected void |
loadPlugins()
create the plugins, and load the plugins for TRANSFORMING mode |
void |
removeItemListener(ItemListener aListener)
remove a listener for mode changes |
protected void |
setEditingMode()
|
void |
setMode(ModalGraphMouse.Mode mode)
setter for the Mode. |
protected void |
setPickingMode()
|
protected void |
setTransformingMode()
|
void |
setVertexLocations(SettableVertexLocationFunction vertexLocations)
|
void |
setZoomAtMouse(boolean zoomAtMouse)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
---|
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from interface java.awt.event.MouseMotionListener |
---|
mouseDragged, mouseMoved |
Methods inherited from interface java.awt.event.MouseWheelListener |
---|
mouseWheelMoved |
Field Detail |
---|
protected float in
protected float out
protected ItemListener modeListener
protected JComboBox modeBox
protected JMenu modeMenu
protected ModalGraphMouse.Mode mode
protected EventListenerList listenerList
protected GraphMousePlugin pickingPlugin
protected GraphMousePlugin translatingPlugin
protected GraphMousePlugin animatedPickingPlugin
protected GraphMousePlugin scalingPlugin
protected GraphMousePlugin rotatingPlugin
protected GraphMousePlugin shearingPlugin
protected GraphMousePlugin editingPlugin
Constructor Detail |
---|
public EditingModalGraphMouse()
public EditingModalGraphMouse(float in, float out)
in
- override value for scale inout
- override value for scale outMethod Detail |
---|
protected void loadPlugins()
public void setVertexLocations(SettableVertexLocationFunction vertexLocations)
public void setMode(ModalGraphMouse.Mode mode)
setMode
in interface ModalGraphMouse
protected void setPickingMode()
protected void setTransformingMode()
protected void setEditingMode()
public void setZoomAtMouse(boolean zoomAtMouse)
zoomAtMouse
- The zoomAtMouse to set.public ItemListener getModeListener()
getModeListener
in interface ModalGraphMouse
public JComboBox getModeComboBox()
public JMenu getModeMenu()
public void addItemListener(ItemListener aListener)
addItemListener
in interface ItemSelectable
public void removeItemListener(ItemListener aListener)
removeItemListener
in interface ItemSelectable
public ItemListener[] getItemListeners()
ItemListener
s added
to this JComboBox with addItemListener().
ItemListener
s added or an empty
array if no listeners have been addedpublic Object[] getSelectedObjects()
getSelectedObjects
in interface ItemSelectable
protected void fireItemStateChanged(ItemEvent e)
e
- the event of interestEventListenerList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |