public EventHandler(int _screenWidth, int _screenHeight, int _minRadius, int _maxRadius) { screenHeight = _screenHeight; screenWidth = _screenWidth; minRadius = _minRadius; maxRadius = _maxRadius; patternCache = new PatternCache(CACHE_MAX_LENGTH, CACHE_FILLUP_THRESHOD, new PatternCache.StartDownloadingPatternsUntilFillup(StartDownloadingPatternsUntilFillup)); viewCollection = new ViewCollection(); myHttpClient = new MyHttpClient(); surfaceViewRefresher = new SurfaceViewRefresher(); }
public MyEventHandler(int _screenWidth, int _screenHeight, int _minRadius, int _maxRadius, SurfaceViewRefresh _surfaceViewRefresh) { surfaceViewRefresh = _surfaceViewRefresh; screenHeight = _screenHeight; screenWidth = _screenWidth; minRadius = _minRadius; maxRadius = _maxRadius; patternCache = new PatternCache(CACHE_MAX_LENGTH, CACHE_FILLUP_THRESHOD, new PatternCache.StartDownloadingPatternsUntilFillup(StartDownloadingPatternsUntilFillup)); //patternCache = new PatternCacheTest(); viewCollection = new ViewCollection(); myHttpClient = new MyHttpClient(); StartDownloadingPatternsUntilFillup(DPatternType.Color); StartDownloadingPatternsUntilFillup(DPatternType.Image); }