Class DragBuffer

java.lang.Object
VASSAL.counters.DragBuffer

public class DragBuffer extends Object
  • Method Details

    • getBuffer

      public static DragBuffer getBuffer()
    • add

      public void add(GamePiece p)
    • getFromMap

      public Map getFromMap()
    • clear

      public void clear()
    • addDragSource

      public void addDragSource(Component c)
    • addDropTarget

      public void addDropTarget(Component c, MouseListener l)
    • remove

      public void remove(GamePiece p)
    • contains

      public boolean contains(GamePiece p)
    • containsAllMembers

      public boolean containsAllMembers(Stack s)
      Parameters:
      s - Stack to test.
      Returns:
      true if the DragBuffer contains all members of Stack s
    • asList

      public List<GamePiece> asList()
      Returns:
      an unmodifiable List of GamePieces contained in this DragBuffer
    • getIterator

      public PieceIterator getIterator()
    • isEmpty

      public boolean isEmpty()
    • contents

      public String contents()
    • main

      public static void main(String[] args)
    • createDragCursor

      public Cursor createDragCursor(Component comp)
    • sort

      public void sort(Comparator<GamePiece> comp)
    • sort

      @Deprecated(since="2020-08-06", forRemoval=true) public void sort(Sort.Comparator comp)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use sort(Comparator) instead.
    • init

      @Deprecated(since="2020-08-06", forRemoval=true) public static void init(DragBuffer db)
      Deprecated, for removal: This API element is subject to removal in a future version.
      No Replacement