Changeset 60 for bbtracker/trunk/src/org/bbtracker/mobile/gui/Tile.java
- Timestamp:
- 08/08/07 02:46:26 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bbtracker/trunk/src/org/bbtracker/mobile/gui/Tile.java
r4 r60 3 3 import javax.microedition.lcdui.Graphics; 4 4 5 public abstract class Tile { 5 import org.bbtracker.TrackPoint; 6 import org.bbtracker.mobile.TrackListener; 7 8 /** 9 * A tile represents a Square area on the Screen that draws itself. 10 * 11 * Each Tile will automagically receive all events received by a {@link TrackListener}, as long as it is visible. When 12 * it is not shown (i.e. it has been hidden or the Canvas containing it was not shown, then some of those events may not 13 * be received. In this case {@link #showNotify()} will be called before the next time {@link #doPaint(Graphics)} is 14 * called. 15 */ 16 public abstract class Tile implements TrackListener { 6 17 protected int xOffset; 7 18 … … 34 45 35 46 protected abstract void doPaint(final Graphics g); 47 48 public void currentPointChanged(final TrackPoint newPoint, final int newIndex) { 49 // nothing 50 } 51 52 public void newPoint(final TrackPoint newPoint, final boolean boundsChanged, final boolean newSegment) { 53 // nothing 54 } 55 56 public void stateChanged(final int newState) { 57 // nothing 58 } 59 60 public abstract void showNotify(); 36 61 }
Note: See TracChangeset
for help on using the changeset viewer.