[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: grid and background image
|
- From: fiesta81@xxxxxx (Martin)
- Date: Fri, 24 Feb 2006 12:17:10 +0000 (UTC)
- Newsgroups: eclipse.tools.gef
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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.