public static class Position._CenterRight
extends java.lang.Object
Position._BottomCenter, Position._BottomLeft, Position._BottomRight, Position._Center, Position._CenterLeft, Position._CenterRight, Position._TopCenter, Position._TopLeft, Position._TopRight
BottomCenter, BottomLeft, BottomRight, Center, CenterLeft, CenterRight, TopCenter, TopLeft, TopRight
Constructor and Description |
---|
_CenterRight() |
Modifier and Type | Method and Description |
---|---|
default int |
calculateX(int sourceWidth,
int sourceHeight,
int targetWidth,
int targetHeight)
Returns the x coordinate for where a target should be placed inside the source.
|
default int |
calculateY(int sourceWidth,
int sourceHeight,
int targetWidth,
int targetHeight)
Returns the y coordinate for where an image should be placed inside the canvas.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateXY
public int calculateY(int sourceWidth, int sourceHeight, int targetWidth, int targetHeight)
Position
calculateY
in interface Position
public int calculateX(int sourceWidth, int sourceHeight, int targetWidth, int targetHeight)
Position
calculateX
in interface Position