JAL-3541 selectively merged build.gradle and gradle.properties
[jalview.git] / unused / javajs / api / GenericColor.java
diff --git a/unused/javajs/api/GenericColor.java b/unused/javajs/api/GenericColor.java
new file mode 100644 (file)
index 0000000..57cf169
--- /dev/null
@@ -0,0 +1,19 @@
+package javajs.api;
+
+/**
+ * GenericColor allows both java.awt.Color and javajs.awt.Color to be
+ * handled by methods that need not distinguish between them. It is used
+ * in the javajs package for the background color of a javajs.swing.JComponent
+ * 
+ * @author hansonr
+ *
+ */
+public interface GenericColor {
+
+       int getRGB();
+
+       int getOpacity255();
+
+       void setOpacity255(int a);
+       
+}