set thickness of electron flow arrows

21-08-2006 15:26:56

How can I set the thickness of the electron flow arrow from API?


Can somebody show me an example?


Thanks.

ChemAxon 7c2d26e5cf

21-08-2006 15:28:51

You can set the thickness of electron flow arrows like this:


Code:
MDocument doc = sketchpanel.getDocument();


for(int i=0;i < doc.getObjectCount(); i++) {


   MObject mobj = doc.getObject(i);


   if(mobj instanceof MEFlow) {


       MEFlow eflow = (MEFlow)mobj;


       eflow.setThickness(eflow.getThickness()*2));


   }


}



See the documentation: http://www.chemaxon.com/marvin/doc/api/chemaxon/struc/graphics/MPolyline.html#setThickness(double)