-
- All Implemented Interfaces:
-
com.patrykandpatrick.vico.core.component.shape.shader.DynamicShader
public abstract class CacheableDynamicShader implements DynamicShader
CacheableDynamicShader can cache created Shader instances for reuse between identical sets of bounds.
-
-
Constructor Summary
Constructors Constructor Description CacheableDynamicShader()
-
Method Summary
Modifier and Type Method Description ShaderprovideShader(DrawContext context, Float left, Float top, Float right, Float bottom)Creates a Shader by using the provided left, top, right, and bottom bounds. abstract ShadercreateShader(DrawContext context, Float left, Float top, Float right, Float bottom)Called when new instance of Shader must be created, as the left, top, right, and bottom bounds have changed or there is no cached Shader. -
-
Method Detail
-
provideShader
Shader provideShader(DrawContext context, Float left, Float top, Float right, Float bottom)
-
createShader
abstract Shader createShader(DrawContext context, Float left, Float top, Float right, Float bottom)
-
-
-
-