From 0cdbcf94b73f4ba710a928888b92f1ea05e40443 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Thu, 2 Jul 2020 13:11:39 +0300 Subject: [PATCH] Documented the ColorFilter interface gitlab simantics/platform#569 Change-Id: Ib7210842ca58122de6d28293b5780b572f609eab --- .../src/org/simantics/scenegraph/g2d/color/ColorFilter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/ColorFilter.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/ColorFilter.java index 105f8f7cd..8cb80221a 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/ColorFilter.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/ColorFilter.java @@ -13,6 +13,10 @@ package org.simantics.scenegraph.g2d.color; import java.awt.Color; +/** + * Implementations must override equals and hashCode to ensure proper caching of images. + * Filters must also return deterministic results due to caching. + */ public interface ColorFilter { public Color filter(Color c); } -- 2.47.1