Package VASSAL.build.module.map
Class PieceMover.DragHandlerMacOSX
java.lang.Object
VASSAL.build.module.map.PieceMover.AbstractDragHandler
VASSAL.build.module.map.PieceMover.DragHandler
VASSAL.build.module.map.PieceMover.DragHandlerMacOSX
- All Implemented Interfaces:
DragGestureListener
,DragSourceListener
,DragSourceMotionListener
,DropTargetListener
,EventListener
- Enclosing class:
PieceMover
Special MacOSX variant of DragHandler, because of differences in how
device scaling is handled.
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.build.module.map.PieceMover.AbstractDragHandler
PieceMover.AbstractDragHandler.AbstractDragHandlerFactory
-
Field Summary
Fields inherited from class VASSAL.build.module.map.PieceMover.AbstractDragHandler
boundingBox, boundingBoxComp, currentPieceOffsetX, currentPieceOffsetY, CURSOR_ALPHA, dragCursor, dragCursorZoom, dragPieceOffCenterZoom, dropTargetListeners, EXTRA_BORDER, lastDragLocation, pieceMovers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
protected double
protected int
Methods inherited from class VASSAL.build.module.map.PieceMover.DragHandler
dragGestureRecognized
Methods inherited from class VASSAL.build.module.map.PieceMover.AbstractDragHandler
addPieceMover, beginDragging, calcDrawOffset, dragDropEnd, dragEnter, dragEnter, dragExit, dragExit, dragGestureRecognizedPrep, dragMouseMoved, dragOver, dragOver, drop, dropActionChanged, dropActionChanged, getListener, getTheDragHandler, makeDragCursor, makeDragImageCursorCommon, makeDragImageCursorCommon, makeDropTarget, moveDragCursor, removeDragCursor, removeDropTarget, resetDragHandler, resetRecursivePieceSlots, setDrawWinToOwnerOf, setTheDragHandler
-
Constructor Details
-
DragHandlerMacOSX
public DragHandlerMacOSX()
-
-
Method Details
-
getOffsetMult
protected int getOffsetMult()- Overrides:
getOffsetMult
in classPieceMover.DragHandler
- Returns:
- platform-dependent offset multiplier
-
getDeviceScale
- Overrides:
getDeviceScale
in classPieceMover.DragHandler
- Parameters:
dge
- DG event- Returns:
- platform-dependent device scale
-
getDeviceScale
- Overrides:
getDeviceScale
in classPieceMover.DragHandler
-