Me n My Programming

If Only I Have TIme

Marama Code 109 ~ How to create link between shape

So we have manage to create shapes from code. Now how do we link it? Some of the shape (in my case) need to be link either with other shape or it self. What we need to do is have the link pre made, get the shape to be link and combine it with this code:

MaramaConnection stateLink = createNewConnection(linkType, sourceShape, destShape); // create the link
stateLink.setPropertyValue(“output”, “1”); // set the link property if required

*** the sourceShape and destShape is a type of MaramaShape. I would advise you to create a method that find and return this shape object before proceed.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on August 22, 2010 by in Uncategorized.
%d bloggers like this: