How to programmatically replace the svg figure? [message #132491] |
Mon, 04 June 2007 11:49  |
Eclipse User |
|
|
|
Hi,
I want to programmatically replace the current Node figure(use svg
file)with another one(also is svg file)?But i have no ideas.Anyone can
help me?
i use use svg like this,pls see below:
///////////////////////////////////////////////
xxxeditpart.java
protected IFigure createNodeShape() {
URL url = FileLocator.find(Platform.getBundle("xxx.xxx.diagram"), new
Path("icons/Role.svg"), null);
return primaryShape = new ScalableImageFigure(RenderedImageFactory
.getInstance(url), true, true, true);
}
/////////////////////////////////////////////////
and I want to replace Role.svg with Role2.svg,How can i do this
programmatically?
|
|
|
|
Powered by
FUDForum. Page generated in 0.24973 seconds