public abstract class BaseVirtualBookExtension extends BaseExtension implements VirtualBookFrameExtensionPoints, ToolbarAddExtensionPoint, InformCurrentInstrumentExtensionPoint, InformCurrentVirtualBookExtensionPoint, LayersExtensionPoint, InformVirtualBookFrameExtensionPoint
| Modifier and Type | Field and Description |
|---|---|
protected APrintNGVirtualBookFrame |
currentFrame
Frame of the VirtualBook, for getting frame services
|
protected Instrument |
currentInstrument
Current Virtual Book Window Instrument
|
protected VirtualBook |
currentVirtualBook
Current Virtual Book Reference
|
application, defaultAboutAuthor, defaultAboutVersion, extensionPreferences, extspts| Constructor and Description |
|---|
BaseVirtualBookExtension()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addLayers(JVirtualBookScrollableComponent c)
Override this method to add new layer on the book component
|
abstract javax.swing.JToolBar[] |
addToolBars()
Override this method to add a new toolbar to the virtualbook window
|
protected javax.swing.JButton |
createGroovyButton(groovy.lang.Closure closure,
java.awt.Image icon,
java.lang.String text)
Internal method for ease the creation of a groovy script based button
|
void |
informCurrentInstrument(Instrument instrument) |
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 |
informVirtualBookFrame(APrintNGVirtualBookFrame frame)
this extension inform virtualbook extensions of the frame services
|
IExtension |
newExtension()
get a New extension instance for the Virtualbook Frame
|
protected void |
setupExtensionPoint(java.util.List<ExtensionPoint> initExtensionPoints)
At the Extension startup, this method is called for creating extension
points
Method permitting to create new hook in derived classes
|
addHelpMenuItem, addOptionMenuItem, createAboutForm, createExtensionPoint, createExtensionPoint, getExtensionPoints, getName, initprotected Instrument currentInstrument
protected VirtualBook currentVirtualBook
protected APrintNGVirtualBookFrame currentFrame
public BaseVirtualBookExtension()
throws java.lang.Exception
java.lang.Exceptionprotected void setupExtensionPoint(java.util.List<ExtensionPoint> initExtensionPoints) throws java.lang.Exception
BaseExtensionsetupExtensionPoint in class BaseExtensionjava.lang.Exceptionpublic IExtension newExtension()
VirtualBookFrameExtensionPointsnewExtension in interface VirtualBookFrameExtensionPointspublic void informCurrentVirtualBook(VirtualBook vb)
InformCurrentVirtualBookExtensionPointinformCurrentVirtualBook in interface InformCurrentVirtualBookExtensionPointpublic void informCurrentInstrument(Instrument instrument)
informCurrentInstrument in interface InformCurrentInstrumentExtensionPointpublic void informVirtualBookFrame(APrintNGVirtualBookFrame frame)
InformVirtualBookFrameExtensionPointinformVirtualBookFrame in interface InformVirtualBookFrameExtensionPointpublic abstract void addLayers(JVirtualBookScrollableComponent c)
addLayers in interface LayersExtensionPointpublic abstract javax.swing.JToolBar[] addToolBars()
addToolBars in interface ToolbarAddExtensionPointprotected javax.swing.JButton createGroovyButton(groovy.lang.Closure closure,
java.awt.Image icon,
java.lang.String text)
closure - closure to be launch with a hash in parameter containing the
variable accessible (pianoroll, currentinstrument,
virtualbook)icon - the icon of the buttontext - the text of the command