Class FxDragSpriteEventHandlerImpl

java.lang.Object
org.refcodes.graphical.ext.javafx.FxDragSpriteEventHandlerImpl
All Implemented Interfaces:
org.refcodes.graphical.DragOpacityAccessor, org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<FxDragSpriteEventHandler>, org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator, org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty, FxDragSpriteEventHandler, org.refcodes.graphical.FieldDimension, org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<FxDragSpriteEventHandler>, org.refcodes.graphical.FieldDimension.FieldDimensionMutator, org.refcodes.graphical.FieldDimension.FieldDimensionProperty, org.refcodes.graphical.FieldGapAccessor, org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<FxDragSpriteEventHandler>, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator, org.refcodes.graphical.FieldGapAccessor.FieldGapProperty, org.refcodes.graphical.FieldHeightAccessor, org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<FxDragSpriteEventHandler>, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator, org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty, org.refcodes.graphical.FieldWidthAccessor, org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<FxDragSpriteEventHandler>, org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator, org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty, org.refcodes.graphical.MoveModeAccessor, org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<FxDragSpriteEventHandler>, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator, org.refcodes.graphical.MoveModeAccessor.MoveModeProperty, org.refcodes.graphical.Offset, org.refcodes.graphical.OffsetXAccessor, org.refcodes.graphical.OffsetYAccessor, org.refcodes.graphical.SpriteAccessor<Node>, org.refcodes.mixin.Disposable

public class FxDragSpriteEventHandlerImpl
extends Object
implements FxDragSpriteEventHandler
The Class FxDragSpriteEventHandlerImpl.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.Disposable

    org.refcodes.mixin.Disposable.Disposedable

    Nested classes/interfaces inherited from interface org.refcodes.graphical.DragOpacityAccessor

    org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B extends org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B>>, org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator, org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldDimension

    org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B extends org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B>>, org.refcodes.graphical.FieldDimension.FieldDimensionMutator, org.refcodes.graphical.FieldDimension.FieldDimensionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldGapAccessor

    org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B extends org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B>>, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator, org.refcodes.graphical.FieldGapAccessor.FieldGapProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldHeightAccessor

    org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B extends org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B>>, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator, org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldWidthAccessor

    org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B extends org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B>>, org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator, org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.MoveModeAccessor

    org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B extends org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B>>, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator, org.refcodes.graphical.MoveModeAccessor.MoveModeProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.Offset

    org.refcodes.graphical.Offset.OffsetBuilder<B extends org.refcodes.graphical.Offset.OffsetBuilder<B>>, org.refcodes.graphical.Offset.OffsetMutator, org.refcodes.graphical.Offset.OffsetProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.OffsetXAccessor

    org.refcodes.graphical.OffsetXAccessor.OffsetXBuilder<B extends org.refcodes.graphical.OffsetXAccessor.OffsetXBuilder<B>>, org.refcodes.graphical.OffsetXAccessor.OffsetXMutator, org.refcodes.graphical.OffsetXAccessor.OffsetXProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.OffsetYAccessor

    org.refcodes.graphical.OffsetYAccessor.OffsetYBuilder<B extends org.refcodes.graphical.OffsetYAccessor.OffsetYBuilder<B>>, org.refcodes.graphical.OffsetYAccessor.OffsetYMutator, org.refcodes.graphical.OffsetYAccessor.OffsetYProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.SpriteAccessor

    org.refcodes.graphical.SpriteAccessor.SpriteBuilder<T extends Object,​B extends org.refcodes.graphical.SpriteAccessor.SpriteBuilder<T,​B>>, org.refcodes.graphical.SpriteAccessor.SpriteMutator<T extends Object>, org.refcodes.graphical.SpriteAccessor.SpriteProperty<T extends Object>
  • Field Summary

    Fields
    Modifier and Type Field Description
    double _posX  
  • Constructor Summary

    Constructors
    Constructor Description
    FxDragSpriteEventHandlerImpl​(Node aSprite, Pane aScene)
    Instantiates a new fx drag sprite event handler impl.
  • Method Summary

    Modifier and Type Method Description
    void dispose()
    double getDragOpacity()
    int getFieldGap()
    int getFieldHeight()
    int getFieldWidth()
    org.refcodes.graphical.MoveMode getMoveMode()
    int getOffsetX()
    int getOffsetY()
    Node getSprite()
    void setDragOpacity​(double aOpacity)
    void setFieldDimension​(int aWidth, int aHeight)
    void setFieldDimension​(int aWidth, int aHeight, int aGap)
    void setFieldDimension​(org.refcodes.graphical.Dimension aDimension)
    void setFieldDimension​(org.refcodes.graphical.FieldDimension aDimension)
    void setFieldGap​(int aFieldGap)
    void setFieldHeight​(int aHeight)
    void setFieldWidth​(int aWidth)
    void setMoveMode​(org.refcodes.graphical.MoveMode aMoveMode)
    FxDragSpriteEventHandler withDragOpacity​(double aOpacity)
    FxDragSpriteEventHandlerImpl withFieldDimension​(int aWidth, int aHeight)
    FxDragSpriteEventHandlerImpl withFieldDimension​(int aWidth, int aHeight, int aGap)
    FxDragSpriteEventHandlerImpl withFieldDimension​(org.refcodes.graphical.Dimension aDimension)
    FxDragSpriteEventHandlerImpl withFieldDimension​(org.refcodes.graphical.FieldDimension aDimension)
    FxDragSpriteEventHandlerImpl withFieldGap​(int aFieldGap)
    FxDragSpriteEventHandlerImpl withFieldHeight​(int aHeight)
    FxDragSpriteEventHandlerImpl withFieldWidth​(int aWidth)
    FxDragSpriteEventHandler withMoveMode​(org.refcodes.graphical.MoveMode aMoveMode)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty

    letDragOpacity

    Methods inherited from interface org.refcodes.graphical.FieldDimension.FieldDimensionProperty

    letFieldDimension, letFieldDimension, letFieldDimension, letFieldDimension

    Methods inherited from interface org.refcodes.graphical.FieldGapAccessor.FieldGapProperty

    letFieldGap

    Methods inherited from interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty

    letFieldHeight

    Methods inherited from interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty

    letFieldWidth

    Methods inherited from interface org.refcodes.graphical.MoveModeAccessor.MoveModeProperty

    letMoveMode
  • Field Details

    • _posX

      public double _posX
  • Constructor Details

    • FxDragSpriteEventHandlerImpl

      public FxDragSpriteEventHandlerImpl​(Node aSprite, Pane aScene)
      Instantiates a new fx drag sprite event handler impl.
      Parameters:
      aSprite - the sprite
      aScene - the scene
  • Method Details

    • getFieldWidth

      public int getFieldWidth()
      Specified by:
      getFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor
    • getFieldHeight

      public int getFieldHeight()
      Specified by:
      getFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor
    • getFieldGap

      public int getFieldGap()
      Specified by:
      getFieldGap in interface org.refcodes.graphical.FieldGapAccessor
    • setFieldWidth

      public void setFieldWidth​(int aWidth)
      Specified by:
      setFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator
    • withFieldWidth

      public FxDragSpriteEventHandlerImpl withFieldWidth​(int aWidth)
      Specified by:
      withFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<FxDragSpriteEventHandler>
    • setFieldHeight

      public void setFieldHeight​(int aHeight)
      Specified by:
      setFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator
    • getOffsetX

      public int getOffsetX()
      Specified by:
      getOffsetX in interface org.refcodes.graphical.OffsetXAccessor
    • getOffsetY

      public int getOffsetY()
      Specified by:
      getOffsetY in interface org.refcodes.graphical.OffsetYAccessor
    • withFieldHeight

      public FxDragSpriteEventHandlerImpl withFieldHeight​(int aHeight)
      Specified by:
      withFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<FxDragSpriteEventHandler>
    • withFieldDimension

      public FxDragSpriteEventHandlerImpl withFieldDimension​(int aWidth, int aHeight)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<FxDragSpriteEventHandler>
    • withFieldDimension

      public FxDragSpriteEventHandlerImpl withFieldDimension​(int aWidth, int aHeight, int aGap)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<FxDragSpriteEventHandler>
    • withFieldDimension

      public FxDragSpriteEventHandlerImpl withFieldDimension​(org.refcodes.graphical.FieldDimension aDimension)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<FxDragSpriteEventHandler>
    • setFieldDimension

      public void setFieldDimension​(int aWidth, int aHeight)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • setFieldDimension

      public void setFieldDimension​(int aWidth, int aHeight, int aGap)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • setFieldDimension

      public void setFieldDimension​(org.refcodes.graphical.FieldDimension aDimension)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • withFieldDimension

      public FxDragSpriteEventHandlerImpl withFieldDimension​(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<FxDragSpriteEventHandler>
    • setFieldDimension

      public void setFieldDimension​(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • setFieldGap

      public void setFieldGap​(int aFieldGap)
      Specified by:
      setFieldGap in interface org.refcodes.graphical.FieldGapAccessor.FieldGapMutator
    • withFieldGap

      public FxDragSpriteEventHandlerImpl withFieldGap​(int aFieldGap)
      Specified by:
      withFieldGap in interface org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<FxDragSpriteEventHandler>
    • getDragOpacity

      public double getDragOpacity()
      Specified by:
      getDragOpacity in interface org.refcodes.graphical.DragOpacityAccessor
    • setDragOpacity

      public void setDragOpacity​(double aOpacity)
      Specified by:
      setDragOpacity in interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator
    • withDragOpacity

      public FxDragSpriteEventHandler withDragOpacity​(double aOpacity)
      Specified by:
      withDragOpacity in interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<FxDragSpriteEventHandler>
    • getSprite

      public Node getSprite()
      Specified by:
      getSprite in interface org.refcodes.graphical.SpriteAccessor<Node>
    • getMoveMode

      public org.refcodes.graphical.MoveMode getMoveMode()
      Specified by:
      getMoveMode in interface org.refcodes.graphical.MoveModeAccessor
    • setMoveMode

      public void setMoveMode​(org.refcodes.graphical.MoveMode aMoveMode)
      Specified by:
      setMoveMode in interface org.refcodes.graphical.MoveModeAccessor.MoveModeMutator
    • withMoveMode

      public FxDragSpriteEventHandler withMoveMode​(org.refcodes.graphical.MoveMode aMoveMode)
      Specified by:
      withMoveMode in interface org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<FxDragSpriteEventHandler>
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.refcodes.mixin.Disposable