Developer documentation and API.
Goodies are plugins that provide features for viewing, rendering, manipulating, and analyzing documents.
A goody targets a document's type and flavor. This is indicated by implementing the isApplicable(docType:String, flavor:String):Boolean
method.
A goody advertises the types of contribution it makes.
A goody provides additional details for displaying in the UI.
Implement RenderPlugin and register it with the ServiceManager.
The rendering process has several phases that a plugin can tap into. Each phase has a pre
This example uses the Component annotation to register with the service manager.
@Component
public class ChordDiagramPlugin implements RenderPlugin {
@Override
public void prePhase(RenderContext renderContext) {
Logger.getGlobal().info("prePhase: " + renderContext.renderPhase.name());
}
@Override
public void inPhase(RenderContext renderContext) {
Logger.getGlobal().info("inPhase: " + renderContext.renderPhase.name());
}
@Override
public void postPhase(RenderContext renderContext) {
Logger.getGlobal().info("postPhase: " + render.context.renderPhase.name());
}
}
-Document
---Page
----Header
----Body
-----Line
------Bar
----Footer
form and repeat lines bar text bar header bar contents (barline, meter, chords, middle text) bar footrer bar text lyric-line padding