Class Position._TopRight

  • All Implemented Interfaces:
    Position
    Enclosing interface:
    Position

    public static class Position._TopRight
    extends java.lang.Object
    • Constructor Detail

      • _TopRight

        public _TopRight()
    • Method Detail

      • calculateY

        public default int calculateY​(int sourceWidth,
                                      int sourceHeight,
                                      int targetWidth,
                                      int targetHeight)
        Description copied from interface: Position
        Returns the y coordinate for where an image should be placed inside the canvas.
        Specified by:
        calculateY in interface Position
      • calculateX

        public default int calculateX​(int sourceWidth,
                                      int sourceHeight,
                                      int targetWidth,
                                      int targetHeight)
        Description copied from interface: Position
        Returns the x coordinate for where a target should be placed inside the source.
        Specified by:
        calculateX in interface Position