Class DeviceButton

All Implemented Interfaces:
MouseListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

public class DeviceButton extends ASingleClickButton
See Also:
  • Constructor Details

    • DeviceButton

      public DeviceButton(NetworkLayoutDemoView view, EDeviceSymbol symbol)
      Constructor
      Parameters:
      view - the parent view being controlled
      symbol - the symbol to be created when this button is clicked
  • Method Details

    • canvasClick

      public void canvasClick(MouseEvent e)
      When the button is clicked, create a new device item at the clicked location and refresh the view.
      Specified by:
      canvasClick in class ASingleClickButton
      Parameters:
      e - the mouse event representing the click