|
|
|
|
|
|
|
Re: Graphiti diagram animation [message #1355098 is a reply to message #1354939] |
Wed, 14 May 2014 15:19 |
Soeren M Messages: 77 Registered: September 2011 |
Member |
|
|
I just realised, that you have a
try{
synchronized(this){
this.wait(1000);
}
}
catch(Exception ex){
}
in your code, if I remember correctly, you delay the Thread you are actually working on and thats not what you want. Thats the Thread for your Editor and that is the reason why its displayed at the and of your loop.
Have you ever tested it with a Thread and then sth. like Thread.sleep?
thread_ = new Thread() {
@Override
public void run() {
Loop {
Thread.sleep(1000);
}
}
}.start();
[Updated on: Wed, 14 May 2014 15:22] Report message to a moderator
|
|
|
Re: Graphiti diagram animation [message #1355136 is a reply to message #1355098] |
Wed, 14 May 2014 15:40 |
Hernan Gonzalez Messages: 188 Registered: October 2010 Location: Buenos Aires, Argentina |
Senior Member |
|
|
That kind of "animation" should not normally be done in the EMF space; that's for structural changes to the diagram/model, that you want to be persisted when you save the editor.
For ephemeral run-time only changes, Graphiti has decorators (image, colours and borders). It's possible to change dynamically the foreground/background colours of shapes (and soon of foreground colours of connections) by providing Color decorators in the ToolBehaviourProvider.
(See an example of here, third video).
[Updated on: Wed, 14 May 2014 15:46] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.44723 seconds