Package VASSAL.counters
Class DragBuffer
java.lang.Object
VASSAL.counters.DragBuffer
public class DragBuffer extends Object
-
Method Summary
Modifier and Type Method Description voidadd(GamePiece p)voidaddDragSource(Component c)voidaddDropTarget(Component c, MouseListener l)List<GamePiece>asList()voidclear()booleancontains(GamePiece p)booleancontainsAllMembers(Stack s)Stringcontents()CursorcreateDragCursor(Component comp)static DragBuffergetBuffer()MapgetFromMap()PieceIteratorgetIterator()static voidinit(DragBuffer db)Deprecated, for removal: This API element is subject to removal in a future version.No ReplacementbooleanisEmpty()static voidmain(String[] args)voidremove(GamePiece p)voidsort(Comparator<GamePiece> comp)voidsort(Sort.Comparator comp)Deprecated, for removal: This API element is subject to removal in a future version.Usesort(Comparator)instead.
-
Method Details
-
getBuffer
-
add
-
getFromMap
-
clear
public void clear() -
addDragSource
-
addDropTarget
-
remove
-
contains
-
containsAllMembers
- Parameters:
s- Stack to test.- Returns:
- true if the DragBuffer contains all members of Stack s
-
asList
- Returns:
- an unmodifiable
ListofGamePieces contained in thisDragBuffer
-
getIterator
-
isEmpty
public boolean isEmpty() -
contents
-
main
-
createDragCursor
-
sort
-
sort
Deprecated, for removal: This API element is subject to removal in a future version.Usesort(Comparator)instead. -
init
Deprecated, for removal: This API element is subject to removal in a future version.No Replacement
-