If Only I Have TIme
I know that we can create shape by just using the drag n drop facilities in marama. But this code is use (mostly for programmer) to create a shape whenever an event is invoke (like load file, create shape based on it). Here are the snippets:
final MaramaShape stateShape = createNewShape(shapeType, 100, 100, 150, 150); // this create the shape
stateShape.setPropertyValue(“name”, shapeName); // this set the shape name property
You can set more property using setPropertyValue method. Just make sure you have the right shape.