Class StackExpander

java.lang.Object
java.awt.event.MouseAdapter
VASSAL.build.module.map.StackExpander
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, Buildable

public class StackExpander
extends MouseAdapter
implements Buildable
  • Field Details

    • map

      protected Map map
  • Constructor Details

    • StackExpander

      public StackExpander()
  • Method Details

    • addTo

      public void addTo​(Buildable b)
      Description copied from interface: Buildable
      Adds this component to its parent. In order to make Buildable objects extensible, the child is reponsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class.
      Specified by:
      addTo in interface Buildable
    • add

      public void add​(Buildable b)
      Description copied from interface: Buildable
      Adds a child component. Both this method and Buildable.addTo(VASSAL.build.Buildable) are invoked when adding a child to a parent
      Specified by:
      add in interface Buildable
    • getBuildElement

      public Element getBuildElement​(Document doc)
      Specified by:
      getBuildElement in interface Buildable
      Returns:
      an XML element from which this component can be built
    • build

      public void build​(Element e)
      Description copied from interface: Buildable
      Build the object
      Specified by:
      build in interface Buildable
      Parameters:
      e - the XML element containing the object data
    • mouseReleased

      public void mouseReleased​(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class MouseAdapter