From 735c325ce6b3a6d6fecb8e80f72f326b54fc9c0e 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