japlot.jaxodraw
Class JaxoPopupListener
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- japlot.jaxodraw.JaxoPopupListener
-
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
public class JaxoPopupListener extends java.awt.event.MouseAdapterGeneral class that takes care of the pop up events.
-
-
Constructor Summary
Constructors Constructor and Description JaxoPopupListener(JaxoMainPanel mainPanel, int calledFrom)Constructor: creates the (Canvas,Vertex,Grid,Zoom) PopupMenus.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidmouseClicked(java.awt.event.MouseEvent e)Specifies the action to be taken when the mouse has been clicked on the current component.voidsetLanguage(java.lang.String languageString)Sets the text for the popup menus in different languages.voidupdatePop(int i)Sets the radio button to the current vertex type in the pop-up menu.
-
-
-
Constructor Detail
-
JaxoPopupListener
public JaxoPopupListener(JaxoMainPanel mainPanel, int calledFrom)
Constructor: creates the (Canvas,Vertex,Grid,Zoom) PopupMenus.- Parameters:
mainPanel- Instance of the main panel.calledFrom- An integer specifying the type of popup menu this listener was called from.
-
-
Method Detail
-
mouseClicked
public final void mouseClicked(java.awt.event.MouseEvent e)
Specifies the action to be taken when the mouse has been clicked on the current component.- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener- Overrides:
mouseClickedin classjava.awt.event.MouseAdapter- Parameters:
e- The MouseEvent to be processed.
-
setLanguage
public final void setLanguage(java.lang.String languageString)
Sets the text for the popup menus in different languages.- Parameters:
languageString- A string specifying the language to be set.
-
updatePop
public final void updatePop(int i)
Sets the radio button to the current vertex type in the pop-up menu.- Parameters:
i- Specifies the current vertex type.
-
-
DMelt 3.0 © DataMelt by jWork.ORG