hep.aida.ref.plotter
Class PlotterRegion
- java.lang.Object
-
- hep.aida.ref.plotter.PlotterRegion
-
- All Implemented Interfaces:
- IPlotterRegion, StyleListener
public class PlotterRegion extends java.lang.Object implements IPlotterRegion, StyleListener
Implementation of PlotterRegion
-
-
Field Summary
Fields Modifier and Type Field and Description intADDintOVERLAYintREPLACEintSTACKstatic java.lang.StringUSE_EXACT_STYLE
-
Constructor Summary
Constructors Constructor and Description PlotterRegion(IPlotter plotter)PlotterRegion(javax.swing.JPanel panel, IPlotter plotter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(java.lang.Object thing, IPlotterStyle style, int mode)voidadd(java.lang.Object thing, IPlotterStyle style, int mode, java.lang.Object data)voidadd(java.lang.Object thing, IPlotterStyle userStyle, int mode, java.lang.Object data, java.lang.String options)voidadd(java.lang.Object thing, IPlotterStyle style, int mode, java.lang.String options)voidadd(java.lang.Object thing, IPlotterStyle style, java.lang.String options)voidaddToRegion(java.lang.Object thing, IPlotterStyle styleObj, java.lang.String options)IPlotterStyleapplyDefaultStyles(java.lang.Object data, IPlotterStyle style)IPlotterStyleapplyDefaultStyles(java.lang.Object data, IPlotterStyle style, java.lang.String options)voidapplyStyle(IPlotterStyle style)Set the style of a region and apply it to scene objects.voidapplyStyle(jas.hist.JASHistData jasHistData, IPlotterStyle style)voidapplyStyleAfterShow(jas.hist.JASHistData jasHistData, IPlotterStyle style)voidapplyStyleBeforeAdding(IPlotterStyle style, jas.hist.DataSource ds)java.lang.String[]availableParameterOptions(java.lang.String str)Get available options for a parameter.java.lang.String[]availableParameters()Get avaliable parameters.voidclear()Clear the list of things to plot in the region.voidclearRegion()java.lang.String[]getAllDataNames()jas.hist.JASHistDatagetDataForName(java.lang.String name)intgetMode(java.lang.String options)jas.hist.JASHistgetPlot()IPlotterStylegetStyleForName(java.lang.String name)IPlotterStylegetStyleForNumber(int num)voidhandleLabels(IPlotterStyle style)IInfoinfo()Return an IInfo object describing the info area.IPlotterLayoutlayout()To customize axis position,etc...java.lang.StringparameterValue(java.lang.String str)Get value of a parameter.voidplot(IBaseHistogram iBaseHistogram)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IBaseHistogram iBaseHistogram, IPlotterStyle style)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IBaseHistogram iBaseHistogram, IPlotterStyle style, java.lang.String options)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IBaseHistogram iBaseHistogram, java.lang.String options)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IDataPointSet iDataPointSet)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IDataPointSet iDataPointSet, IPlotterStyle style)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IDataPointSet iDataPointSet, IPlotterStyle style, java.lang.String options)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IDataPointSet iDataPointSet, java.lang.String options)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IFunction iFunction)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IFunction iFunction, IPlotterStyle style)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IFunction iFunction, IPlotterStyle style, java.lang.String options)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IFunction iFunction, java.lang.String options)Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.voidplot(IPlottable plottable)Send a generic plottable object to the plotting region.voidplot(IPlottable plottable, IPlotterStyle style)Send a generic plottable object to the plotting region.voidplot(IPlottable plottable, IPlotterStyle style, java.lang.String options)Send a generic plottable object to the plotting region.voidplot(IPlottable plottable, java.lang.String options)Send a generic plottable object to the plotting region.voidrefresh()Refresh the plotter region graphic.voidrefreshStyles()voidremove(IBaseHistogram iBaseHistogram)Remove a data analysis object in the list of things to plot in the region.voidremove(IDataPointSet iDataPointSet)Remove a data analysis object in the list of things to plot in the region.voidremove(IFunction iFunction)Remove a data analysis object in the list of things to plot in the region.voidremove(IPlottable plottable)Generic entry point to remove some plotted scene part.voidremoveDataSourceFromRegion(jas.hist.DataSource ds)voidremoveObjectFromRegion(java.lang.Object thing)voidsetDefaultMode(java.lang.String value)IPlotterStylesetDefaultsFromData(java.lang.Object thing, IPlotterStyle style)voidsetInfo(IInfo info)voidsetLayout(IPlotterLayout iPlotterLayout)To customize axis position,etc...voidsetParameter(java.lang.String str)Set various plotting paramters for the region.voidsetParameter(java.lang.String str, java.lang.String str1)Set various plotting paramters for the region.voidsetPlot(jas.hist.JASHist plot)voidsetStyle(IPlotterStyle style)Set the style of a region.voidsetTitle(java.lang.String title)Set the title of a region.voidsetXLimits()Set limit of an axis representation the region area.voidsetXLimits(double min)Set limit of an axis representation the region area.voidsetXLimits(double min, double max)Set limit of an axis representation the region area.voidsetYLimits()Set limit of an axis representation the region area.voidsetYLimits(double min)Set limit of an axis representation the region area.voidsetYLimits(double min, double max)Set limit of an axis representation the region area.voidsetYLimits(java.lang.String axisString)voidsetYLimits(java.lang.String axisString, double min)voidsetYLimits(java.lang.String axisString, double min, double max)voidsetZLimits()Set limit of an axis representation the region area.voidsetZLimits(double min)Set limit of an axis representation the region area.voidsetZLimits(double min, double max)Set limit of an axis representation the region area.IPlotterStylestyle()Get the style of the region.voidstyleChanged(BaseStyle style)java.lang.Stringtitle()Get the title of the region.doublexLimitMax()Get the max limit of x.doublexLimitMin()Get the min limit of x.doubleyLimitMax()Get the max limit of y.doubleyLimitMax(java.lang.String axisString)doubleyLimitMin()Get the min limit of y.doubleyLimitMin(java.lang.String axisString)doublezLimitMax()Get the max limit of z.doublezLimitMin()Get the min limit of z.
-
-
-
Field Detail
-
REPLACE
public final int REPLACE
- See Also:
- Constant Field Values
-
OVERLAY
public final int OVERLAY
- See Also:
- Constant Field Values
-
ADD
public final int ADD
- See Also:
- Constant Field Values
-
STACK
public final int STACK
- See Also:
- Constant Field Values
-
USE_EXACT_STYLE
public static final java.lang.String USE_EXACT_STYLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlotterRegion
public PlotterRegion(javax.swing.JPanel panel, IPlotter plotter)
-
PlotterRegion
public PlotterRegion(IPlotter plotter)
-
-
Method Detail
-
getStyleForNumber
public IPlotterStyle getStyleForNumber(int num)
-
getStyleForName
public IPlotterStyle getStyleForName(java.lang.String name)
-
getDataForName
public jas.hist.JASHistData getDataForName(java.lang.String name)
-
getAllDataNames
public java.lang.String[] getAllDataNames()
-
availableParameterOptions
public java.lang.String[] availableParameterOptions(java.lang.String str)
Description copied from interface:IPlotterRegionGet available options for a parameter.- Specified by:
availableParameterOptionsin interfaceIPlotterRegion- Parameters:
str- Name of the parameter.- Returns:
- options
-
availableParameters
public java.lang.String[] availableParameters()
Description copied from interface:IPlotterRegionGet avaliable parameters.- Specified by:
availableParametersin interfaceIPlotterRegion- Returns:
- parameters
-
setParameter
public void setParameter(java.lang.String str)
Description copied from interface:IPlotterRegionSet various plotting paramters for the region. Activate the graphic layer and update the screen window(s) if needed.- Specified by:
setParameterin interfaceIPlotterRegion
-
setParameter
public void setParameter(java.lang.String str, java.lang.String str1)Description copied from interface:IPlotterRegionSet various plotting paramters for the region. Activate the graphic layer and update the screen window(s) if needed.- Specified by:
setParameterin interfaceIPlotterRegion
-
parameterValue
public java.lang.String parameterValue(java.lang.String str)
Description copied from interface:IPlotterRegionGet value of a parameter.- Specified by:
parameterValuein interfaceIPlotterRegion- Parameters:
str- Name of the parameter.- Returns:
- the value.
-
styleChanged
public void styleChanged(BaseStyle style)
- Specified by:
styleChangedin interfaceStyleListener
-
style
public IPlotterStyle style()
Description copied from interface:IPlotterRegionGet the style of the region.- Specified by:
stylein interfaceIPlotterRegion
-
setStyle
public void setStyle(IPlotterStyle style)
Description copied from interface:IPlotterRegionSet the style of a region.- Specified by:
setStylein interfaceIPlotterRegion
-
applyStyle
public void applyStyle(IPlotterStyle style)
Description copied from interface:IPlotterRegionSet the style of a region and apply it to scene objects.- Specified by:
applyStylein interfaceIPlotterRegion
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:IPlotterRegionSet the title of a region.- Specified by:
setTitlein interfaceIPlotterRegion
-
title
public java.lang.String title()
Description copied from interface:IPlotterRegionGet the title of the region.- Specified by:
titlein interfaceIPlotterRegion
-
setXLimits
public void setXLimits() throws java.lang.IllegalArgumentExceptionDescription copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setXLimitsin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
setXLimits
public void setXLimits(double min)
Description copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setXLimitsin interfaceIPlotterRegion
-
setXLimits
public void setXLimits(double min, double max) throws java.lang.IllegalArgumentExceptionDescription copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setXLimitsin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
setYLimits
public void setYLimits() throws java.lang.IllegalArgumentExceptionDescription copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setYLimitsin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
setYLimits
public void setYLimits(double min)
Description copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setYLimitsin interfaceIPlotterRegion
-
setYLimits
public void setYLimits(double min, double max) throws java.lang.IllegalArgumentExceptionDescription copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setYLimitsin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
setYLimits
public void setYLimits(java.lang.String axisString)
-
setYLimits
public void setYLimits(java.lang.String axisString, double min)
-
setYLimits
public void setYLimits(java.lang.String axisString, double min, double max) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
setZLimits
public void setZLimits() throws java.lang.IllegalArgumentExceptionDescription copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setZLimitsin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
setZLimits
public void setZLimits(double min)
Description copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setZLimitsin interfaceIPlotterRegion
-
setZLimits
public void setZLimits(double min, double max) throws java.lang.IllegalArgumentExceptionDescription copied from interface:IPlotterRegionSet limit of an axis representation the region area.- Specified by:
setZLimitsin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
xLimitMin
public double xLimitMin()
Get the min limit of x.- Specified by:
xLimitMinin interfaceIPlotterRegion
-
xLimitMax
public double xLimitMax()
Get the max limit of x.- Specified by:
xLimitMaxin interfaceIPlotterRegion
-
yLimitMin
public double yLimitMin()
Get the min limit of y.- Specified by:
yLimitMinin interfaceIPlotterRegion
-
yLimitMin
public double yLimitMin(java.lang.String axisString)
-
yLimitMax
public double yLimitMax()
Get the max limit of y.- Specified by:
yLimitMaxin interfaceIPlotterRegion
-
yLimitMax
public double yLimitMax(java.lang.String axisString)
-
zLimitMin
public double zLimitMin()
Get the min limit of z.- Specified by:
zLimitMinin interfaceIPlotterRegion
-
zLimitMax
public double zLimitMax()
Get the max limit of z.- Specified by:
zLimitMaxin interfaceIPlotterRegion
-
info
public IInfo info()
Description copied from interface:IPlotterRegionReturn an IInfo object describing the info area.- Specified by:
infoin interfaceIPlotterRegion
-
setInfo
public void setInfo(IInfo info)
-
clear
public void clear()
Description copied from interface:IPlotterRegionClear the list of things to plot in the region. Clear the corresponding area on screen window(s).- Specified by:
clearin interfaceIPlotterRegion
-
plot
public void plot(IPlottable plottable) throws java.lang.IllegalArgumentException
Description copied from interface:IPlotterRegionSend a generic plottable object to the plotting region. See IPlottable for more.- Specified by:
plotin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
plot
public void plot(IPlottable plottable, java.lang.String options) throws java.lang.IllegalArgumentException
Description copied from interface:IPlotterRegionSend a generic plottable object to the plotting region. See IPlottable for more.- Specified by:
plotin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
plot
public void plot(IPlottable plottable, IPlotterStyle style) throws java.lang.IllegalArgumentException
Description copied from interface:IPlotterRegionSend a generic plottable object to the plotting region. See IPlottable for more.- Specified by:
plotin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
plot
public void plot(IPlottable plottable, IPlotterStyle style, java.lang.String options) throws java.lang.IllegalArgumentException
Description copied from interface:IPlotterRegionSend a generic plottable object to the plotting region. See IPlottable for more.- Specified by:
plotin interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
plot
public void plot(IBaseHistogram iBaseHistogram)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IBaseHistogram iBaseHistogram, IPlotterStyle style)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IBaseHistogram iBaseHistogram, java.lang.String options)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IBaseHistogram iBaseHistogram, IPlotterStyle style, java.lang.String options)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IDataPointSet iDataPointSet)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IDataPointSet iDataPointSet, IPlotterStyle style)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IDataPointSet iDataPointSet, java.lang.String options)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IDataPointSet iDataPointSet, IPlotterStyle style, java.lang.String options)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IFunction iFunction)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IFunction iFunction, IPlotterStyle style)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IFunction iFunction, java.lang.String options)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
plot
public void plot(IFunction iFunction, IPlotterStyle style, java.lang.String options)
Description copied from interface:IPlotterRegionAdd a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region. Activate the underlying graphic toolkit in order to bring something in the screen window(s) attached to the plotter. It assumes that the plotter had been mapped on the screen with its show method.- Specified by:
plotin interfaceIPlotterRegion
-
remove
public void remove(IDataPointSet iDataPointSet)
Description copied from interface:IPlotterRegionRemove a data analysis object in the list of things to plot in the region. Activate the graphic layer to update the screen window.- Specified by:
removein interfaceIPlotterRegion
-
remove
public void remove(IFunction iFunction)
Description copied from interface:IPlotterRegionRemove a data analysis object in the list of things to plot in the region. Activate the graphic layer to update the screen window.- Specified by:
removein interfaceIPlotterRegion
-
remove
public void remove(IBaseHistogram iBaseHistogram)
Description copied from interface:IPlotterRegionRemove a data analysis object in the list of things to plot in the region. Activate the graphic layer to update the screen window.- Specified by:
removein interfaceIPlotterRegion
-
remove
public void remove(IPlottable plottable) throws java.lang.IllegalArgumentException
Description copied from interface:IPlotterRegionGeneric entry point to remove some plotted scene part.- Specified by:
removein interfaceIPlotterRegion- Throws:
java.lang.IllegalArgumentException
-
setPlot
public void setPlot(jas.hist.JASHist plot)
-
getPlot
public jas.hist.JASHist getPlot()
-
setLayout
public void setLayout(IPlotterLayout iPlotterLayout)
Description copied from interface:IPlotterRegionTo customize axis position,etc... Change object position in the scence.- Specified by:
setLayoutin interfaceIPlotterRegion
-
layout
public IPlotterLayout layout()
Description copied from interface:IPlotterRegionTo customize axis position,etc... Change object position in the scence.- Specified by:
layoutin interfaceIPlotterRegion
-
add
public void add(java.lang.Object thing, IPlotterStyle style, int mode)
-
add
public void add(java.lang.Object thing, IPlotterStyle style, java.lang.String options)
-
add
public void add(java.lang.Object thing, IPlotterStyle style, int mode, java.lang.String options)
-
add
public void add(java.lang.Object thing, IPlotterStyle style, int mode, java.lang.Object data)
-
add
public void add(java.lang.Object thing, IPlotterStyle userStyle, int mode, java.lang.Object data, java.lang.String options)
-
setDefaultsFromData
public IPlotterStyle setDefaultsFromData(java.lang.Object thing, IPlotterStyle style)
-
handleLabels
public void handleLabels(IPlotterStyle style)
-
applyDefaultStyles
public IPlotterStyle applyDefaultStyles(java.lang.Object data, IPlotterStyle style)
-
applyDefaultStyles
public IPlotterStyle applyDefaultStyles(java.lang.Object data, IPlotterStyle style, java.lang.String options)
-
applyStyleBeforeAdding
public void applyStyleBeforeAdding(IPlotterStyle style, jas.hist.DataSource ds)
-
applyStyleAfterShow
public void applyStyleAfterShow(jas.hist.JASHistData jasHistData, IPlotterStyle style)
-
applyStyle
public void applyStyle(jas.hist.JASHistData jasHistData, IPlotterStyle style)
-
removeObjectFromRegion
public void removeObjectFromRegion(java.lang.Object thing)
-
removeDataSourceFromRegion
public void removeDataSourceFromRegion(jas.hist.DataSource ds)
-
refresh
public void refresh()
Description copied from interface:IPlotterRegionRefresh the plotter region graphic. Can be used when a plotted data analysis object received new data.- Specified by:
refreshin interfaceIPlotterRegion
-
refreshStyles
public void refreshStyles()
-
clearRegion
public void clearRegion()
-
addToRegion
public void addToRegion(java.lang.Object thing, IPlotterStyle styleObj, java.lang.String options)
-
getMode
public int getMode(java.lang.String options)
-
setDefaultMode
public void setDefaultMode(java.lang.String value)
-
-
DMelt 3.0 © DataMelt by jWork.ORG