Search in sources :

Example 11 with TextGraphReader

use of android.filterfw.io.TextGraphReader in project android_frameworks_base by ResurrectionRemix.

the class FilterGraphEffect method createGraph.

private void createGraph(String graphString) {
    GraphReader reader = new TextGraphReader();
    try {
        mGraph = reader.readGraphString(graphString);
    } catch (GraphIOException e) {
        throw new RuntimeException("Could not setup effect", e);
    }
    if (mGraph == null) {
        throw new RuntimeException("Could not setup effect");
    }
    mRunner = new SyncRunner(getFilterContext(), mGraph, mSchedulerClass);
}
Also used : GraphReader(android.filterfw.io.GraphReader) TextGraphReader(android.filterfw.io.TextGraphReader) TextGraphReader(android.filterfw.io.TextGraphReader) GraphIOException(android.filterfw.io.GraphIOException) SyncRunner(android.filterfw.core.SyncRunner)

Example 12 with TextGraphReader

use of android.filterfw.io.TextGraphReader in project android_frameworks_base by crdroidandroid.

the class FilterGraphEffect method createGraph.

private void createGraph(String graphString) {
    GraphReader reader = new TextGraphReader();
    try {
        mGraph = reader.readGraphString(graphString);
    } catch (GraphIOException e) {
        throw new RuntimeException("Could not setup effect", e);
    }
    if (mGraph == null) {
        throw new RuntimeException("Could not setup effect");
    }
    mRunner = new SyncRunner(getFilterContext(), mGraph, mSchedulerClass);
}
Also used : GraphReader(android.filterfw.io.GraphReader) TextGraphReader(android.filterfw.io.TextGraphReader) TextGraphReader(android.filterfw.io.TextGraphReader) GraphIOException(android.filterfw.io.GraphIOException) SyncRunner(android.filterfw.core.SyncRunner)

Aggregations

GraphIOException (android.filterfw.io.GraphIOException)12 TextGraphReader (android.filterfw.io.TextGraphReader)12 KeyValueMap (android.filterfw.core.KeyValueMap)6 SyncRunner (android.filterfw.core.SyncRunner)6 GraphReader (android.filterfw.io.GraphReader)6