hep.aida.ref.plotter
Class DummyPlotter
- java.lang.Object
-
- hep.aida.ref.plotter.DummyPlotter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]availableParameterOptions(java.lang.String parameterName)java.lang.String[]availableParameters()voidclearRegions()Clear all regions.IPlotterRegioncreateRegion()Create a new region.IPlotterRegioncreateRegion(double x)Create a new region.IPlotterRegioncreateRegion(double x, double y)Create a new region.IPlotterRegioncreateRegion(double x, double y, double w)Create a new region.IPlotterRegioncreateRegion(double x, double y, double w, double h)Create a new region.voidcreateRegions()Create a grid of regions.voidcreateRegions(int columns)Create a grid of regions.voidcreateRegions(int columns, int rows)Create a grid of regions.voidcreateRegions(int columns, int rows, int start)Create a grid of regions.IPlotterRegioncurrentRegion()intcurrentRegionNumber()voiddestroyRegions()Destroy regions.voidhide()Unmap the plotter on the screen.voidinteract()Give control to the plotter GUI.static voidinvokeOnSwingThread(java.lang.Runnable run)booleanisShowing()IPlotterRegionnext()Set current region to be the "next" one.intnumberOfRegions()javax.swing.JPanelpanel()java.lang.StringparameterValue(java.lang.String parameterName)Get value of a parameter.voidrefresh()Refresh the screen window(s).IPlotterRegionregion(int index)voidsetCurrentRegionNumber(int value)Set current region by giving its index [0,n-1]voidsetParameter(java.lang.String name)voidsetParameter(java.lang.String name, java.lang.String value)voidsetStyle(IPlotterStyle style)Set the global plotter style.voidsetTitle(java.lang.String str)Set the global title of the plotter (page).voidsetTitleStyle(ITitleStyle iTitleStyle)Set title stylevoidshow()Map the plotter on the screen.IPlotterStylestyle()Get the global plotter style.java.lang.Stringtitle()Get the global title of the plotter (page).ITitleStyletitleStyle()Get title style.voidwriteToFile(java.lang.String file)Produce an output file.voidwriteToFile(java.lang.String file, java.lang.String type)Produce an output file.voidwriteToFile(java.lang.String fileName, java.lang.String fileType, java.util.Properties props)
-
-
-
Method Detail
-
show
public void show()
Description copied from interface:IPlotterMap the plotter on the screen.
-
hide
public void hide()
Description copied from interface:IPlotterUnmap the plotter on the screen.
-
refresh
public void refresh()
Description copied from interface:IPlotterRefresh the screen window(s). Used when a plotted data analysis object received new data.
-
interact
public void interact()
Description copied from interface:IPlotterGive control to the plotter GUI. The plotter must be able to return from this function from a user action in its GUI.
-
next
public IPlotterRegion next()
Description copied from interface:IPlotterSet current region to be the "next" one. If exceeding the number of regions, the current region index return to 0.
-
createRegion
public IPlotterRegion createRegion(double x)
Description copied from interface:IPlotterCreate a new region.- Specified by:
createRegionin interfaceIPlotter- Returns:
- The newly created region. Return null in case not failure. Note that the plotter manages the regions ; user does not have to delete a region object directly.
-
createRegion
public IPlotterRegion createRegion()
Description copied from interface:IPlotterCreate a new region. that is to say between 0 and 1. Then a region with (x=0,y=0,w=1,h=1) maps the full page. "x" goes left to right. "y" bottom to top.- Specified by:
createRegionin interfaceIPlotter- Returns:
- The newly created region. Return null in case not failure. Note that the plotter manages the regions ; user does not have to delete a region object directly.
-
createRegion
public IPlotterRegion createRegion(double x, double y)
Description copied from interface:IPlotterCreate a new region.- Specified by:
createRegionin interfaceIPlotter- Returns:
- The newly created region. Return null in case not failure. Note that the plotter manages the regions ; user does not have to delete a region object directly.
-
createRegion
public IPlotterRegion createRegion(double x, double y, double w)
Description copied from interface:IPlotterCreate a new region.- Specified by:
createRegionin interfaceIPlotter- Returns:
- The newly created region. Return null in case not failure. Note that the plotter manages the regions ; user does not have to delete a region object directly.
-
createRegion
public IPlotterRegion createRegion(double x, double y, double w, double h)
Description copied from interface:IPlotterCreate a new region.- Specified by:
createRegionin interfaceIPlotter- Returns:
- The newly created region. Return null in case not failure. Note that the plotter manages the regions ; user does not have to delete a region object directly.
-
currentRegion
public IPlotterRegion currentRegion()
- Specified by:
currentRegionin interfaceIPlotter- Returns:
- The current region.
-
createRegions
public void createRegions()
Description copied from interface:IPlotterCreate a grid of regions. By default the current region is the top left one (with index 0). Region are indexed from zero, with increasing order left to right, top to bottom.- Specified by:
createRegionsin interfaceIPlotter
-
createRegions
public void createRegions(int columns)
Description copied from interface:IPlotterCreate a grid of regions. By default the current region is the top left one (with index 0). Region are indexed from zero, with increasing order left to right, top to bottom.- Specified by:
createRegionsin interfaceIPlotter
-
createRegions
public void createRegions(int columns, int rows)Description copied from interface:IPlotterCreate a grid of regions. By default the current region is the top left one (with index 0). Region are indexed from zero, with increasing order left to right, top to bottom.- Specified by:
createRegionsin interfaceIPlotter
-
createRegions
public void createRegions(int columns, int rows, int start)Description copied from interface:IPlotterCreate a grid of regions. By default the current region is the top left one (with index 0). Region are indexed from zero, with increasing order left to right, top to bottom.- Specified by:
createRegionsin interfaceIPlotterstart- Set the current region.
-
setCurrentRegionNumber
public void setCurrentRegionNumber(int value)
Description copied from interface:IPlotterSet current region by giving its index [0,n-1]- Specified by:
setCurrentRegionNumberin interfaceIPlotter
-
currentRegionNumber
public int currentRegionNumber()
- Specified by:
currentRegionNumberin interfaceIPlotter- Returns:
- The current region index.
-
region
public IPlotterRegion region(int index)
-
destroyRegions
public void destroyRegions()
Description copied from interface:IPlotterDestroy regions.- Specified by:
destroyRegionsin interfaceIPlotter
-
clearRegions
public void clearRegions()
Description copied from interface:IPlotterClear all regions. It does not reset the number and position of regions. This can be done through a destroyRegions.- Specified by:
clearRegionsin interfaceIPlotter
-
availableParameterOptions
public java.lang.String[] availableParameterOptions(java.lang.String parameterName)
- Specified by:
availableParameterOptionsin interfaceIPlotter
-
availableParameters
public java.lang.String[] availableParameters()
- Specified by:
availableParametersin interfaceIPlotter
-
parameterValue
public java.lang.String parameterValue(java.lang.String parameterName)
Description copied from interface:IPlotterGet value of a parameter.- Specified by:
parameterValuein interfaceIPlotter- Returns:
- the value.
-
setParameter
public void setParameter(java.lang.String name)
- Specified by:
setParameterin interfaceIPlotter
-
setParameter
public void setParameter(java.lang.String name, java.lang.String value)- Specified by:
setParameterin interfaceIPlotter
-
numberOfRegions
public int numberOfRegions()
- Specified by:
numberOfRegionsin interfaceIPlotter- Returns:
- The number of regions.
-
setTitle
public void setTitle(java.lang.String str)
Description copied from interface:IPlotterSet the global title of the plotter (page).
-
title
public java.lang.String title()
Description copied from interface:IPlotterGet the global title of the plotter (page).
-
titleStyle
public ITitleStyle titleStyle()
Description copied from interface:IPlotterGet title style.- Specified by:
titleStylein interfaceIPlotter
-
setTitleStyle
public void setTitleStyle(ITitleStyle iTitleStyle)
Description copied from interface:IPlotterSet title style- Specified by:
setTitleStylein interfaceIPlotter
-
style
public IPlotterStyle style()
Description copied from interface:IPlotterGet the global plotter style.
-
setStyle
public void setStyle(IPlotterStyle style)
Description copied from interface:IPlotterSet the global plotter style.
-
writeToFile
public void writeToFile(java.lang.String file) throws java.io.IOExceptionDescription copied from interface:IPlotterProduce an output file.- Specified by:
writeToFilein interfaceIPlotter- Throws:
java.io.IOException
-
writeToFile
public void writeToFile(java.lang.String file, java.lang.String type) throws java.io.IOExceptionDescription copied from interface:IPlotterProduce an output file.- Specified by:
writeToFilein interfaceIPlottertype- A string to describe the type of the output : "PS" or "PostScript" for PostScript, "JPEG" for JPEG. If nothing is given, the type is guessed from the given file name suffix (.ps for PostScript, .jpg for JPEG, etc...).- Throws:
java.io.IOException
-
writeToFile
public void writeToFile(java.lang.String fileName, java.lang.String fileType, java.util.Properties props) throws java.io.IOException- Throws:
java.io.IOException
-
isShowing
public boolean isShowing()
-
panel
public javax.swing.JPanel panel()
-
invokeOnSwingThread
public static void invokeOnSwingThread(java.lang.Runnable run)
-
-
DMelt 3.0 © DataMelt by jWork.ORG