home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / COMMON / TOOLS / VB / CABINETS / MSDAO350.CAB / icontrols / marquee / EmptyElement.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-01-08  |  1.7 KB  |  51 lines

  1. package icontrols.marquee;
  2.  
  3. import com.ms.wd.ui.Control;
  4. import com.ms.wd.ui.Graphics;
  5. import com.ms.wd.ui.Rectangle;
  6.  
  7. public class EmptyElement implements IMarqueeElement {
  8.    Rectangle m_rect = new Rectangle();
  9.    int m_wrapCount = 0;
  10.  
  11.    public void create(Control ctl, int width, int height) {
  12.       this.m_rect.width = width;
  13.       this.m_rect.height = height;
  14.    }
  15.  
  16.    public Object getTag() {
  17.       return null;
  18.    }
  19.  
  20.    public Object getTag(int x, int y) {
  21.       return null;
  22.    }
  23.  
  24.    public void paintIn(Rectangle rec, Graphics g) {
  25.    }
  26.  
  27.    public void scroll(int x, int y) {
  28.       Rectangle var10000 = this.m_rect;
  29.       var10000.x += x;
  30.       var10000 = this.m_rect;
  31.       var10000.y += y;
  32.    }
  33.  
  34.    public int getWrapCount() {
  35.       return this.m_wrapCount;
  36.    }
  37.  
  38.    public void setWrapCount(int count) {
  39.       this.m_wrapCount = count;
  40.    }
  41.  
  42.    public Rectangle getBounds() {
  43.       return this.m_rect;
  44.    }
  45.  
  46.    public void setLocation(int x, int y) {
  47.       this.m_rect.x = x;
  48.       this.m_rect.y = y;
  49.    }
  50. }
  51.