Class RendererAllocationCache
java.lang.Object
com.arbergashi.charts.tools.RendererAllocationCache
Cache for expensive renderer allocations, such as BufferedImage, Path2D, etc.
Uses weak references to avoid memory leaks and allows for efficient reuse of resources.
- Since:
- 2025-06-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Method Summary
Modifier and TypeMethodDescriptionstatic AffineTransformgetAffineTransform(Object owner, String key) static Objectstatic StrokegetBasicStroke(Object owner, String key, float width, int cap, int join, float miter, float[] dash, float phase) static BufferedImagegetBufferedImage(Object owner, String key, int w, int h, int type) static Colorstatic Colorstatic double[]getDoubleArray(Object owner, String key, int minLen) static float[]getFloatArray(Object owner, String key, int minLen) static Fontstatic Fontstatic int[]getIntArray(Object owner, String key, int minLen) static <T> List<T> static <K,V> Map <K, V> static Path2Dstatic Rectangle2DgetRectangle(Object owner, String key) static Stroke
-
Method Details
-
getDoubleArray
-
getIntArray
-
getFloatArray
-
getList
-
getStroke
-
getBasicStroke
-
getFont
-
getColor
-
getColor
-
getFont
-
getPath
-
getAffineTransform
-
getRectangle
-
getBufferedImage
-
getMap
-
getArray
-