Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13976/src/net/sourceforge/bprocessor/model
Modified Files:
Material.java
Log Message:
Small change so we now use the java built in Color class
Index: Material.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Material.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Material.java 5 Jan 2006 10:40:39 -0000 1.1
--- Material.java 10 Jan 2006 13:41:38 -0000 1.2
***************
*** 7,10 ****
--- 7,12 ----
package net.sourceforge.bprocessor.model;
+ import java.awt.Color;
+
/**
***************
*** 17,21 ****
/** The color of the material */
! private float[] color;
--- 19,23 ----
/** The color of the material */
! private Color color;
***************
*** 31,35 ****
* @param color The color of the material
*/
! public Material(String name, float[] color) {
setName(name);
setColor(color);
--- 33,37 ----
* @param color The color of the material
*/
! public Material(String name, Color color) {
setName(name);
setColor(color);
***************
*** 58,62 ****
* @hibernate.property
*/
! public float[] getColor() {
return color;
}
--- 60,64 ----
* @hibernate.property
*/
! public Color getColor() {
return color;
}
***************
*** 66,70 ****
* @param color The color
*/
! public void setColor(float[] color) {
this.color = color;
}
--- 68,72 ----
* @param color The color
*/
! public void setColor(Color color) {
this.color = color;
}
|