Skip to content

enexusde/anim-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java CI with Maven

anim-maven-plugin

Generate gif-animations to documentate multitasking/asynchronuous processes.

Use in Eclipse

To have the animation in eclipse you must edit the javadoc.

Inside the /** */-part of the javadoc HTML is allowed.

To add animation to javadoc you must edit the HTML in the javadoc.

<pre>
<img alt="" src="./doc-files/test.gif#
   bar at 20x20, size 15x15, fill 0xff0000
">
</pre>

As you can see, the src-attribute is a multi-line attribute. Every line of the src-attribute is a moving widget. The generated .gif-file is in the same folder as the .java-source-file.

Question Answer Ref
Is the gif part of the .jar? Depends! If the .gif is in the sub-directory named doc-files it is not part of the .jar QA01
Is the formatter working correctly? Depends! You must surround the <img by the <pre> tag. QA02
Is doc-files a package? No, its filtered from the java package structure QA03

Use in Ant

This is the default use in ant:

<?xml version="1.0" encoding="UTF-8"?>
<project default="default">
	<target name="default">
		<taskdef name="anim" classname="de.e_nexus.ant.doc.AnimationTask" classpath="<anim-maven-plugin-0.0.1-SNAPSHOT.jar>" />
		<anim />
	</target>
</project>

Syntax

Command Effect Example (simple) Example (complex) Result (complex)
string Draw a text string 'Hello World' string 'Move to left', at 100x10 after 100 frames, at 10x10 x
bar Draw a block block size 10x10 bar size 10x10, border 0x000000, bg 0xeeeeee, at 20x20 after 20 frames, at 10x20, size 30x10 x

Releases

No releases published

Packages

No packages published

Languages