-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Deren Vural
committed
May 4, 2020
1 parent
fd76cf8
commit 5b9cf57
Showing
21 changed files
with
6,075 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
200 changes: 0 additions & 200 deletions
200
app/src/main/java/derenvural/sourceread_prototype/data/analyse/analyser.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 13 additions & 7 deletions
20
app/src/main/java/derenvural/sourceread_prototype/data/functions/Function.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
package derenvural.sourceread_prototype.data.functions; | ||
|
||
import android.graphics.drawable.Drawable; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
|
||
public abstract class Function implements FunctionHolder { | ||
private String title; | ||
private String text; | ||
private CharSequence title; | ||
private CharSequence text; | ||
private Integer image; | ||
|
||
// extended functionality eg onclick, links, analysis data | ||
public Function(@NonNull String newTitle, @Nullable String newText){ | ||
public Function(@NonNull CharSequence newTitle, @Nullable CharSequence newText, @Nullable Integer newImage){ | ||
setTitle(newTitle); | ||
setText(newText); | ||
setImage(newImage); | ||
} | ||
|
||
// GET | ||
public String getTitle(){ | ||
public CharSequence getTitle(){ | ||
return title; | ||
} | ||
public String getText(){ | ||
public CharSequence getText(){ | ||
return text; | ||
} | ||
public Integer getImage() { return image; } | ||
|
||
// SET | ||
public void setTitle(String title){ this.title = title; } | ||
public void setText(String text){ | ||
public void setTitle(CharSequence title){ this.title = title; } | ||
public void setText(CharSequence text){ | ||
this.text = text; | ||
} | ||
public void setImage(Integer image) { this.image = image; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
app/src/main/java/derenvural/sourceread_prototype/data/functions/graph/Graph.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package derenvural.sourceread_prototype.data.functions.graph; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
|
||
import derenvural.sourceread_prototype.data.functions.Function; | ||
|
||
public class Graph extends Function { | ||
// Constructors | ||
public Graph(@NonNull CharSequence title, @Nullable CharSequence text, @Nullable Integer imageID) { | ||
super(title, text, imageID); | ||
} | ||
} |
Oops, something went wrong.