Class RegionPointShift

java.lang.Object
org.luwrain.controls.RegionPointShift
All Implemented Interfaces:
AbstractRegionPoint, HotPoint

public class RegionPointShift extends Object implements AbstractRegionPoint
  • Field Details

    • regionPoint

      protected final AbstractRegionPoint regionPoint
    • offsetX

      protected int offsetX
    • offsetY

      protected int offsetY
  • Constructor Details

    • RegionPointShift

      public RegionPointShift(AbstractRegionPoint regionPoint, int offsetX, int offsetY)
  • Method Details

    • getHotPointX

      public int getHotPointX()
      Specified by:
      getHotPointX in interface HotPoint
    • getHotPointY

      public int getHotPointY()
      Specified by:
      getHotPointY in interface HotPoint
    • onSystemEvent

      public boolean onSystemEvent(SystemEvent event, int hotPointX, int hotPointY)
      Specified by:
      onSystemEvent in interface AbstractRegionPoint
    • isInitialized

      public boolean isInitialized()
      Specified by:
      isInitialized in interface AbstractRegionPoint
    • set

      public void set(int hotPointX, int hotPointY)
      Specified by:
      set in interface AbstractRegionPoint
    • reset

      public void reset()
      Specified by:
      reset in interface AbstractRegionPoint
    • getOffsetX

      public int getOffsetX()
    • setOffsetX

      public void setOffsetX(int offsetX)
    • getOffsetY

      public int getOffsetY()
    • setOffsetY

      public void setOffsetY(int offsetY)
    • setOffset

      public void setOffset(int offsetX, int offsetY)