1 package eu
.etaxonomy
.taxeditor
.prototype2
.view
.nameviewersupport
;
3 import org
.eclipse
.swt
.graphics
.Color
;
4 import org
.eclipse
.swt
.graphics
.GC
;
5 import org
.eclipse
.swt
.graphics
.Rectangle
;
6 import org
.eclipse
.swt
.widgets
.Composite
;
8 public class CompositeRectangle
{
14 CompositeRectangle(Composite composite
, Color color
) {
15 this.gc
= new GC(composite
);
16 this.composite
= composite
;
20 public void draw(Color color
) {
21 this.rectangle
= composite
.getClientArea();
22 gc
.setForeground(color
);
23 gc
.drawRectangle(rectangle
.x
, rectangle
.y
, rectangle
.width
- 1, rectangle
.height
- 1);
26 public void dispose() {