net.sf.jsequnit.jseq.sdedit
Class SdeditPngDiagram
java.lang.Object
net.sf.jsequnit.jseq.sdedit.SdeditPngDiagram
- All Implemented Interfaces:
- th.co.edge.jseq.Diagram
public class SdeditPngDiagram
- extends Object
- implements th.co.edge.jseq.Diagram
Represents an sequence diagram.
It is written down ad PNG file using the Quick Sequence Diagram Editor (sdedit).
First a textual description of messages between objects is produced
and then the image file is produced.
- Author:
- jacek.ratzinger
Constructor Summary |
SdeditPngDiagram(th.co.edge.jseq.ActivationList activationList)
Creates a sequence diagram representation
based on the provided list of method calls. |
Method Summary |
void |
save(File pngFile)
Save the diagram as PNG file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface th.co.edge.jseq.Diagram |
toString |
SdeditPngDiagram
public SdeditPngDiagram(th.co.edge.jseq.ActivationList activationList)
- Creates a sequence diagram representation
based on the provided list of method calls.
- Parameters:
activationList
- A list of activations representing the message flows between objects.
save
public void save(File pngFile)
throws IOException
- Save the diagram as PNG file.
First write the diagram as textual description into a txt file.
Use this txt file as input to sdedit to create the PNG sequence diagram.
- Specified by:
save
in interface th.co.edge.jseq.Diagram
- Parameters:
pngFile
- the file to write the sequence diagram to
- Throws:
IOException
- if an error occurs during the file operations
Copyright © 2011. All Rights Reserved.