[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: grid and background image

Ok, i added a grid_layer to the figure, which paints the image. e.g.

MyEditPart(){
 IFigure createFigure() {
   Figure f = new FreeformLayer() {
	protected void paintFigure(Graphics graphics) {
          graphics.drawImage(foo_image,0,0);
       }
   }
  return f;
 }
}

The grid can be toggled with

IAction showGrid = new ToggleGridAction(getGraphicalViewer());

So when i add an other grid_layer to the Figure, the grid cant be hidden by the action.