Search in sources :

Example 1 with Parameter

use of com.android.gallery3d.filtershow.controller.Parameter in project android_packages_apps_Gallery2 by LineageOS.

the class EditorChanSat method getParameterToEdit.

@Override
protected Parameter getParameterToEdit(FilterRepresentation rep) {
    if (rep instanceof FilterChanSatRepresentation) {
        FilterChanSatRepresentation csrep = (FilterChanSatRepresentation) rep;
        Parameter param = csrep.getFilterParameter(csrep.getParameterMode());
        if (param instanceof BasicParameterStyle) {
            param.setFilterView(EditorChanSat.this);
        }
        return param;
    }
    return null;
}
Also used : Parameter(com.android.gallery3d.filtershow.controller.Parameter) FilterChanSatRepresentation(com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation) BasicParameterStyle(com.android.gallery3d.filtershow.controller.BasicParameterStyle)

Example 2 with Parameter

use of com.android.gallery3d.filtershow.controller.Parameter in project android_packages_apps_Gallery2 by LineageOS.

the class ParametricEditor method setEditPanelUI.

@Override
public void setEditPanelUI(View editControl) {
    mEditControl = editControl;
    FilterRepresentation rep = getLocalRepresentation();
    Parameter param = getParameterToEdit(rep);
    if (param != null) {
        control(param, editControl);
    } else {
        mSeekBar = (SeekBar) editControl.findViewById(R.id.primarySeekBar);
        if (mSeekBar != null && showsSeekBar()) {
            mSeekBar.setVisibility(View.VISIBLE);
        }
        mSeekBar.setOnSeekBarChangeListener(this);
    }
}
Also used : Parameter(com.android.gallery3d.filtershow.controller.Parameter) FilterRepresentation(com.android.gallery3d.filtershow.filters.FilterRepresentation)

Example 3 with Parameter

use of com.android.gallery3d.filtershow.controller.Parameter in project android_packages_apps_Gallery2 by LineageOS.

the class EditorVignette method getParameterToEdit.

@Override
protected Parameter getParameterToEdit(FilterRepresentation rep) {
    if (rep instanceof FilterVignetteRepresentation) {
        FilterVignetteRepresentation csrep = (FilterVignetteRepresentation) rep;
        Parameter param = csrep.getFilterParameter(csrep.getParameterMode());
        return param;
    }
    return null;
}
Also used : Parameter(com.android.gallery3d.filtershow.controller.Parameter) FilterVignetteRepresentation(com.android.gallery3d.filtershow.filters.FilterVignetteRepresentation)

Aggregations

Parameter (com.android.gallery3d.filtershow.controller.Parameter)3 BasicParameterStyle (com.android.gallery3d.filtershow.controller.BasicParameterStyle)1 FilterChanSatRepresentation (com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation)1 FilterRepresentation (com.android.gallery3d.filtershow.filters.FilterRepresentation)1 FilterVignetteRepresentation (com.android.gallery3d.filtershow.filters.FilterVignetteRepresentation)1