public class PerfoExtension extends java.lang.Object implements IExtension, InitExtensionPoint, LayersExtensionPoint, InformCurrentVirtualBookExtensionPoint, VisibilityLayerButtonsExtensionPoint, java.awt.event.ActionListener, ImportersExtensionPoint, InformRepositoryExtensionPoint, ToolbarAddExtensionPoint
Constructor and Description |
---|
PerfoExtension() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addLayers(JVirtualBookScrollableComponent c)
Called to add layers to the virtual book component, permit to display
additional objects to the book
|
javax.swing.JToolBar[] |
addToolBars() |
void |
addVisibilityLayerButtons(javax.swing.JToolBar tb) |
java.util.ArrayList<AbstractMidiImporter> |
getExtensionImporterInstance(Scale destinationscale)
Get the MidiImporter associated to an instrument scale
|
ExtensionPoint[] |
getExtensionPoints()
Extension points
|
java.lang.String |
getName()
extension name
|
void |
informCurrentVirtualBook(VirtualBook vb)
This method is called by aprint to pass the virtual book reference, this
permit the extension to know what is the currently displayed book.
|
void |
informRepository(Repository repository)
The repository reference is passed to the extension
|
void |
init(APrintNG f)
this method is called by aprint when the application initialize
|
void |
removeButtons(javax.swing.JToolBar tb) |
void |
removeLayers(JVirtualBookScrollableComponent c) |
void |
removeVisibilityLayerButtons(javax.swing.JToolBar tb) |
public ExtensionPoint[] getExtensionPoints()
IExtension
getExtensionPoints
in interface IExtension
public java.lang.String getName()
IExtension
getName
in interface IExtension
public void init(APrintNG f)
InitExtensionPoint
init
in interface InitExtensionPoint
public void addLayers(JVirtualBookScrollableComponent c)
LayersExtensionPoint
addLayers
in interface LayersExtensionPoint
public void removeLayers(JVirtualBookScrollableComponent c)
public void informCurrentVirtualBook(VirtualBook vb)
InformCurrentVirtualBookExtensionPoint
informCurrentVirtualBook
in interface InformCurrentVirtualBookExtensionPoint
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public javax.swing.JToolBar[] addToolBars()
addToolBars
in interface ToolbarAddExtensionPoint
public void removeButtons(javax.swing.JToolBar tb)
public void addVisibilityLayerButtons(javax.swing.JToolBar tb)
addVisibilityLayerButtons
in interface VisibilityLayerButtonsExtensionPoint
public void removeVisibilityLayerButtons(javax.swing.JToolBar tb)
public void informRepository(Repository repository)
InformRepositoryExtensionPoint
informRepository
in interface InformRepositoryExtensionPoint
public java.util.ArrayList<AbstractMidiImporter> getExtensionImporterInstance(Scale destinationscale)
ImportersExtensionPoint
getExtensionImporterInstance
in interface ImportersExtensionPoint
destinationscale
- the destination scale