Android Open Source - android-data-persistence Meme Annotation






From Project

Back to project page android-data-persistence.

License

The source code is released under:

MIT License

If you think the Android project android-data-persistence 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.teamtreehouse.mememaker.models;
//  w ww  .  j  a v a  2s.  c o m
import java.io.Serializable;

/**
 * Created by Evan Anger on 8/17/14.
 */
public class MemeAnnotation implements Serializable {
    private int mId = -1;
    private String mColor;
    private String mTitle;
    private int mLocationX;
    private int mLocationY;

    public MemeAnnotation() {

    }
    public MemeAnnotation(int id, String color, String title, int locationX, int locationY) {
        mId = id;
        mColor = color;
        mTitle = title;
        mLocationX = locationX;
        mLocationY = locationY;
    }

    public int getId() { return mId; }
    public boolean hasBeenSaved() { return (getId() != -1); }

    public String getColor() { return mColor; }
    public void setColor(String color) {
        mColor = color;
    }

    public String getTitle() {
        return mTitle;
    }
    public void setTitle(String text) { mTitle = text; }

    public int getLocationX() {
        return mLocationX;
    }
    public void setLocationX(int x) {
        mLocationX = x;
    }

    public int getLocationY() {
        return mLocationY;
    }
    public void setLocationY(int y) {
        mLocationY = y;
    }
}




Java Source Code List

com.teamtreehouse.mememaker.MemeMakerApplicationSettings.java
com.teamtreehouse.mememaker.MemeMakerApplication.java
com.teamtreehouse.mememaker.adapters.GridViewAdapter.java
com.teamtreehouse.mememaker.adapters.MemeItemListAdapter.java
com.teamtreehouse.mememaker.adapters.SectionsPagerAdapter.java
com.teamtreehouse.mememaker.database.MemeDatasource.java
com.teamtreehouse.mememaker.database.MemeSQLiteHelper.java
com.teamtreehouse.mememaker.models.ImageGridItem.java
com.teamtreehouse.mememaker.models.ImageItem.java
com.teamtreehouse.mememaker.models.MemeAnnotation.java
com.teamtreehouse.mememaker.models.Meme.java
com.teamtreehouse.mememaker.ui.activities.CreateMemeActivity.java
com.teamtreehouse.mememaker.ui.activities.MainActivity.java
com.teamtreehouse.mememaker.ui.activities.MemeSettingsActivity.java
com.teamtreehouse.mememaker.ui.fragments.ImageGridFragment.java
com.teamtreehouse.mememaker.ui.fragments.MemeItemFragment.java
com.teamtreehouse.mememaker.ui.fragments.MemeSettingsFragment.java
com.teamtreehouse.mememaker.ui.views.MemeImageView.java
com.teamtreehouse.mememaker.utils.FileUtilities.java
com.teamtreehouse.mememaker.utils.ImageResizer.java
com.teamtreehouse.mememaker.utils.StorageType.java