|
FreeHEP API Version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
User level interface to plotter. This IPlotter interface assumes the handling of multiple plotting regions. Then the IPlotter should be seen as a "page" managing multiple drawing region. It assumes that a "current" region mechanism is used. The keyword "region" is borrowed from the OpenInventor terminology (viewing region). See also the IPlotterRegion for more comments.
Method Summary | |
String[] |
availableParameterOptions(String parameter)
|
String[] |
availableParameters()
|
void |
clearRegions()
Clear all regions. |
IPlotterRegion |
createRegion()
Create a new region. |
IPlotterRegion |
createRegion(double x)
Create a new region. |
IPlotterRegion |
createRegion(double x,
double y)
Create a new region. |
IPlotterRegion |
createRegion(double x,
double y,
double w)
Create a new region. |
IPlotterRegion |
createRegion(double x,
double y,
double w,
double h)
Create a new region. |
void |
createRegions()
Create a grid of regions. |
void |
createRegions(int columns)
Create a grid of regions. |
void |
createRegions(int columns,
int rows)
Create a grid of regions. |
void |
createRegions(int columns,
int rows,
int index)
Create a grid of regions. |
IPlotterRegion |
currentRegion()
|
int |
currentRegionNumber()
|
void |
destroyRegions()
Destroy regions. |
void |
hide()
Unmap the plotter on the screen. |
void |
interact()
Give control to the plotter GUI. |
IPlotterRegion |
next()
Set current region to be the "next" one. |
int |
numberOfRegions()
|
String |
parameterValue(String parameter)
Get value of a parameter. |
void |
refresh()
Refresh the screen window(s). |
IPlotterRegion |
region(int index)
|
void |
setCurrentRegionNumber(int index)
Set current region by giving its index [0,n-1] |
void |
setParameter(String parameter)
|
void |
setParameter(String parameter,
String options)
|
void |
setTitle(String title)
Set the global title of the plotter (page). |
void |
setTitleStyle(ITitleStyle style)
|
void |
show()
Map the plotter on the screen. |
ITitleStyle |
titleStyle()
Get/set title style. |
void |
writeToFile(String filename)
Produce an output file. |
void |
writeToFile(String filename,
String type)
Produce an output file. |
Method Detail |
public IPlotterRegion createRegion()
public IPlotterRegion createRegion(double x)
public IPlotterRegion createRegion(double x, double y)
public IPlotterRegion createRegion(double x, double y, double w)
public IPlotterRegion createRegion(double x, double y, double w, double h)
public void createRegions() throws IllegalArgumentException
IllegalArgumentException
public void createRegions(int columns) throws IllegalArgumentException
IllegalArgumentException
public void createRegions(int columns, int rows) throws IllegalArgumentException
IllegalArgumentException
public void createRegions(int columns, int rows, int index) throws IllegalArgumentException
index
- Set the current region.
IllegalArgumentException
public IPlotterRegion currentRegion()
public int currentRegionNumber()
public int numberOfRegions()
public void setCurrentRegionNumber(int index) throws IllegalArgumentException
IllegalArgumentException
public IPlotterRegion next()
public IPlotterRegion region(int index)
public void destroyRegions()
public void clearRegions()
public void setParameter(String parameter) throws IllegalArgumentException
IllegalArgumentException
public void setParameter(String parameter, String options) throws IllegalArgumentException
IllegalArgumentException
public String parameterValue(String parameter)
public String[] availableParameterOptions(String parameter)
public String[] availableParameters()
public void show() throws RuntimeException
RuntimeException
public void refresh() throws RuntimeException
RuntimeException
public void hide() throws RuntimeException
RuntimeException
public void interact() throws RuntimeException
RuntimeException
public void writeToFile(String filename) throws IOException
IOException
public void writeToFile(String filename, String type) throws IOException
type
- 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...).
IOException
public void setTitle(String title)
public ITitleStyle titleStyle()
public void setTitleStyle(ITitleStyle style)
|
FreeHEP API Version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |