Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to programmatically replace the svg figure?
How to programmatically replace the svg figure? [message #132491] Mon, 04 June 2007 15:49 Go to next message
shawn xing is currently offline shawn xingFriend
Messages: 8
Registered: July 2009
Junior Member
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?
Re: How to programmatically replace the svg figure? [message #134721 is a reply to message #132491] Tue, 12 June 2007 07:07 Go to previous message
Eclipse UserFriend
Originally posted by: suzan.gmail.com

does anybody has idea?
Previous Topic:Incorrect bounds on zoom with line width more than 1
Next Topic:Abnormal behavior of propertyview
Goto Forum:
  


Current Time: Sat Jul 27 15:55:27 GMT 2024

Powered by FUDForum. Page generated in 0.02314 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top