Module hanyaeger

Interface DragRepositoryAccessor

All Known Subinterfaces:
MouseDragEnterListener, MouseDragExitedListener, MouseDraggedListener, MouseDropListener, YaegerScene
All Known Implementing Classes:
CenteredShapeEntity, CircleEntity, CompositeEntity, DynamicCircleEntity, DynamicCompositeEntity, DynamicEllipseEntity, DynamicRectangleEntity, DynamicScene, DynamicSpriteEntity, DynamicTextEntity, EllipseEntity, RectangleEntity, ScrollableDynamicScene, ShapeEntity, SplashScene, SpriteEntity, StaticScene, TextEntity, YaegerEntity

public interface DragRepositoryAccessor
A DragRepositoryAccessor needs access to a DragNDropRepository to either set or get information about the object that is currently being dragged/dropped.
  • Method Details

    • setDragNDropRepository

      void setDragNDropRepository(DragNDropRepository dragNDropRepository)
      Set the DragNDropRepository.

      Note: This method is part of the internal API, and should not be used when implementing a Yaeger game.

      Parameters:
      dragNDropRepository - the DragNDropRepository to be used
    • getDragNDropRepository

      DragNDropRepository getDragNDropRepository()
      Return the DragNDropRepository that was set on this DragRepositoryAccessor.

      Note: This method is part of the internal API, and should not be used when implementing a Yaeger game.

      Returns:
      the instance of DragNDropRepository