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, init
protected Instrument currentInstrument
protected VirtualBook currentVirtualBook
protected APrintNGVirtualBookFrame currentFrame
public BaseVirtualBookExtension() throws java.lang.Exception
java.lang.Exception
protected void setupExtensionPoint(java.util.List<ExtensionPoint> initExtensionPoints) throws java.lang.Exception
BaseExtension
setupExtensionPoint
in class BaseExtension
java.lang.Exception
public IExtension newExtension()
VirtualBookFrameExtensionPoints
newExtension
in interface VirtualBookFrameExtensionPoints
public void informCurrentVirtualBook(VirtualBook vb)
InformCurrentVirtualBookExtensionPoint
informCurrentVirtualBook
in interface InformCurrentVirtualBookExtensionPoint
public void informCurrentInstrument(Instrument instrument)
informCurrentInstrument
in interface InformCurrentInstrumentExtensionPoint
public void informVirtualBookFrame(APrintNGVirtualBookFrame frame)
InformVirtualBookFrameExtensionPoint
informVirtualBookFrame
in interface InformVirtualBookFrameExtensionPoint
public abstract void addLayers(JVirtualBookScrollableComponent c)
addLayers
in interface LayersExtensionPoint
public abstract javax.swing.JToolBar[] addToolBars()
addToolBars
in interface ToolbarAddExtensionPoint
protected 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