Package org.robolectric.shadows
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
A
ShadowPicker
that selects between shadows given the Graphics mode.-
Constructor Summary
ConstructorDescriptionGraphicsShadowPicker
(Class<? extends T> legacyShadowClass, Class<? extends T> nativeShadowClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Determines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
.
-
Constructor Details
-
GraphicsShadowPicker
-
-
Method Details
-
pickShadowClass
Description copied from interface:ShadowPicker
Determines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
. Must be deterministic.- Specified by:
pickShadowClass
in interfaceShadowPicker<T>
- Returns:
- the shadow class to be used
-
getMinApiLevel
protected int getMinApiLevel()
-