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