gc.setLineWidth(1);
gc.setLineStyle(IGraphics.LineStyle.LINE_SOLID);
+ def olgBg = gc.getBackground();
+ gc.setBackground(gc.getForeground());
+ gc.setAlpha(64);
+ gc.fillRect(r);
+ gc.setBackground(olgBg);
+ gc.setAlpha(255);
gc.drawRect(r);
if (displayName == null || isMultipleSelection) {
int getFontHeight();
/**
+ * Returns the current foreground color.
+ * The foreground color is used for drawing operations including when text is drawn.
+ */
+ IColor getForeground();
+
+ /**
+ * Returns the current background color.
+ * The background color is used for fill operations.
+ */
+ IColor getBackground();
+
+ /**
* Sets the foreground color. The foreground color is used
* for drawing operations including when text is drawn.
*/
return mFontHeight;
}
+ public IColor getForeground() {
+ Color c = getGc().getForeground();
+ return new ColorWrapper(c);
+ }
+
+ public IColor getBackground() {
+ Color c = getGc().getBackground();
+ return new ColorWrapper(c);
+ }
+
public void setForeground(IColor color) {
checkGC();
getGc().setForeground(((ColorWrapper) color).getColor());