@@ -0,0 +1,735 @@
+package org.csstudio.sds.components.ui.internal.figureparts;%0A%0Aimport org.eclipse.draw2d.Graphics;%0Aimport org.eclipse.draw2d.Label;%0A%0A/**%0A * A label whose background could be set with alpha. %0A * Alpha may range from 0 to 255. A value of 0 is completely transparent%0A * @author Xihui Chen%0A *%0A */%0Apublic class AlphaLabel extends Label %7B%0A%0A%09private int alpha = 100;%09%0A%0A%09@Override%0A%09public boolean isOpaque() %7B%09%09%0A%09%09return false;%0A%09%7D%0A%09%0A%09@Override%0A%09protected void paintFigure(Graphics graphics) %7B%0A%09%09graphics.pushState();%0A%09%09graphics.setAlpha(alpha);%0A%09%09graphics.fillRectangle(bounds);%0A%09%09graphics.popState();%0A%09%09super.paintFigure(graphics);%0A%09%7D%0A%09%0A%09/**%0A%09 * @param alpha the alpha to set%0A%09 */%0A%09public void setAlpha(int alpha) %7B%0A%09%09this.alpha = alpha;%0A%09%7D%0A%7D%0A

add the alpha label which has half-transparent background