FreeHEP API
Version current

hep.aida.ref.plotter
Class DummyPlotter

java.lang.Object
  extended byhep.aida.ref.plotter.DummyPlotter
All Implemented Interfaces:
hep.aida.IPlotter
Direct Known Subclasses:
Plotter

public class DummyPlotter
extends Object
implements hep.aida.IPlotter

A dummy implementation of an AIDA Plotter, useful in batch jobs where no graphical output is required.

Version:
$Id: DummyPlotter.java,v 1.13 2005/10/21 14:50:25 turri Exp $
Author:
tonyj
Source Code:
DummyPlotter.java

Constructor Summary
protected DummyPlotter()
           
 
Method Summary
protected  void addParameter(String parameterName)
           
protected  void addParameter(String parameterName, String defaultValue)
           
protected  void addParameter(String parameterName, String[] options)
           
protected  void addParameter(String parameterName, String[] options, String defaultValue)
           
 String[] availableParameterOptions(String parameterName)
           
 String[] availableParameters()
           
 void clearRegions()
           
 hep.aida.IPlotterRegion createRegion()
           
 hep.aida.IPlotterRegion createRegion(double x)
           
 hep.aida.IPlotterRegion createRegion(double x, double y)
           
 hep.aida.IPlotterRegion createRegion(double x, double y, double w)
           
 hep.aida.IPlotterRegion createRegion(double x, double y, double w, double h)
           
 void createRegions()
           
 void createRegions(int columns)
           
 void createRegions(int columns, int rows)
           
 void createRegions(int columns, int rows, int start)
           
 hep.aida.IPlotterRegion currentRegion()
           
 int currentRegionNumber()
           
 void destroyRegions()
           
 void hide()
           
 void interact()
           
static void invokeOnSwingThread(Runnable run)
           
 boolean isShowing()
           
protected  hep.aida.IPlotterRegion justCreateRegion(double x, double y, double width, double height)
           
 hep.aida.IPlotterRegion next()
           
 int numberOfRegions()
           
 JPanel panel()
           
 String parameterValue(String parameterName)
           
protected  int plotterHeight()
           
protected  int plotterWidth()
           
 void refresh()
           
 hep.aida.IPlotterRegion region(int index)
           
 void setCurrentRegionNumber(int value)
           
 void setParameter(String name)
           
 void setParameter(String name, String value)
           
 void setStyle(hep.aida.IPlotterStyle style)
           
 void setTitle(String str)
           
 void setTitleStyle(hep.aida.ITitleStyle iTitleStyle)
           
 void show()
           
 hep.aida.IPlotterStyle style()
           
 String title()
           
 hep.aida.ITitleStyle titleStyle()
           
 void writeToFile(String file)
           
 void writeToFile(String file, String type)
           
 void writeToFile(String fileName, String fileType, Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyPlotter

protected DummyPlotter()
Method Detail

justCreateRegion

protected hep.aida.IPlotterRegion justCreateRegion(double x,
                                                   double y,
                                                   double width,
                                                   double height)

show

public void show()
Specified by:
show in interface hep.aida.IPlotter

hide

public void hide()
Specified by:
hide in interface hep.aida.IPlotter

refresh

public void refresh()
Specified by:
refresh in interface hep.aida.IPlotter

interact

public void interact()
Specified by:
interact in interface hep.aida.IPlotter

next

public hep.aida.IPlotterRegion next()
Specified by:
next in interface hep.aida.IPlotter

createRegion

public hep.aida.IPlotterRegion createRegion(double x)
Specified by:
createRegion in interface hep.aida.IPlotter

createRegion

public hep.aida.IPlotterRegion createRegion()
Specified by:
createRegion in interface hep.aida.IPlotter

createRegion

public hep.aida.IPlotterRegion createRegion(double x,
                                            double y)
Specified by:
createRegion in interface hep.aida.IPlotter

createRegion

public hep.aida.IPlotterRegion createRegion(double x,
                                            double y,
                                            double w)
Specified by:
createRegion in interface hep.aida.IPlotter

createRegion

public hep.aida.IPlotterRegion createRegion(double x,
                                            double y,
                                            double w,
                                            double h)
Specified by:
createRegion in interface hep.aida.IPlotter

currentRegion

public hep.aida.IPlotterRegion currentRegion()
Specified by:
currentRegion in interface hep.aida.IPlotter

createRegions

public void createRegions()
Specified by:
createRegions in interface hep.aida.IPlotter

createRegions

public void createRegions(int columns)
Specified by:
createRegions in interface hep.aida.IPlotter

createRegions

public void createRegions(int columns,
                          int rows)
Specified by:
createRegions in interface hep.aida.IPlotter

createRegions

public void createRegions(int columns,
                          int rows,
                          int start)
Specified by:
createRegions in interface hep.aida.IPlotter

setCurrentRegionNumber

public void setCurrentRegionNumber(int value)
Specified by:
setCurrentRegionNumber in interface hep.aida.IPlotter

currentRegionNumber

public int currentRegionNumber()
Specified by:
currentRegionNumber in interface hep.aida.IPlotter

region

public hep.aida.IPlotterRegion region(int index)
Specified by:
region in interface hep.aida.IPlotter

destroyRegions

public void destroyRegions()
Specified by:
destroyRegions in interface hep.aida.IPlotter

clearRegions

public void clearRegions()
Specified by:
clearRegions in interface hep.aida.IPlotter

availableParameterOptions

public String[] availableParameterOptions(String parameterName)
Specified by:
availableParameterOptions in interface hep.aida.IPlotter

availableParameters

public String[] availableParameters()
Specified by:
availableParameters in interface hep.aida.IPlotter

parameterValue

public String parameterValue(String parameterName)
Specified by:
parameterValue in interface hep.aida.IPlotter

setParameter

public void setParameter(String name)
Specified by:
setParameter in interface hep.aida.IPlotter

setParameter

public void setParameter(String name,
                         String value)
Specified by:
setParameter in interface hep.aida.IPlotter

numberOfRegions

public int numberOfRegions()
Specified by:
numberOfRegions in interface hep.aida.IPlotter

setTitle

public void setTitle(String str)
Specified by:
setTitle in interface hep.aida.IPlotter

title

public String title()
Specified by:
title in interface hep.aida.IPlotter

titleStyle

public hep.aida.ITitleStyle titleStyle()
Specified by:
titleStyle in interface hep.aida.IPlotter

setTitleStyle

public void setTitleStyle(hep.aida.ITitleStyle iTitleStyle)
Specified by:
setTitleStyle in interface hep.aida.IPlotter

style

public hep.aida.IPlotterStyle style()
Specified by:
style in interface hep.aida.IPlotter

setStyle

public void setStyle(hep.aida.IPlotterStyle style)
Specified by:
setStyle in interface hep.aida.IPlotter

writeToFile

public void writeToFile(String file)
                 throws IOException
Specified by:
writeToFile in interface hep.aida.IPlotter
Throws:
IOException

writeToFile

public void writeToFile(String file,
                        String type)
                 throws IOException
Specified by:
writeToFile in interface hep.aida.IPlotter
Throws:
IOException

writeToFile

public void writeToFile(String fileName,
                        String fileType,
                        Properties props)
                 throws IOException
Throws:
IOException

isShowing

public boolean isShowing()

panel

public JPanel panel()

plotterWidth

protected int plotterWidth()

plotterHeight

protected int plotterHeight()

invokeOnSwingThread

public static void invokeOnSwingThread(Runnable run)

addParameter

protected void addParameter(String parameterName)

addParameter

protected void addParameter(String parameterName,
                            String defaultValue)

addParameter

protected void addParameter(String parameterName,
                            String[] options)

addParameter

protected void addParameter(String parameterName,
                            String[] options,
                            String defaultValue)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.