Cross Reference: NextFramePositionCalculator.java
xref
: /
openjdk7
/
jdk
/
test
/
java
/
awt
/
DataFlavor
/
MissedHtmlAndRtfBug
/
NextFramePositionCalculator.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
5751
N/A
import
java
.
awt
.*;
5751
N/A
5751
N/A
5751
N/A
class
NextFramePositionCalculator
{
5751
N/A
5751
N/A
private
final
Frame
currentFrame
;
5751
N/A
5751
N/A
public
NextFramePositionCalculator
(
Frame
currentFrame
) {
5751
N/A
this
.
currentFrame
=
currentFrame
;
5751
N/A
}
5751
N/A
5751
N/A
public
int
getNextLocationX
() {
5751
N/A
return
currentFrame
.
getX
() +
currentFrame
.
getWidth
();
5751
N/A
}
5751
N/A
5751
N/A
public
int
getNextLocationY
() {
5751
N/A
return
currentFrame
.
getY
();
5751
N/A
}
5751
N/A
5751
N/A
}