Visual Color Imbalance Detector: Reconstructed project directories and files
[VistaCID.git] / org / tjworld / components / ColourQube.java
1 /*\r
2         * ColourQube.java\r
3  *\r
4         * Created on 16 October 2001, 18:03\r
5         * $Header: $\r
6         * \r
7         * $History: $\r
8 */\r
9 package org.tjworld.components;\r
10 \r
11 import java.awt.Color;\r
12 /**\r
13  *\r
14         * @author  TJ\r
15  */\r
16 public class ColourQube extends javax.swing.JPanel implements java.io.Serializable {\r
17 \r
18         private java.awt.Color colour = java.awt.Color.white;\r
19         \r
20         /** Creates new form ColourQube */\r
21     public ColourQube() {\r
22         initComponents();\r
23     }\r
24 \r
25     /** This method is called from within the constructor to\r
26      * initialize the form.\r
27      * WARNING: Do NOT modify this code. The content of this method is\r
28      * always regenerated by the Form Editor.\r
29      */\r
30                                 private void initComponents() {//GEN-BEGIN:initComponents\r
31                                         \r
32                                         setLayout(new java.awt.BorderLayout());\r
33                                         \r
34                                 }//GEN-END:initComponents\r
35 \r
36         public void setColour(java.awt.Color col) {\r
37                 if(col != null) colour = col;\r
38         }                               \r
39 \r
40         public java.awt.Color getColour() {\r
41          return colour;\r
42         }                               \r
43                                 \r
44         public void paint(java.awt.Graphics g) {\r
45                 java.awt.Graphics2D g2 = (java.awt.Graphics2D)g; // treat as a 2D graphics context\r
46                 super.paint(g);\r
47         }\r
48                                 \r
49                                 // Variables declaration - do not modify//GEN-BEGIN:variables\r
50                                 // End of variables declaration//GEN-END:variables\r
51 \r
52 }\r