hep.aida.ref.plotter
Class PlotterRegion

java.lang.Object
  extended by hep.aida.ref.plotter.PlotterRegion
All Implemented Interfaces:
IPlotterRegion, StyleListener

public class PlotterRegion
extends Object
implements IPlotterRegion, StyleListener

Implementation of PlotterRegion


Field Summary
 int ADD
           
 int OVERLAY
           
 int REPLACE
           
 int STACK
           
static String USE_EXACT_STYLE
           
 
Constructor Summary
PlotterRegion(IPlotter plotter)
           
PlotterRegion(JPanel panel, IPlotter plotter)
           
 
Method Summary
 void add(Object thing, IPlotterStyle style, int mode)
           
 void add(Object thing, IPlotterStyle style, int mode, Object data)
           
 void add(Object thing, IPlotterStyle userStyle, int mode, Object data, String options)
           
 void add(Object thing, IPlotterStyle style, int mode, String options)
           
 void add(Object thing, IPlotterStyle style, String options)
           
 void addToRegion(Object thing, IPlotterStyle styleObj, String options)
           
 IPlotterStyle applyDefaultStyles(Object data, IPlotterStyle style)
           
 IPlotterStyle applyDefaultStyles(Object data, IPlotterStyle style, String options)
           
 void applyStyle(IPlotterStyle style)
          Set the style of a region and apply it to scene objects.
 void applyStyle(jas.hist.JASHistData jasHistData, IPlotterStyle style)
           
 void applyStyleAfterShow(jas.hist.JASHistData jasHistData, IPlotterStyle style)
           
 void applyStyleBeforeAdding(IPlotterStyle style, jas.hist.DataSource ds)
           
 String[] availableParameterOptions(String str)
          Get available options for a parameter.
 String[] availableParameters()
          Get avaliable parameters.
 void clear()
          Clear the list of things to plot in the region.
 void clearRegion()
           
 String[] getAllDataNames()
           
 jas.hist.JASHistData getDataForName(String name)
           
 int getMode(String options)
           
 jas.hist.JASHist getPlot()
           
 IPlotterStyle getStyleForName(String name)
           
 IPlotterStyle getStyleForNumber(int num)
           
 void handleLabels(IPlotterStyle style)
           
 IInfo info()
          Return an IInfo object describing the info area.
 IPlotterLayout layout()
          To customize axis position,etc...
 String parameterValue(String str)
          Get value of a parameter.
 void plot(IBaseHistogram iBaseHistogram)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IBaseHistogram iBaseHistogram, IPlotterStyle style)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IBaseHistogram iBaseHistogram, IPlotterStyle style, String options)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IBaseHistogram iBaseHistogram, String options)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IDataPointSet iDataPointSet)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IDataPointSet iDataPointSet, IPlotterStyle style)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IDataPointSet iDataPointSet, IPlotterStyle style, String options)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IDataPointSet iDataPointSet, String options)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IFunction iFunction)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IFunction iFunction, IPlotterStyle style)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IFunction iFunction, IPlotterStyle style, String options)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IFunction iFunction, String options)
          Add a data analysis object (histogram, function, cloud,...) in the list of things to plot in the region.
 void plot(IPlottable plottable)
          Send a generic plottable object to the plotting region.
 void plot(IPlottable plottable, IPlotterStyle style)
          Send a generic plottable object to the plotting region.
 void plot(IPlottable plottable, IPlotterStyle style, String options)
          Send a generic plottable object to the plotting region.
 void plot(IPlottable plottable, String options)
          Send a generic plottable object to the plotting region.
 void refresh()
          Refresh the plotter region graphic.
 void refreshStyles()
           
 void remove(IBaseHistogram iBaseHistogram)
          Remove a data analysis object in the list of things to plot in the region.
 void remove(IDataPointSet iDataPointSet)
          Remove a data analysis object in the list of things to plot in the region.
 void remove(IFunction iFunction)
          Remove a data analysis object in the list of things to plot in the region.
 void remove(IPlottable plottable)
          Generic entry point to remove some plotted scene part.
 void removeDataSourceFromRegion(jas.hist.DataSource ds)
           
 void removeObjectFromRegion(Object thing)
           
 void setDefaultMode(String value)
           
 IPlotterStyle setDefaultsFromData(Object thing, IPlotterStyle style)
           
 void setInfo(IInfo info)
           
 void setLayout(IPlotterLayout iPlotterLayout)
          To customize axis position,etc...
 void setParameter(String str)
          Set various plotting paramters for the region.
 void setParameter(String str, String str1)
          Set various plotting paramters for the region.
 void setPlot(jas.hist.JASHist plot)
           
 void setStyle(IPlotterStyle style)
          Set the style of a region.
 void setTitle(String title)
          Set the title of a region.
 void setXLimits()
          Set limit of an axis representation the region area.
 void setXLimits(double min)
          Set limit of an axis representation the region area.
 void setXLimits(double min, double max)
          Set limit of an axis representation the region area.
 void setYLimits()
          Set limit of an axis representation the region area.
 void setYLimits(double min)
          Set limit of an axis representation the region area.
 void setYLimits(double min, double max)
          Set limit of an axis representation the region area.
 void setYLimits(String axisString)
           
 void setYLimits(String axisString, double min)
           
 void setYLimits(String axisString, double min, double max)
           
 void setZLimits()
          Set limit of an axis representation the region area.
 void setZLimits(double min)
          Set limit of an axis representation the region area.
 void setZLimits(double min, double max)
          Set limit of an axis representation the region area.
 IPlotterStyle style()
          Get the style of the region.
 void styleChanged(BaseStyle style)
           
 String title()
          Get the title of the region.
 double xLimitMax()
          Get the max limit of x.
 double xLimitMin()
          Get the min limit of x.
 double yLimitMax()
          Get the max limit of y.
 double yLimitMax(String axisString)
           
 double yLimitMin()
          Get the min limit of y.
 double yLimitMin(String axisString)
           
 double zLimitMax()
          Get the max limit of z.
 double zLimitMin()
          Get the min limit of z.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 String USE_EXACT_STYLE
See Also:
Constant Field Values
Constructor Detail

PlotterRegion

public PlotterRegion(JPanel panel,
                     IPlotter plotter)

PlotterRegion

public PlotterRegion(IPlotter plotter)
Method Detail

getStyleForNumber

public IPlotterStyle getStyleForNumber(int num)

getStyleForName

public IPlotterStyle getStyleForName(String name)

getDataForName

public jas.hist.JASHistData getDataForName(String name)

getAllDataNames

public String[] getAllDataNames()

availableParameterOptions

public String[] availableParameterOptions(String str)
Description copied from interface: IPlotterRegion
Get available options for a parameter.

Specified by:
availableParameterOptions in interface IPlotterRegion
Parameters:
str - Name of the parameter.
Returns:
options

availableParameters

public String[] availableParameters()
Description copied from interface: IPlotterRegion
Get avaliable parameters.

Specified by:
availableParameters in interface IPlotterRegion
Returns:
parameters

setParameter

public void setParameter(String str)
Description copied from interface: IPlotterRegion
Set various plotting paramters for the region. Activate the graphic layer and update the screen window(s) if needed.

Specified by:
setParameter in interface IPlotterRegion

setParameter

public void setParameter(String str,
                         String str1)
Description copied from interface: IPlotterRegion
Set various plotting paramters for the region. Activate the graphic layer and update the screen window(s) if needed.

Specified by:
setParameter in interface IPlotterRegion

parameterValue

public String parameterValue(String str)
Description copied from interface: IPlotterRegion
Get value of a parameter.

Specified by:
parameterValue in interface IPlotterRegion
Parameters:
str - Name of the parameter.
Returns:
the value.

styleChanged

public void styleChanged(BaseStyle style)
Specified by:
styleChanged in interface StyleListener

style

public IPlotterStyle style()
Description copied from interface: IPlotterRegion
Get the style of the region.

Specified by:
style in interface IPlotterRegion

setStyle

public void setStyle(IPlotterStyle style)
Description copied from interface: IPlotterRegion
Set the style of a region.

Specified by:
setStyle in interface IPlotterRegion

applyStyle

public void applyStyle(IPlotterStyle style)
Description copied from interface: IPlotterRegion
Set the style of a region and apply it to scene objects.

Specified by:
applyStyle in interface IPlotterRegion

setTitle

public void setTitle(String title)
Description copied from interface: IPlotterRegion
Set the title of a region.

Specified by:
setTitle in interface IPlotterRegion

title

public String title()
Description copied from interface: IPlotterRegion
Get the title of the region.

Specified by:
title in interface IPlotterRegion

setXLimits

public void setXLimits()
                throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setXLimits in interface IPlotterRegion
Throws:
IllegalArgumentException

setXLimits

public void setXLimits(double min)
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setXLimits in interface IPlotterRegion

setXLimits

public void setXLimits(double min,
                       double max)
                throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setXLimits in interface IPlotterRegion
Throws:
IllegalArgumentException

setYLimits

public void setYLimits()
                throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setYLimits in interface IPlotterRegion
Throws:
IllegalArgumentException

setYLimits

public void setYLimits(double min)
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setYLimits in interface IPlotterRegion

setYLimits

public void setYLimits(double min,
                       double max)
                throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setYLimits in interface IPlotterRegion
Throws:
IllegalArgumentException

setYLimits

public void setYLimits(String axisString)

setYLimits

public void setYLimits(String axisString,
                       double min)

setYLimits

public void setYLimits(String axisString,
                       double min,
                       double max)
                throws IllegalArgumentException
Throws:
IllegalArgumentException

setZLimits

public void setZLimits()
                throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setZLimits in interface IPlotterRegion
Throws:
IllegalArgumentException

setZLimits

public void setZLimits(double min)
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setZLimits in interface IPlotterRegion

setZLimits

public void setZLimits(double min,
                       double max)
                throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Set limit of an axis representation the region area.

Specified by:
setZLimits in interface IPlotterRegion
Throws:
IllegalArgumentException

xLimitMin

public double xLimitMin()
Get the min limit of x.

Specified by:
xLimitMin in interface IPlotterRegion

xLimitMax

public double xLimitMax()
Get the max limit of x.

Specified by:
xLimitMax in interface IPlotterRegion

yLimitMin

public double yLimitMin()
Get the min limit of y.

Specified by:
yLimitMin in interface IPlotterRegion

yLimitMin

public double yLimitMin(String axisString)

yLimitMax

public double yLimitMax()
Get the max limit of y.

Specified by:
yLimitMax in interface IPlotterRegion

yLimitMax

public double yLimitMax(String axisString)

zLimitMin

public double zLimitMin()
Get the min limit of z.

Specified by:
zLimitMin in interface IPlotterRegion

zLimitMax

public double zLimitMax()
Get the max limit of z.

Specified by:
zLimitMax in interface IPlotterRegion

info

public IInfo info()
Description copied from interface: IPlotterRegion
Return an IInfo object describing the info area.

Specified by:
info in interface IPlotterRegion

setInfo

public void setInfo(IInfo info)

clear

public void clear()
Description copied from interface: IPlotterRegion
Clear the list of things to plot in the region. Clear the corresponding area on screen window(s).

Specified by:
clear in interface IPlotterRegion

plot

public void plot(IPlottable plottable)
          throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Send a generic plottable object to the plotting region. See IPlottable for more.

Specified by:
plot in interface IPlotterRegion
Throws:
IllegalArgumentException

plot

public void plot(IPlottable plottable,
                 String options)
          throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Send a generic plottable object to the plotting region. See IPlottable for more.

Specified by:
plot in interface IPlotterRegion
Throws:
IllegalArgumentException

plot

public void plot(IPlottable plottable,
                 IPlotterStyle style)
          throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Send a generic plottable object to the plotting region. See IPlottable for more.

Specified by:
plot in interface IPlotterRegion
Throws:
IllegalArgumentException

plot

public void plot(IPlottable plottable,
                 IPlotterStyle style,
                 String options)
          throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Send a generic plottable object to the plotting region. See IPlottable for more.

Specified by:
plot in interface IPlotterRegion
Throws:
IllegalArgumentException

plot

public void plot(IBaseHistogram iBaseHistogram)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IBaseHistogram iBaseHistogram,
                 IPlotterStyle style)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IBaseHistogram iBaseHistogram,
                 String options)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IBaseHistogram iBaseHistogram,
                 IPlotterStyle style,
                 String options)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IDataPointSet iDataPointSet)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IDataPointSet iDataPointSet,
                 IPlotterStyle style)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IDataPointSet iDataPointSet,
                 String options)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IDataPointSet iDataPointSet,
                 IPlotterStyle style,
                 String options)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IFunction iFunction)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IFunction iFunction,
                 IPlotterStyle style)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IFunction iFunction,
                 String options)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

plot

public void plot(IFunction iFunction,
                 IPlotterStyle style,
                 String options)
Description copied from interface: IPlotterRegion
Add 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:
plot in interface IPlotterRegion

remove

public void remove(IDataPointSet iDataPointSet)
Description copied from interface: IPlotterRegion
Remove 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:
remove in interface IPlotterRegion

remove

public void remove(IFunction iFunction)
Description copied from interface: IPlotterRegion
Remove 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:
remove in interface IPlotterRegion

remove

public void remove(IBaseHistogram iBaseHistogram)
Description copied from interface: IPlotterRegion
Remove 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:
remove in interface IPlotterRegion

remove

public void remove(IPlottable plottable)
            throws IllegalArgumentException
Description copied from interface: IPlotterRegion
Generic entry point to remove some plotted scene part.

Specified by:
remove in interface IPlotterRegion
Throws:
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: IPlotterRegion
To customize axis position,etc... Change object position in the scence.

Specified by:
setLayout in interface IPlotterRegion

layout

public IPlotterLayout layout()
Description copied from interface: IPlotterRegion
To customize axis position,etc... Change object position in the scence.

Specified by:
layout in interface IPlotterRegion

add

public void add(Object thing,
                IPlotterStyle style,
                int mode)

add

public void add(Object thing,
                IPlotterStyle style,
                String options)

add

public void add(Object thing,
                IPlotterStyle style,
                int mode,
                String options)

add

public void add(Object thing,
                IPlotterStyle style,
                int mode,
                Object data)

add

public void add(Object thing,
                IPlotterStyle userStyle,
                int mode,
                Object data,
                String options)

setDefaultsFromData

public IPlotterStyle setDefaultsFromData(Object thing,
                                         IPlotterStyle style)

handleLabels

public void handleLabels(IPlotterStyle style)

applyDefaultStyles

public IPlotterStyle applyDefaultStyles(Object data,
                                        IPlotterStyle style)

applyDefaultStyles

public IPlotterStyle applyDefaultStyles(Object data,
                                        IPlotterStyle style,
                                        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(Object thing)

removeDataSourceFromRegion

public void removeDataSourceFromRegion(jas.hist.DataSource ds)

refresh

public void refresh()
Description copied from interface: IPlotterRegion
Refresh the plotter region graphic. Can be used when a plotted data analysis object received new data.

Specified by:
refresh in interface IPlotterRegion

refreshStyles

public void refreshStyles()

clearRegion

public void clearRegion()

addToRegion

public void addToRegion(Object thing,
                        IPlotterStyle styleObj,
                        String options)

getMode

public int getMode(String options)

setDefaultMode

public void setDefaultMode(String value)


jHepWork 3.2 © jWork.org