Exemplo n.º 1
0
 @Override
 public void paintCellInitStateIndication(
     GC gc, String text, int textX, int textY, Color textColor) {
   Graphics2D g2d = gc.getGraphics2D();
   g2d.setColor(textColor);
   g2d.drawString(text, textX, textY);
 }
 @Override
 public void paintObjectOn(GC gc) {
   Graphics2D g2d = (Graphics2D) gc.getGraphics2D().create();
   g2d.setPaint(getDrawingObject().getColor());
   g2d.transform(getViewer().getObjectToDisplayTransform());
   g2d.setStroke(new BasicStroke(0));
   g2d.draw(getDrawingObject().getBounds2D());
 }