Search in sources :

Example 6 with TextGraphReader

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

the class Filter method initWithAssignmentString.

public final void initWithAssignmentString(String assignments) {
    try {
        KeyValueMap valueMap = new TextGraphReader().readKeyValueAssignments(assignments);
        initWithValueMap(valueMap);
    } catch (GraphIOException e) {
        throw new IllegalArgumentException(e.getMessage());
    }
}
Also used : KeyValueMap(android.filterfw.core.KeyValueMap) TextGraphReader(android.filterfw.io.TextGraphReader) GraphIOException(android.filterfw.io.GraphIOException)

Example 7 with TextGraphReader

use of android.filterfw.io.TextGraphReader in project platform_frameworks_base by android.

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 8 with TextGraphReader

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

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 9 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 10 with TextGraphReader

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

the class Filter method initWithAssignmentString.

public final void initWithAssignmentString(String assignments) {
    try {
        KeyValueMap valueMap = new TextGraphReader().readKeyValueAssignments(assignments);
        initWithValueMap(valueMap);
    } catch (GraphIOException e) {
        throw new IllegalArgumentException(e.getMessage());
    }
}
Also used : KeyValueMap(android.filterfw.core.KeyValueMap) TextGraphReader(android.filterfw.io.TextGraphReader) GraphIOException(android.filterfw.io.GraphIOException)

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