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
,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
,ShadowNativeInterpolator.Picker
,ShadowNativeLightingColorFilter.Picker
,ShadowNativeLinearGradient.Picker
,ShadowNativeLineBreaker.Picker
,ShadowNativeMaskFilter.Picker
,ShadowNativeMeasuredParagraph.Picker
,ShadowNativeMeasuredText.Picker
,ShadowNativeMeasuredText.ShadowNativeMeasuredTextBuilder.Picker
,ShadowNativeNativeInterpolatorFactory.Picker
,ShadowNativeNinePatch.Picker
,ShadowNativePaint.Picker
,ShadowNativePathDashPathEffect.Picker
,ShadowNativePathEffect.Picker
,ShadowNativePathMeasure.Picker
,ShadowNativePathParser.Picker
,ShadowNativePicture.Picker
,ShadowNativePorterDuffColorFilter.Picker
,ShadowNativePropertyValuesHolder.Picker
,ShadowNativeRadialGradient.Picker
,ShadowNativeRecordingCanvas.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
,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 Summary
Constructors Constructor Description GraphicsShadowPicker(Class<? extends T> legacyShadowClass, Class<? extends T> nativeShadowClass)
-
Method Summary
Modifier and Type Method Description Class<? extends T>
pickShadowClass()
Determines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
.
-
Constructor Details
-
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
-