Documentation of 'japlot.jaxodraw.JaxoPopupListener' Java class
JaxoPopupListener
japlot.jaxodraw

Class 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.MouseAdapter
    General 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
      void mouseClicked(java.awt.event.MouseEvent e)
      Specifies the action to be taken when the mouse has been clicked on the current component.
      void setLanguage(java.lang.String languageString)
      Sets the text for the popup menus in different languages.
      void updatePop(int i)
      Sets the radio button to the current vertex type in the pop-up menu.
      • Methods inherited from class java.awt.event.MouseAdapter

        mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        mouseClicked in interface java.awt.event.MouseListener
        Overrides:
        mouseClicked in class java.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

You see the box below because you did not login.