Android Open Source - blooba-livewallpaper Foreground Provider






From Project

Back to project page blooba-livewallpaper.

License

The source code is released under:

Creative Commons Attribution NonCommercial NoDerivs (CC-NC-ND) THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTE...

If you think the Android project blooba-livewallpaper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * ForegroundProvider.java//from w  w w.  ja va2 s  .c om
 * Author: marek.brodziak@gmail.com
 * Created: Feb 6, 2014
 * Copyright 2014 by miniti
 */
package pl.miniti.android.blooba.base.foreground;

import android.graphics.Bitmap;

/**
 * Interface for classes delivering functionality to serve as a provider of the
 * blooba bitmap.
 */
public interface ForegroundProvider {

  /**
   * @return true, if the contents of the foreground depend on the location of
   *         the blob. false otherwise
   */
  boolean isDynamic();

  /**
   * Initialize object for the given size of the blooba
   * 
   * @param size
   *            size of the blooba square
   */
  void initForSize(int size);

  /**
   * Create the texture to be displayed on the blooba
   * 
   * @param x
   *            location of the blooba centre on the X-axis
   * @param y
   *            location of the blooba centre on the Y-axis
   * @param size
   *            size of the blooba
   * @return bitmap texture to be displayed
   */
  Bitmap getTexture(float x, float y, int size);

  /**
   * Invoked on updating the blooba background in order to update the
   * foreground
   * 
   * @param background
   *            new blooba background
   */
  void setBackground(Bitmap background);

  /**
   * Called on destroying the blooba
   */
  void destroy();

}




Java Source Code List

pl.miniti.android.blooba.BloobaBackground.java
pl.miniti.android.blooba.BloobaForeground.java
pl.miniti.android.blooba.BloobaService.java
pl.miniti.android.blooba.BloobaSettings.java
pl.miniti.android.blooba.base.BloobaPreferencesWrapper.java
pl.miniti.android.blooba.base.Blooba.java
pl.miniti.android.blooba.base.Preferences.java
pl.miniti.android.blooba.base.foreground.ForegroundProvider.java
pl.miniti.android.blooba.base.foreground.ImageForegroundProvider.java
pl.miniti.android.blooba.base.foreground.ReflectionForegroundProvider.java
pl.miniti.android.blooba.preferences.ImageAdapter.java
pl.miniti.android.blooba.preferences.Miniature.java