fc6a9c2d07
Reviewed-by: alexp, denis
21 lines
393 B
Java
21 lines
393 B
Java
import java.awt.*;
|
|
|
|
|
|
class NextFramePositionCalculator {
|
|
|
|
private final Frame currentFrame;
|
|
|
|
public NextFramePositionCalculator(Frame currentFrame) {
|
|
this.currentFrame = currentFrame;
|
|
}
|
|
|
|
public int getNextLocationX() {
|
|
return currentFrame.getX() + currentFrame.getWidth();
|
|
}
|
|
|
|
public int getNextLocationY() {
|
|
return currentFrame.getY();
|
|
}
|
|
|
|
}
|