Class GraphicsShadowPicker<T>

java.lang.Object
org.robolectric.shadows.GraphicsShadowPicker<T>
All Implemented Interfaces:
ShadowPicker<T>
Direct Known Subclasses:
ShadowBitmap.Picker, ShadowCanvas.Picker, ShadowMatrix.Picker, ShadowNativeAllocationRegistry.Picker, ShadowNativeAnimatedImageDrawable.Picker, ShadowNativeAnimatedVectorDrawable.Picker, ShadowNativeBaseCanvas.Picker, ShadowNativeBaseRecordingCanvas.Picker, ShadowNativeBitmapDrawable.Picker, ShadowNativeBitmapFactory.Picker, ShadowNativeBitmapShader.Picker, ShadowNativeBlendModeColorFilter.Picker, ShadowNativeBlurMaskFilter.Picker, ShadowNativeCanvasProperty.Picker, ShadowNativeColor.Picker, ShadowNativeColorFilter.Picker, ShadowNativeColorMatrixColorFilter.Picker, ShadowNativeColorSpaceRgb.Picker, ShadowNativeColorSpaceRgb.ShadowNative.Picker, ShadowNativeComposePathEffect.Picker, ShadowNativeComposeShader.Picker, ShadowNativeCornerPathEffect.Picker, ShadowNativeDashPathEffect.Picker, ShadowNativeDiscretePathEffect.Picker, ShadowNativeDisplayListCanvas.Picker, ShadowNativeEmbossMaskFilter.Picker, ShadowNativeFont.Picker, ShadowNativeFont.ShadowNativeFontBuilder.Picker, ShadowNativeFontFamily.Picker, ShadowNativeFontFileUtil.Picker, ShadowNativeFontsFontFamily.Picker, ShadowNativeFontsFontFamily.ShadowNativeFontFamilyBuilder.Picker, ShadowNativeHardwareRenderer.Picker, ShadowNativeHardwareRendererObserver.Picker, ShadowNativeImageDecoder.Picker, ShadowNativeImageReader.Picker, ShadowNativeImageReaderSurfaceImage.Picker, ShadowNativeInterpolator.Picker, ShadowNativeLightingColorFilter.Picker, ShadowNativeLinearGradient.Picker, ShadowNativeLineBreaker.Picker, ShadowNativeMaskFilter.Picker, ShadowNativeMatrix.ShadowExtraNatives.Picker, ShadowNativeMeasuredParagraph.Picker, ShadowNativeMeasuredText.Picker, ShadowNativeMeasuredText.ShadowNativeMeasuredTextBuilder.Picker, ShadowNativeNativeInterpolatorFactory.Picker, ShadowNativeNinePatch.Picker, ShadowNativePaint.Picker, ShadowNativePathDashPathEffect.Picker, ShadowNativePathEffect.Picker, ShadowNativePathIterator.Picker, ShadowNativePathMeasure.Picker, ShadowNativePathParser.Picker, ShadowNativePicture.Picker, ShadowNativePorterDuffColorFilter.Picker, ShadowNativePositionedGlyphs.Picker, ShadowNativePropertyValuesHolder.Picker, ShadowNativeRadialGradient.Picker, ShadowNativeRecordingCanvas.Picker, ShadowNativeRecordingCanvasOP.Picker, ShadowNativeRegion.Picker, ShadowNativeRegionIterator.Picker, ShadowNativeRenderEffect.Picker, ShadowNativeRenderNode.Picker, ShadowNativeRenderNodeAnimator.Picker, ShadowNativeRenderNodeAnimatorQ.Picker, ShadowNativeRenderNodeOP.Picker, ShadowNativeRuntimeShader.Picker, ShadowNativeShader.Picker, ShadowNativeStaticLayout.Picker, ShadowNativeSumPathEffect.Picker, ShadowNativeSurface.Picker, ShadowNativeSweepGradient.Picker, ShadowNativeSystemFonts.Picker, ShadowNativeTableMaskFilter.Picker, ShadowNativeTextRunShaper.Picker, ShadowNativeThreadedRenderer.Picker, ShadowNativeTypeface.ShadowNativeTypefaceBuilder.Picker, ShadowNativeVectorDrawable.Picker, ShadowNativeVirtualRefBasePtr.Picker, ShadowPath.Picker, ShadowTypeface.Picker

public class GraphicsShadowPicker<T> extends Object implements ShadowPicker<T>
A ShadowPicker that selects between shadows given the Graphics mode.
  • Constructor Details

    • GraphicsShadowPicker

      public GraphicsShadowPicker(Class<? extends T> legacyShadowClass, Class<? extends T> nativeShadowClass)
  • Method Details

    • pickShadowClass

      public Class<? extends T> pickShadowClass()
      Description copied from interface: ShadowPicker
      Determines the shadow class to be used depending on the configuration of the org.robolectric.internal.Environment. Must be deterministic.
      Specified by:
      pickShadowClass in interface ShadowPicker<T>
      Returns:
      the shadow class to be used
    • getMinApiLevel

      protected int getMinApiLevel()