public class Studio extends MDIApplication
Application.ApplicationCommandProcessor, Application.AppPrintPreview, Application.InitializationException, Application.InitializationListener
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
Modifier and Type | Field and Description |
---|---|
static String |
LOADDIR |
TOOLBAR_AUTO, TOOLBAR_DEFAULT, TOOLBAR_INVISIBLE, TOOLBAR_PROGRAM, TOOLBAR_VISIBLE
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Modifier and Type | Method and Description |
---|---|
EventSender |
getEventSender() |
ExtensionClassLoader |
getExtensionLoader() |
String |
getExtensionsDir(PluginDir dir)
Returns a path to the specified extension directory.
|
String |
getGroupExtensionsDir()
Deprecated.
|
org.freehep.util.FreeHEPLookup |
getLookup() |
PluginInfo |
getPlugin(String name)
Returns plugin descriptor from the list of loaded plugins with the specified name.
|
PluginMap |
getPluginMap()
Returns a map of installed plugins.
|
List<PluginInfo> |
getPlugins()
Return a list of loaded plugins.
|
String |
getSystemExtensionsDir()
Deprecated.
|
String |
getUserExtensionsDir()
Deprecated.
|
boolean |
isBlacklisted(PluginInfo plugin)
Returns true if the specified plugin is blacklisted and should be ignored by this application.
|
boolean |
isLoaded(File file)
Returns true if the specified file is on the extension loader classpath.
|
boolean |
loadPlugins(Collection<PluginInfo> plugins)
Loads and initializes the specified plugins using the default extensions class loader.
|
boolean |
loadPlugins(Collection<PluginInfo> plugins,
ExtensionClassLoader loader)
Loads and initializes the specified plugins.
|
static void |
main(String[] args) |
void |
reportPluginException()
Reports the latest exception thrown while loading plugins, if any.
|
void |
startPlugin(PluginInfo plugin)
Starts and initializes a plugin.
|
void |
stopPlugin(PluginInfo plugin)
Stops a plugin.
|
addMenu, addMenu, addToolBar, addToolBar, getConsoleManager, getControlManager, getPageManager, removeToolBar, selectedPageManager, setConsoleManager, setControlManager, setPageManager, setSelectedPageManager
about, addApplicationListener, createFrame, createPrintPreview, error, error, error, error, error, error, exit, getApplication, getAppName, getAppProperties, getCommandLine, getCommandProcessor, getCommandTargetManager, getFullVersion, getMenuBar, getRecentFileList, getServiceManager, getShowStatusBar, getShowToolBar, getStatusBar, getToolBarHolder, getUserProperties, getVersion, getXMLMenuBuilder, removeApplicationListener, restart, setLookAndFeel, setShowStatusBar, setShowToolBar, setStatusMessage, showDialog, showHelpContents, showHelpIndex, showHelpSearch, showHelpTopic, showHelpTopic, updateComponentTreeUI, updateUI, versionNumberCompare, whenAvailable
getAccessibleContext, getUI, getUIClassID, setUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String LOADDIR
public static void main(String[] args)
public boolean isBlacklisted(PluginInfo plugin)
public boolean isLoaded(File file)
public EventSender getEventSender()
public final org.freehep.util.FreeHEPLookup getLookup()
@Deprecated public String getUserExtensionsDir()
@Deprecated public String getGroupExtensionsDir()
@Deprecated public String getSystemExtensionsDir()
public String getExtensionsDir(PluginDir dir)
We look for extensions:
public ExtensionClassLoader getExtensionLoader()
public List<PluginInfo> getPlugins()
public PluginInfo getPlugin(String name)
public PluginMap getPluginMap()
public void reportPluginException()
public void stopPlugin(PluginInfo plugin)
Plugin
object from the PluginInfo.
The PluginInfo object supplied as an argument is used to identify a loaded
plugin with the same name. If no matching loaded plugin is found, this method returns
immediately without doing anything.IllegalArgumentException
- if the plugin cannot be shut down.public void startPlugin(PluginInfo plugin) throws Throwable
Throwable
- Re-throws any exceptions thrown by the plugin class code.public boolean loadPlugins(Collection<PluginInfo> plugins)
public boolean loadPlugins(Collection<PluginInfo> plugins, ExtensionClassLoader loader)
Copyright © 2000–2017 FreeHEP. All rights reserved.