java.lang.Object | +--SlideX
SlideX contains little bits and pieces of code from the various slides in this lecture. I wrote it to check that the examples actually work, and so that you can experiment with changing it and checking what effect the modifications have.
Field Summary | |
(package private) int |
x
an x value for the getX method to return. |
Constructor Summary | |
SlideX(int pos)
Initialize the various bits that we need in the example methods. |
Method Summary | |
java.lang.String |
firstTwo()
This method implements one of the slides. |
int |
getX()
Get current X value. |
static void |
main(java.lang.String[] args)
A test harness for the code in this class. |
Methods inherited from class java.lang.Object |
|
Field Detail |
int x
Constructor Detail |
public SlideX(int pos)
pos
- the x-position value that will be returned by getX().Method Detail |
public java.lang.String firstTwo()
public int getX()
public static void main(java.lang.String[] args)
args
- ignored