PointerIconCompat.java 3.58 KB
package android.support.v4.view;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.support.annotation.RestrictTo;
import android.support.v4.os.BuildCompat;
import android.view.PointerIcon;

public final class PointerIconCompat
{
  public static final int TYPE_ALIAS = 1010;
  public static final int TYPE_ALL_SCROLL = 1013;
  public static final int TYPE_ARROW = 1000;
  public static final int TYPE_CELL = 1006;
  public static final int TYPE_CONTEXT_MENU = 1001;
  public static final int TYPE_COPY = 1011;
  public static final int TYPE_CROSSHAIR = 1007;
  public static final int TYPE_DEFAULT = 1000;
  public static final int TYPE_GRAB = 1020;
  public static final int TYPE_GRABBING = 1021;
  public static final int TYPE_HAND = 1002;
  public static final int TYPE_HELP = 1003;
  public static final int TYPE_HORIZONTAL_DOUBLE_ARROW = 1014;
  public static final int TYPE_NO_DROP = 1012;
  public static final int TYPE_NULL = 0;
  public static final int TYPE_TEXT = 1008;
  public static final int TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW = 1017;
  public static final int TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW = 1016;
  public static final int TYPE_VERTICAL_DOUBLE_ARROW = 1015;
  public static final int TYPE_VERTICAL_TEXT = 1009;
  public static final int TYPE_WAIT = 1004;
  public static final int TYPE_ZOOM_IN = 1018;
  public static final int TYPE_ZOOM_OUT = 1019;
  static final c a = new b();
  private Object b;
  
  static
  {
    if (BuildCompat.isAtLeastN())
    {
      a = new a();
      return;
    }
  }
  
  private PointerIconCompat(Object paramObject)
  {
    this.b = paramObject;
  }
  
  public static PointerIconCompat create(Bitmap paramBitmap, float paramFloat1, float paramFloat2)
  {
    return new PointerIconCompat(a.a(paramBitmap, paramFloat1, paramFloat2));
  }
  
  public static PointerIconCompat getSystemIcon(Context paramContext, int paramInt)
  {
    return new PointerIconCompat(a.a(paramContext, paramInt));
  }
  
  public static PointerIconCompat load(Resources paramResources, int paramInt)
  {
    return new PointerIconCompat(a.a(paramResources, paramInt));
  }
  
  @RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
  public final Object getPointerIcon()
  {
    return this.b;
  }
  
  static final class a
    extends PointerIconCompat.b
  {
    public final Object a(Context paramContext, int paramInt)
    {
      return PointerIcon.getSystemIcon(paramContext, paramInt);
    }
    
    public final Object a(Resources paramResources, int paramInt)
    {
      return PointerIcon.load(paramResources, paramInt);
    }
    
    public final Object a(Bitmap paramBitmap, float paramFloat1, float paramFloat2)
    {
      return PointerIcon.create(paramBitmap, paramFloat1, paramFloat2);
    }
  }
  
  static class b
    implements PointerIconCompat.c
  {
    public Object a(Context paramContext, int paramInt)
    {
      return null;
    }
    
    public Object a(Resources paramResources, int paramInt)
    {
      return null;
    }
    
    public Object a(Bitmap paramBitmap, float paramFloat1, float paramFloat2)
    {
      return null;
    }
  }
  
  static abstract interface c
  {
    public abstract Object a(Context paramContext, int paramInt);
    
    public abstract Object a(Resources paramResources, int paramInt);
    
    public abstract Object a(Bitmap paramBitmap, float paramFloat1, float paramFloat2);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/PointerIconCompat.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */