Package VASSAL.build.module.map
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 Summary
-
Constructor Summary
Constructors Constructor Description StackExpander()
-
Method Summary
Modifier and Type Method Description void
add(Buildable b)
Adds a child component.void
addTo(Buildable b)
Adds this component to its parent.void
build(Element e)
Build the objectElement
getBuildElement(Document doc)
void
mouseReleased(MouseEvent e)
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseWheelMoved
-
Field Details
-
map
-
-
Constructor Details
-
StackExpander
public StackExpander()
-
-
Method Details
-
addTo
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. -
add
Description copied from interface:Buildable
Adds a child component. Both this method andBuildable.addTo(VASSAL.build.Buildable)
are invoked when adding a child to a parent -
getBuildElement
- Specified by:
getBuildElement
in interfaceBuildable
- Returns:
- an XML element from which this component can be built
-
build
Description copied from interface:Buildable
Build the object -
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classMouseAdapter
-