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;
}
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);
}
}
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;
}
Aggregations