use of com.android.gallery3d.filtershow.controller.BasicParameterStyle 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.BasicParameterStyle in project android_packages_apps_Gallery2 by LineageOS.
the class EditorDrawTabletUI method setDrawRepresentation.
public void setDrawRepresentation(FilterDrawRepresentation rep) {
mRep = rep;
BasicParameterInt size;
size = (BasicParameterInt) mRep.getParam(FilterDrawRepresentation.PARAM_SIZE);
mdrawSizeSeekBar.setMax(size.getMaximum() - size.getMinimum());
mdrawSizeSeekBar.setProgress(size.getValue());
ParameterColor color;
color = (ParameterColor) mRep.getParam(FilterDrawRepresentation.PARAM_COLOR);
color.setValue(mBasColors[mSelectedColorButton]);
BasicParameterStyle style;
style = (BasicParameterStyle) mRep.getParam(FilterDrawRepresentation.PARAM_STYLE);
style.setSelected(mSelectedStyleButton);
}
Aggregations