Android Open Source - CirclesLiveWallpaper_Android My Circle






From Project

Back to project page CirclesLiveWallpaper_Android.

License

The source code is released under:

GNU General Public License

If you think the Android project CirclesLiveWallpaper_Android 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

package com.blogspot.techzealous.circleslivewallpaper.utils;
//from   ww w . j  a  va  2s .co m
import android.graphics.Color;
import android.graphics.Paint;

public class MyCircle extends Object {

  private float positionX;
  private float positionY;
  private float radius;
  private int transparency;
  private boolean visibilityGrow;
  private Paint color;
  
  public MyCircle() {
    super();
    color = new Paint(Paint.ANTI_ALIAS_FLAG);
    visibilityGrow = true;
  }
  
  public void setPositionX(float aX) {
    positionX = aX;
  }
  public float getPositionX() {
    return positionX;
  }
  
  public void setPositionY(float aY) {
    positionY = aY;
  }
  public float getPositionY() {
    return positionY;
  }
  
  public void setRadius(float aRadius) {
    radius = aRadius;
  }
  public float getRadius() {
    return radius;
  }
  
  public void setColor(int aAlpha, int aRed, int aGreen, int aBlue) {
    color.setColor(Color.argb(aAlpha, aRed, aGreen, aBlue));
    transparency = aAlpha;
  }
  public Paint getColor() {
    return color;
  }
  
  public int getTransparency() {
    return transparency;
  }
  public void setTransparency(int aTransparency) {
    transparency = aTransparency;
    color.setAlpha(transparency);
  }
  
  public void setVisibilityGrow(boolean aVisibilityGrow) {
    visibilityGrow = aVisibilityGrow;
  }
  public boolean getVisibilityGrow() {
    return visibilityGrow;
  }
}




Java Source Code List

com.blogspot.techzealous.circleslivewallpaper.CirclesBackColorActivity.java
com.blogspot.techzealous.circleslivewallpaper.CirclesCountActivity.java
com.blogspot.techzealous.circleslivewallpaper.CirclesEula.java
com.blogspot.techzealous.circleslivewallpaper.CirclesPreferenceActivity.java
com.blogspot.techzealous.circleslivewallpaper.CirclesService.java
com.blogspot.techzealous.circleslivewallpaper.CirclesSpeedActivity.java
com.blogspot.techzealous.circleslivewallpaper.utils.CirclesConstants.java
com.blogspot.techzealous.circleslivewallpaper.utils.MyCircle.java