| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.env.AGlobalEnv
sysModel.fish.tests.Test_AFish.TestGlobalEnv
private final class Test_AFish.TestGlobalEnv
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class sysModel.env.AGlobalEnv | 
|---|
AGlobalEnv.ALocalEnv, AGlobalEnv.BreedLambda, AGlobalEnv.ILocalEnvVisitor | 
| Field Summary | 
|---|
| Fields inherited from class sysModel.env.AGlobalEnv | 
|---|
_breedLambdas, _cmdFactory, _moveLambdas, _securityManager, _waterColor, OCEAN_BLUE | 
| Constructor Summary | |
|---|---|
Test_AFish.TestGlobalEnv(ICmdFactory cmdFactory,
                         ISecurityAdapter sm)
 | 
|
| Method Summary | |
|---|---|
protected  void | 
addFishToInternalData(AGlobalEnv.ALocalEnv localEnv,
                      AFish fish)
Add the fish to the environment's internal data structure.  | 
protected  ILambda | 
editFish(AGlobalEnv.ALocalEnv localEnv,
         IFishFactory fishFactory,
         int button)
Edit the fish.  | 
 java.awt.Dimension | 
getDisplaySize()
Get size of the display.  | 
 java.awt.geom.Point2D.Double | 
getPanDelta(java.awt.geom.Point2D.Double delta)
Ask the model how much to pan, given where the user scrolled.  | 
 ILambda | 
getToolTipText(java.awt.geom.Point2D.Double p)
Get a tool tip description for a specific place in the environment.  | 
 java.awt.geom.Point2D.Double | 
getViewPosition(java.awt.geom.Point2D.Double pos)
Ask the model where to scroll, given where the user has scrolled.  | 
 AEnvFactory | 
makeEnvFactory()
Create the environment settings class for an environment.  | 
 AGlobalEnv.ALocalEnv | 
makeLocalEnv(java.awt.geom.Point2D.Double p)
Create a local environment for the position.  | 
protected  AGlobalEnv | 
parseEnvironment(Lexer l)
Factory method for parsing the parameters for an environment and then creating it.  | 
protected  void | 
parseFish(Lexer l)
Parse fish and add them to the environment.  | 
protected  void | 
printHeader(java.io.PrintWriter pw)
Print file header.  | 
protected  void | 
removeFishFromInternalData(AGlobalEnv.ALocalEnv localEnv)
Remove the fish to the environment's internal data structure.  | 
 void | 
returnHome(IScrollAdapter sa)
The action to be executed if the display should return home.  | 
| Methods inherited from class sysModel.env.AGlobalEnv | 
|---|
addFish, deactivateBreedLambdas, deactivateMoveLambdas, drawBackground, makeDrawCmd, makeEditCmd, makeStepCmd, parse, removeFish, save | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Test_AFish.TestGlobalEnv(ICmdFactory cmdFactory,
                                ISecurityAdapter sm)
| Method Detail | 
|---|
protected ILambda editFish(AGlobalEnv.ALocalEnv localEnv,
                           IFishFactory fishFactory,
                           int button)
AGlobalEnv
editFish in class AGlobalEnvlocalEnv - local environment
protected void addFishToInternalData(AGlobalEnv.ALocalEnv localEnv,
                                     AFish fish)
AGlobalEnv
addFishToInternalData in class AGlobalEnvlocalEnv - local environmentfish - fish to addprotected void removeFishFromInternalData(AGlobalEnv.ALocalEnv localEnv)
AGlobalEnv
removeFishFromInternalData in class AGlobalEnvlocalEnv - local environmentprotected AGlobalEnv parseEnvironment(Lexer l)
AGlobalEnv
parseEnvironment in class AGlobalEnvl - lexer
protected void parseFish(Lexer l)
AGlobalEnv
parseFish in class AGlobalEnvl - parser to read frompublic AGlobalEnv.ALocalEnv makeLocalEnv(java.awt.geom.Point2D.Double p)
AGlobalEnv
makeLocalEnv in class AGlobalEnvp - position
public AEnvFactory makeEnvFactory()
AGlobalEnv
makeEnvFactory in class AGlobalEnvprotected void printHeader(java.io.PrintWriter pw)
AGlobalEnv
printHeader in class AGlobalEnvpw - PrintWriter to usepublic java.awt.Dimension getDisplaySize()
AGlobalEnv
getDisplaySize in class AGlobalEnvpublic void returnHome(IScrollAdapter sa)
AGlobalEnv
returnHome in class AGlobalEnvsa - scroll adapterpublic java.awt.geom.Point2D.Double getViewPosition(java.awt.geom.Point2D.Double pos)
AGlobalEnv
getViewPosition in class AGlobalEnvpos - position where the user scrolled to
IDisplayAdapter.getPanDelta(java.awt.geom.Point2D.Double)public java.awt.geom.Point2D.Double getPanDelta(java.awt.geom.Point2D.Double delta)
AGlobalEnv
getPanDelta in class AGlobalEnvdelta - how far the user scrolled
IDisplayAdapter.getViewPosition(java.awt.geom.Point2D.Double)public ILambda getToolTipText(java.awt.geom.Point2D.Double p)
AGlobalEnv
getToolTipText in class AGlobalEnvp - mouse coordinates
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||