コード例 #1
0
 @Override
 protected void dragStarted(DragGestureEvent e) {
   GuiCard guiCard = (GuiCard) e.getComponent();
   guiCard.setLocation(guiCard.getOrigin());
 }
コード例 #2
0
 @Override
 protected Transferable getTransferable(DragGestureEvent e) {
   return new CardTransfer(comp.getCard());
 }
コード例 #3
0
 public CardDragSourceListener(GuiCard comp) {
   this(comp, DnDConstants.ACTION_COPY_OR_MOVE);
   this.comp = comp;
   this.dragIcon = new ImageIcon(CardManager.getInstance().getCard(comp.getCard()));
 }