- g.setColor(Color.white);
- g.fillRect(width/2, 0,width/2, height);
- g.setColor(Color.black);
- Font f=new Font("Verdana", Font.PLAIN,
- 10);
- g.setFont(f);
- g.drawString("Label", 0, 0);
- }
- else
- {
- g.setColor(maxCol);
- g.fillRect(width/2, 0,width/2, height);
-
- }
+ if (isColourByLabel)
+ {
+ g.setColor(Color.white);
+ g.fillRect(d.width / 2, 0, d.width / 2, d.height);
+ g.setColor(Color.black);
+ Font f = new Font("Verdana", Font.PLAIN, 10);
+ g.setFont(f);
+ g.drawString("Label", 0, 0);
+ }
+ else
+ {
+ g.setColor(maxCol);
+ g.fillRect(d.width / 2, 0, d.width / 2, d.height);
+
+ }