|
|
|
|
Re: How to modify a position attribute in real time? [message #665918 is a reply to message #665723] |
Mon, 18 April 2011 03:29  |
Eclipse User |
|
|
|
Here is the code I included, the problem is that the position which is read is the element's last position (it's late of one movement)
//********************************************************** *****************
Point rect = this.getAbsoluteLocation(this);
BigInteger big1 = new BigInteger(""+rect.x);
BigInteger big2 = new BigInteger(""+rect.y);
EList<BigInteger> activation = new BasicEList<BigInteger>();
activation.add(big1);
activation.add(big2);
((ComponentImpl)this.getNotationView().getElement()).setActi vation_node(activation);
//********************************************************** ******************
I know this code isn't a must, but that's what I have to do^^
(sorry for the bad english)
Fenrir
|
|
|
Powered by
FUDForum. Page generated in 0.04525 seconds