Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 8 package com.nightlabs.editor2d.config; 9 10 import java.awt.Color ; 11 12 import com.nightlabs.config.ConfigModule; 13 import com.nightlabs.config.InitException; 14 15 16 public class DefaultFeedbackConfigModule 17 extends ConfigModule 18 { 19 20 public DefaultFeedbackConfigModule() { 21 super(); 22 } 23 24 protected Color bgColor; 25 public Color getBgColor() { 26 return bgColor; 27 } 28 public void setBgColor(Color bgColor) { 29 this.bgColor = bgColor; 30 } 31 32 protected Color fgColor; 33 public Color getFgColor() { 34 return fgColor; 35 } 36 public void setFgColor(Color fgColor) { 37 this.fgColor = fgColor; 38 } 39 40 protected boolean xor = true; 41 public boolean isXor() { 42 return xor; 43 } 44 public void setXor(boolean xor) { 45 this.xor = xor; 46 } 47 48 protected boolean fill = true; 49 public boolean isFill() { 50 return fill; 51 } 52 public void setFill(boolean fill) { 53 this.fill = fill; 54 } 55 56 public void init() 57 throws InitException 58 { 59 if (bgColor == null) 60 bgColor = Color.DARK_GRAY; 61 62 if (fgColor == null) 63 fgColor = Color.WHITE; 64 } 65 } 66
| Popular Tags
|