Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to reset the Drawing (Read 2077 times)
Ashutosh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Nov 24th, 2008
How to reset the Drawing
Dec 17th, 2008 at 11:48am
Print Post  
Dear Stoyo,
I am trying to reset my Flowchart (already drawn)on a buttons action performed.

My objets are   :-
    Diagram diag;
    DiagramView diagView;

As I am new to JDiagram, I m  not confident about whether i have to use diagram.anyMethod() or diagView.anyMethod();

In buttons action performed :-

I tried for  diagram.clearAll(); but it doesnt work.
then I tried for diagram.repaint(); but it is also of no use.
I also tried for diagram.setVisible(false). but situation is same.


Kindly Guide me .

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to reset the Drawing
Reply #1 - Dec 17th, 2008 at 12:02pm
Print Post  
Use clearAll() to remove all items from the diagram, if that's what you need. Just check if you are calling it on the Diagram object shown in the DiagramView you are looking at.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint