- Timestamp:
- 08/24/07 22:05:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bbtracker/trunk/src/org/bbtracker/mobile/gui/MainCanvas.java
r89 r93 52 52 private final StatusTile statusTile; 53 53 54 private final Tile detailsTile; 55 54 56 private final Command newTrackCommand; 55 57 … … 79 81 speedProfileTile = new SpeedPlotterTile(manager, DataProvider.TIME); 80 82 statusTile = new StatusTile(manager); 83 detailsTile = new DetailsTile(manager); 81 84 82 85 switchViewCommand = new Command("Switch View", Command.SCREEN, 0); … … 94 97 addCommand(aboutCommand); 95 98 addCommand(exitCommand); 99 96 100 setCommandListener(this); 97 101 … … 101 105 protected void setMainTile(final Tile mainTile, final boolean withStatus) { 102 106 visibleTiles[0] = mainTile; 103 if (withStatus ) {107 if (withStatus == true) { 104 108 visibleTiles[1] = statusTile; 105 109 } else { … … 200 204 201 205 private void nextTileConfiguration() { 202 tileConfiguration = (tileConfiguration + 1) % 3;206 tileConfiguration = (tileConfiguration + 1) % 4; 203 207 switch (tileConfiguration) { 204 208 case 0: … … 213 217 setMainTile(speedProfileTile, true); 214 218 setStatusMessage("Speed over time"); 219 break; 220 case 3: 221 setMainTile(detailsTile, false); 222 setStatusMessage("Details"); 215 223 break; 216 224 }
Note: See TracChangeset
for help on using the changeset viewer.