public class WiredPlugin
extends org.freehep.application.studio.Plugin
implements hep.graphics.heprep.HepRepViewer, org.freehep.jas.plugin.xmlio.XMLPluginIO
Modifier and Type | Class and Description |
---|---|
static class |
WiredPlugin.IH
Enumeration of
InteractionHandler s used by WIRED. |
Constructor and Description |
---|
WiredPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
checkHepRep(hep.graphics.heprep.HepRep heprep) |
WiredPage |
createWiredView(String name,
hep.graphics.heprep.HepRep event,
HepRepPanel panel,
boolean clone)
Creates a new WIRED plot.
|
void |
display(hep.graphics.heprep.HepRep event) |
ControlPanel |
getControlPanel()
Returns current control page, null if no control page is available.
|
org.freehep.application.mdi.PageContext |
getCurrentPageContext() |
CutPanel |
getCutPanel() |
HepRepGraphicsMode |
getGraphicsMode()
Returns default graphics mode.
|
HepRepInfoPanel |
getHepRepInfoPanel() |
InteractionHandler |
getInteractionHandler()
Returns current interaction handler.
|
InteractionPanel |
getInteractionPanel() |
int |
getNumberOfPlots() |
WiredPlot |
getPlot()
Returns current WiredPlot, null if there is none.
|
List<HepRepPanelModel> |
getPlotModels()
Returns a list of all plot models that are attached to plots.
|
static WiredPlugin |
getPlugin() |
Properties |
getProperties()
Returns user properties for this plugin.
|
hep.graphics.heprep.HepRep |
getRecord()
Returns currently loaded HepRep record.
|
TreePanel |
getTreePanel() |
List |
getVariables() |
protected void |
init() |
protected void |
postInit() |
int |
restore(int level,
org.freehep.xml.io.XMLIOManager manager,
org.jdom.Element el) |
void |
save(org.freehep.xml.io.XMLIOManager manager,
org.jdom.Element el) |
void |
setControlPanel(ControlPanel control)
Sets current control panel.
|
void |
setControlPanel(ControlPanel control,
boolean switchInteractionHandler)
Sets current control panel.
|
void |
setInteractionHandler(InteractionHandler handler)
Sets current interaction handler.
|
void |
setPropertiesPrefix(String prefix)
Sets prefix to be appended to properties used by this plugin before they are saved into application properties.
|
void |
showWired(WiredPage wiredPage,
Icon icon,
boolean attachToLoop) |
protected void |
shutdown() |
public static final String KEY_ROOT
public static WiredPlugin getPlugin()
protected void init() throws SAXException, IOException
init
in class org.freehep.application.studio.Plugin
SAXException
IOException
protected void postInit()
postInit
in class org.freehep.application.studio.Plugin
protected void shutdown()
shutdown
in class org.freehep.application.studio.Plugin
public void setInteractionHandler(InteractionHandler handler)
public void setControlPanel(ControlPanel control)
public void setControlPanel(ControlPanel control, boolean switchInteractionHandler)
public List<HepRepPanelModel> getPlotModels()
public InteractionPanel getInteractionPanel()
public TreePanel getTreePanel()
public HepRepInfoPanel getHepRepInfoPanel()
public CutPanel getCutPanel()
public HepRepGraphicsMode getGraphicsMode()
public org.freehep.application.mdi.PageContext getCurrentPageContext()
public ControlPanel getControlPanel()
public InteractionHandler getInteractionHandler()
public WiredPlot getPlot()
public hep.graphics.heprep.HepRep getRecord()
public void setPropertiesPrefix(String prefix)
public Properties getProperties()
public WiredPage createWiredView(String name, hep.graphics.heprep.HepRep event, HepRepPanel panel, boolean clone)
name
- Name of the created plot.
If null, the plot name will be set to "View N" (plot with a new model)
or "event
- Record to be displayed by the created plot.panel
- Graphics panel to be used for choosing initial parameters for the new plot.clone
- If true, the newly created plot will share model with the specified panel;
if false, a copy of the supplied panel's model will be created.
Ignored if panel is null.public int getNumberOfPlots()
public void display(hep.graphics.heprep.HepRep event)
display
in interface hep.graphics.heprep.HepRepViewer
public void save(org.freehep.xml.io.XMLIOManager manager, org.jdom.Element el)
save
in interface org.freehep.jas.plugin.xmlio.XMLPluginIO
public int restore(int level, org.freehep.xml.io.XMLIOManager manager, org.jdom.Element el)
restore
in interface org.freehep.jas.plugin.xmlio.XMLPluginIO
public List getVariables()
public void checkHepRep(hep.graphics.heprep.HepRep heprep)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.