Searched defs:representation (Results 1 - 25 of 25) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterNegative.java15 FilterRepresentation representation = new FilterDirectRepresentation("Negative");
16 representation.setFilterClass(ImageFilterNegative.class);
17 representation.setTextId(R.string.negative);
18 representation.setButtonId(R.id.negativeButton);
19 representation.setShowEditingControls(false);
20 representation.setShowParameterValue(false);
21 representation.setEditorId(ImageOnlyEditor.ID);
22 representation.setSupportsPartialRendering(true);
23 return representation;
29 public void useRepresentation(FilterRepresentation representation) { argument
[all...]
H A DSimpleImageFilter.java24 FilterRepresentation representation = new FilterBasicRepresentation("Default", 0, 50, 100);
25 representation.setShowParameterValue(true);
26 return representation;
29 public void useRepresentation(FilterRepresentation representation) { argument
30 FilterBasicRepresentation parameters = (FilterBasicRepresentation) representation;
H A DFilterImageBorderRepresentation.java43 FilterImageBorderRepresentation representation = (FilterImageBorderRepresentation) super.clone();
44 representation.setName(getName());
45 representation.setDrawableResource(getDrawableResource());
46 return representation;
51 FilterImageBorderRepresentation representation = (FilterImageBorderRepresentation) a;
52 setName(representation.getName());
53 setDrawableResource(representation.getDrawableResource());
58 public boolean equals(FilterRepresentation representation) { argument
59 if (!super.equals(representation)) {
62 if (representation instanceo
[all...]
H A DImageFilterParametricBorder.java32 public void useRepresentation(FilterRepresentation representation) { argument
33 FilterColorBorderRepresentation parameters = (FilterColorBorderRepresentation) representation;
H A DImageFilterStraighten.java56 public void useRepresentation(FilterRepresentation representation) { argument
H A DImageFilterWBalance.java32 FilterRepresentation representation = new FilterDirectRepresentation("WBalance");
33 representation.setFilterClass(ImageFilterWBalance.class);
34 representation.setPriority(FilterRepresentation.TYPE_WBALANCE);
35 representation.setTextId(R.string.wbalance);
36 representation.setButtonId(R.id.wbalanceButton);
37 representation.setShowEditingControls(false);
38 representation.setShowParameterValue(false);
39 representation.setEditorId(ImageOnlyEditor.ID);
40 representation.setSupportsPartialRendering(true);
41 return representation;
45 useRepresentation(FilterRepresentation representation) argument
[all...]
H A DFilterColorBorderRepresentation.java47 FilterColorBorderRepresentation representation = (FilterColorBorderRepresentation) super.clone();
48 representation.setName(getName());
49 representation.setColor(getColor());
50 representation.setBorderSize(getBorderSize());
51 representation.setBorderRadius(getBorderRadius());
52 return representation;
57 FilterColorBorderRepresentation representation = (FilterColorBorderRepresentation) a;
58 setName(representation.getName());
59 setColor(representation.getColor());
60 setBorderSize(representation
66 equals(FilterRepresentation representation) argument
[all...]
H A DFilterFxRepresentation.java50 FilterFxRepresentation representation = (FilterFxRepresentation) super.clone();
51 representation.setName(getName());
52 representation.setBitmapResource(getBitmapResource());
53 representation.setNameResource(getNameResource());
54 return representation;
59 FilterFxRepresentation representation = (FilterFxRepresentation) a;
60 setName(representation.getName());
61 setBitmapResource(representation.getBitmapResource());
62 setNameResource(representation.getNameResource());
67 public boolean equals(FilterRepresentation representation) { argument
81 same(FilterRepresentation representation) argument
[all...]
H A DImageFilterBorder.java41 public void useRepresentation(FilterRepresentation representation) { argument
42 FilterImageBorderRepresentation parameters = (FilterImageBorderRepresentation) representation;
H A DImageFilterCurves.java34 public void useRepresentation(FilterRepresentation representation) { argument
35 FilterCurvesRepresentation parameters = (FilterCurvesRepresentation) representation;
H A DImageFilterFx.java40 public void useRepresentation(FilterRepresentation representation) { argument
41 FilterFxRepresentation parameters = (FilterFxRepresentation) representation;
H A DImageFilterRedEye.java53 public void useRepresentation(FilterRepresentation representation) { argument
54 FilterRedEyeRepresentation parameters = (FilterRedEyeRepresentation) representation;
H A DImageFilterSharpen.java33 FilterRepresentation representation = new FilterBasicRepresentation("Sharpen", 0, 0, 100);
34 representation.setShowParameterValue(true);
35 representation.setFilterClass(ImageFilterSharpen.class);
36 representation.setTextId(R.string.sharpness);
37 representation.setButtonId(R.id.sharpenButton);
38 representation.setOverlayId(R.drawable.filtershow_button_colors_sharpen);
39 representation.setEditorId(R.id.imageShow);
40 representation.setSupportsPartialRendering(true);
41 return representation;
44 public void useRepresentation(FilterRepresentation representation) { argument
[all...]
H A DBaseFiltersManager.java52 public ImageFilter getFilterForRepresentation(FilterRepresentation representation) { argument
53 return mFilters.get(representation.getFilterClass());
H A DFilterDrawRepresentation.java78 FilterDrawRepresentation representation = (FilterDrawRepresentation) super.clone();
79 return representation;
90 FilterDrawRepresentation representation = (FilterDrawRepresentation) a;
92 if (representation.mCurrent != null) {
93 mCurrent = (StrokeData) representation.mCurrent.clone();
97 if (representation.mDrawing != null) {
98 mDrawing = (Vector<StrokeData>) representation.mDrawing.clone();
112 public boolean equals(FilterRepresentation representation) { argument
113 if (!super.equals(representation)) {
116 if (representation instanceo
[all...]
H A DImageFilter.java83 public abstract void useRepresentation(FilterRepresentation representation); argument
H A DImageFilterGeometry.java67 public void useRepresentation(FilterRepresentation representation) { argument
68 mGeometry = (GeometryMetadata) representation;
H A DImageFilterTinyPlanet.java58 public void useRepresentation(FilterRepresentation representation) { argument
59 FilterTinyPlanetRepresentation parameters = (FilterTinyPlanetRepresentation) representation;
H A DFilterBasicRepresentation.java50 FilterBasicRepresentation representation = (FilterBasicRepresentation) super.clone();
51 representation.setMinimum(getMinimum());
52 representation.setMaximum(getMaximum());
53 representation.setValue(getValue());
55 Log.v(LOGTAG, "cloning from <" + this + "> to <" + representation + ">");
57 return representation;
63 FilterBasicRepresentation representation = (FilterBasicRepresentation) a;
64 setMinimum(representation.getMinimum());
65 setMaximum(representation.getMaximum());
66 setValue(representation
73 equals(FilterRepresentation representation) argument
[all...]
H A DImageFilterDraw.java72 public void useRepresentation(FilterRepresentation representation) { argument
73 FilterDrawRepresentation parameters = (FilterDrawRepresentation) representation;
H A DFilterRepresentation.java53 FilterRepresentation representation = (FilterRepresentation) super.clone();
54 representation.setName(getName());
55 representation.setPriority(getPriority());
56 representation.setFilterClass(getFilterClass());
57 representation.setSupportsPartialRendering(supportsPartialRendering());
58 representation.setTextId(getTextId());
59 representation.setEditorId(getEditorId());
60 representation.setButtonId(getButtonId());
61 representation.setOverlayId(getOverlayId());
62 representation
74 equals(FilterRepresentation representation) argument
134 updateTempParametersFrom(FilterRepresentation representation) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DAction.java48 public Action(Context context, FilterRepresentation representation, int type) { argument
50 setRepresentation(representation);
54 public Action(Context context, FilterRepresentation representation) { argument
55 this(context, representation, CROP_VIEW);
62 public void setRepresentation(FilterRepresentation representation) { argument
63 mRepresentation = representation;
64 mName = representation.getName();
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
H A DFilterEnvironment.java109 public void applyRepresentation(FilterRepresentation representation, argument
111 ImageFilter filter = mFiltersManager.getFilterForRepresentation(representation);
112 filter.useRepresentation(representation);
120 public Bitmap applyRepresentation(FilterRepresentation representation, Bitmap bitmap) { argument
121 ImageFilter filter = mFiltersManager.getFilterForRepresentation(representation);
122 filter.useRepresentation(representation);
H A DImagePreset.java86 FilterRepresentation representation = source.mFilters.elementAt(i).clone();
87 addFilter(representation);
102 FilterRepresentation representation = null;
104 representation = mFilters.elementAt(position).clone();
108 return representation;
111 public int getPositionForRepresentation(FilterRepresentation representation) { argument
113 if (mFilters.elementAt(i).getFilterClass() == representation.getFilterClass()) {
125 FilterRepresentation representation = null;
129 representation = mBorder;
135 representation
147 updateFilterRepresentation(FilterRepresentation representation) argument
388 addFilter(FilterRepresentation representation) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
H A DFilterShowActivity.java167 public void loadEditorPanel(FilterRepresentation representation, argument
169 if (representation.getEditorId() == ImageOnlyEditor.ID) {
245 for (FilterRepresentation representation : filtersRepresentations) {
246 if (representation.getTextId() != 0) {
247 representation.setName(getString(representation.getTextId()));
249 mCategoryFiltersAdapter.add(new Action(this, representation));
276 for (FilterRepresentation representation : filtersRepresentations) {
277 mCategoryGeometryAdapter.add(new Action(this, representation));
373 for (FilterRepresentation representation
435 showRepresentation(FilterRepresentation representation) argument
[all...]

Completed in 1274 milliseconds