]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Documented the ColorFilter interface 34/4334/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Thu, 2 Jul 2020 10:11:39 +0000 (13:11 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Thu, 2 Jul 2020 10:11:39 +0000 (13:11 +0300)
gitlab simantics/platform#569

Change-Id: Ib7210842ca58122de6d28293b5780b572f609eab

bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/ColorFilter.java

index 105f8f7cdd1cdd1ac74cc7ef0a56ee9bf3a9051f..8cb80221a7e2af3762df8f7826364d7d7dc65852 100644 (file)
@@ -13,6 +13,10 @@ package org.simantics.scenegraph.g2d.color;
 
 import java.awt.Color;
 
+/**
+ * Implementations must override <code>equals</code> and <code>hashCode</code> to ensure proper caching of images. 
+ * Filters must also return deterministic results due to caching. 
+ */
 public interface ColorFilter {
     public Color filter(Color c);
 }