QuickSlide |
| Home | An Example | Download | About | |
A Java ExampleThe following Java code has been used in the main method of the released Jar file : package dz.univjijel.quickslide.main; import dz.univjijel.quickslide.core.base.BoldText; import dz.univjijel.quickslide.core.base.FreeText; import dz.univjijel.quickslide.core.composed.PointList; import dz.univjijel.quickslide.core.presentation.FirstSlide; import dz.univjijel.quickslide.core.presentation.Presentation; import dz.univjijel.quickslide.core.presentation.Slide; /** * Example of the API usage. * @author Tarek Boutefara <t_boutefara@esi.dz> */ public class Main { /** * Example entry. * @param args the command line arguments */ public static void main(String[] args) { Presentation p = new Presentation("First presentation", new FirstSlide("First presentation", "As a test", "Tarek Boutefara")); p.setBaseDirectory("./"); p.addSlides( Slide.createSlide(p, "Plan") .setContent( PointList.createList(1) .addText("Introduction") .addText("Definition") .addText("Conclusion") ), Slide.createSlide(p, "Introduction") .setContent(new FreeText("This is an introduction to QuickSlide. There is not much to say") ), Slide.createSlide(p, "Definition") .setContent(new FreeText(new BoldText("Definition") + " : QuickSlide is a simple tool that create Slides using Java") ), Slide.createSlide(p, "Conclusion") .setContent(new FreeText("This is the end of the introduction to QuickSlide. There was not much to say") ) ); p.save(); } } You can see the created project by running the Jar file using the command line : java -jar QuickSlide.jar HTML generated using hilite.me |