Ignore:
Timestamp:
08/08/07 02:46:26 (5 years ago)
Author:
saua
Message:

Fixes Issue #8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/gui/Tile.java

    r4 r60  
    33import javax.microedition.lcdui.Graphics; 
    44 
    5 public abstract class Tile { 
     5import org.bbtracker.TrackPoint; 
     6import 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 */ 
     16public abstract class Tile implements TrackListener { 
    617        protected int xOffset; 
    718 
     
    3445 
    3546        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(); 
    3661} 
Note: See TracChangeset for help on using the changeset viewer.