• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package android.support.v7.graphics {
2
3  public final class Palette {
4    method public static android.support.v7.graphics.Palette.Builder from(android.graphics.Bitmap);
5    method public static android.support.v7.graphics.Palette from(java.util.List<android.support.v7.graphics.Palette.Swatch>);
6    method public static deprecated android.support.v7.graphics.Palette generate(android.graphics.Bitmap);
7    method public static deprecated android.support.v7.graphics.Palette generate(android.graphics.Bitmap, int);
8    method public static deprecated android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generateAsync(android.graphics.Bitmap, android.support.v7.graphics.Palette.PaletteAsyncListener);
9    method public static deprecated android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generateAsync(android.graphics.Bitmap, int, android.support.v7.graphics.Palette.PaletteAsyncListener);
10    method public int getColorForTarget(android.support.v7.graphics.Target, int);
11    method public int getDarkMutedColor(int);
12    method public android.support.v7.graphics.Palette.Swatch getDarkMutedSwatch();
13    method public int getDarkVibrantColor(int);
14    method public android.support.v7.graphics.Palette.Swatch getDarkVibrantSwatch();
15    method public int getDominantColor(int);
16    method public android.support.v7.graphics.Palette.Swatch getDominantSwatch();
17    method public int getLightMutedColor(int);
18    method public android.support.v7.graphics.Palette.Swatch getLightMutedSwatch();
19    method public int getLightVibrantColor(int);
20    method public android.support.v7.graphics.Palette.Swatch getLightVibrantSwatch();
21    method public int getMutedColor(int);
22    method public android.support.v7.graphics.Palette.Swatch getMutedSwatch();
23    method public android.support.v7.graphics.Palette.Swatch getSwatchForTarget(android.support.v7.graphics.Target);
24    method public java.util.List<android.support.v7.graphics.Palette.Swatch> getSwatches();
25    method public java.util.List<android.support.v7.graphics.Target> getTargets();
26    method public int getVibrantColor(int);
27    method public android.support.v7.graphics.Palette.Swatch getVibrantSwatch();
28  }
29
30  public static final class Palette.Builder {
31    ctor public Palette.Builder(android.graphics.Bitmap);
32    ctor public Palette.Builder(java.util.List<android.support.v7.graphics.Palette.Swatch>);
33    method public android.support.v7.graphics.Palette.Builder addFilter(android.support.v7.graphics.Palette.Filter);
34    method public android.support.v7.graphics.Palette.Builder addTarget(android.support.v7.graphics.Target);
35    method public android.support.v7.graphics.Palette.Builder clearFilters();
36    method public android.support.v7.graphics.Palette.Builder clearRegion();
37    method public android.support.v7.graphics.Palette.Builder clearTargets();
38    method public android.support.v7.graphics.Palette generate();
39    method public android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generate(android.support.v7.graphics.Palette.PaletteAsyncListener);
40    method public android.support.v7.graphics.Palette.Builder maximumColorCount(int);
41    method public android.support.v7.graphics.Palette.Builder resizeBitmapArea(int);
42    method public deprecated android.support.v7.graphics.Palette.Builder resizeBitmapSize(int);
43    method public android.support.v7.graphics.Palette.Builder setRegion(int, int, int, int);
44  }
45
46  public static abstract interface Palette.Filter {
47    method public abstract boolean isAllowed(int, float[]);
48  }
49
50  public static abstract interface Palette.PaletteAsyncListener {
51    method public abstract void onGenerated(android.support.v7.graphics.Palette);
52  }
53
54  public static final class Palette.Swatch {
55    ctor public Palette.Swatch(int, int);
56    method public int getBodyTextColor();
57    method public float[] getHsl();
58    method public int getPopulation();
59    method public int getRgb();
60    method public int getTitleTextColor();
61  }
62
63  public final class Target {
64    method public float getLightnessWeight();
65    method public float getMaximumLightness();
66    method public float getMaximumSaturation();
67    method public float getMinimumLightness();
68    method public float getMinimumSaturation();
69    method public float getPopulationWeight();
70    method public float getSaturationWeight();
71    method public float getTargetLightness();
72    method public float getTargetSaturation();
73    method public boolean isExclusive();
74    field public static final android.support.v7.graphics.Target DARK_MUTED;
75    field public static final android.support.v7.graphics.Target DARK_VIBRANT;
76    field public static final android.support.v7.graphics.Target LIGHT_MUTED;
77    field public static final android.support.v7.graphics.Target LIGHT_VIBRANT;
78    field public static final android.support.v7.graphics.Target MUTED;
79    field public static final android.support.v7.graphics.Target VIBRANT;
80  }
81
82  public static final class Target.Builder {
83    ctor public Target.Builder();
84    ctor public Target.Builder(android.support.v7.graphics.Target);
85    method public android.support.v7.graphics.Target build();
86    method public android.support.v7.graphics.Target.Builder setExclusive(boolean);
87    method public android.support.v7.graphics.Target.Builder setLightnessWeight(float);
88    method public android.support.v7.graphics.Target.Builder setMaximumLightness(float);
89    method public android.support.v7.graphics.Target.Builder setMaximumSaturation(float);
90    method public android.support.v7.graphics.Target.Builder setMinimumLightness(float);
91    method public android.support.v7.graphics.Target.Builder setMinimumSaturation(float);
92    method public android.support.v7.graphics.Target.Builder setPopulationWeight(float);
93    method public android.support.v7.graphics.Target.Builder setSaturationWeight(float);
94    method public android.support.v7.graphics.Target.Builder setTargetLightness(float);
95    method public android.support.v7.graphics.Target.Builder setTargetSaturation(float);
96  }
97
98}
99
100