|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--InfoBase | +--QuizBase
Description: this object tracks the user answers for the Quiz and stores the actual answers. it also holds the chainmap object which will be warped when the user finishes the quiz... it also keeps track of which question the ueser is on and a mechanism to ask questions. if the program is run in application mode the user can print the results to an output file...
Field Summary | |
boolean |
displayactual
|
boolean |
displayResults
|
boolean |
displayvector
|
boolean |
done
|
boolean |
isWarped
|
int |
locationsAnswered
|
chainMap |
map
|
QuestionResults |
questionResults
|
boolean |
showWarpedMap
|
javax.swing.JTextField |
status
|
MapWarper |
Warped
|
Constructor Summary | |
QuizBase()
|
|
QuizBase(int numQuestions)
|
|
QuizBase(int numQuestions,
int numloc)
|
Method Summary | |
void |
askLocation()
ask the next question (Location) in the Quiz |
void |
displayLocations(java.awt.Graphics g)
//Method: displayLocations // 1)displays all of the user entered points // 2)displays the actual locations (if selected) // 3)displays the vectors form user to actual locations (if selected) // 4)displays the warped map (if selected) |
void |
finish()
finishes the simulation |
void |
hideActualVectors()
|
boolean |
isFinished()
returns whether the Quiz is Finished |
QuizLocation |
logUserPoint(int x,
int y)
save the Users entry to a location |
void |
moveToNextLocation()
ask information about the next point |
void |
print()
|
void |
printOutput(java.lang.String filename)
|
void |
printToFile(java.io.RandomAccessFile r)
prints the actual and user answers to all the questions in a quiz to a file specified by the user |
void |
saveMap(javax.swing.JFrame parent)
saves the Map as a JPEG image to a file specified by the user |
void |
saveResults(javax.swing.JFrame parent)
|
void |
setMap(chainMap map)
sets the map to be warped |
void |
setTextField(javax.swing.JTextField s)
|
void |
Start()
begins asking questions in the quiz |
void |
toggleActual()
turns whether the actual locations are shown on or off |
boolean |
toggleActualShown()
|
void |
toggleResults()
turns whether the results are shown or hidden |
void |
toggleVectors()
turns whether the vectors from the users locations to actual locations are shown on or off |
void |
toggleWarped()
turns whether the warped map is shown or hidden |
void |
WarpMap()
warps the map |
Methods inherited from class InfoBase |
addLocation,
addQuestion,
addQuestion,
addQuestion,
setNumLocations |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public boolean done
public javax.swing.JTextField status
public int locationsAnswered
public QuestionResults questionResults
public MapWarper Warped
public chainMap map
public boolean displayactual
public boolean displayvector
public boolean displayResults
public boolean isWarped
public boolean showWarpedMap
Constructor Detail |
public QuizBase()
public QuizBase(int numQuestions)
public QuizBase(int numQuestions, int numloc)
Method Detail |
public void setMap(chainMap map)
public void WarpMap()
public void hideActualVectors()
public void toggleActual()
public void toggleVectors()
public void toggleWarped()
public void toggleResults()
public boolean isFinished()
public void print()
public void setTextField(javax.swing.JTextField s)
public void Start()
public void finish()
public void askLocation()
public QuizLocation logUserPoint(int x, int y)
public void moveToNextLocation()
public void displayLocations(java.awt.Graphics g)
public boolean toggleActualShown()
public void printOutput(java.lang.String filename)
public void saveResults(javax.swing.JFrame parent)
public void saveMap(javax.swing.JFrame parent)
public void printToFile(java.io.RandomAccessFile r)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |