Back to project page CirclesLiveWallpaper_Android.
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.
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; } }