|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
User level interface for plotting histograms, clounds and functions. IPlotter allows the user to define multiple plotting regions within the page. At any time one region is the "current region". Regions can be arranged in a grid, or can be set to arbitrary sizes.
When initially created the IPlotter has a single region that covers the entire area.
Method Summary | |
void |
clearPage()
Clear all regions. |
void |
clearRegion()
Clear the list of things to plot for the current region. |
int |
createRegion(double x,
double y,
double w,
double h)
Create a new region. |
void |
createRegions(int columns,
int rows)
Create a grid of regions, replacing any existing regions. |
void |
createRegions(int columns,
int rows,
int start)
Create a grid of regions, replacing any existing regions. |
int |
currentRegion()
Get the current region |
void |
hide()
Unmap the plotter on the screen. |
void |
interact()
Give control to the plotter GUI. |
void |
next()
Set current region to be the "next" one. |
void |
plot(ICloud cloud)
Add a cloud to the list of things to plot in the current region. |
void |
plot(IFunction function)
Add a function to the list of things to plot in the current region. |
void |
plot(IHistogram histogram)
Add a histogram to the list of things to plot in the current region. |
void |
refresh()
Refresh the screen window(s). |
void |
remove(ICloud cloud)
Remove a cloud from the list of objects to display in the current region |
void |
remove(IFunction function)
Remove a function from the list of objects to display in the current region |
void |
remove(IHistogram histogram)
Remove a histogram from the list of objects to display in the current region |
void |
setCurrentRegion(int index)
Set current region by giving its index [0,n-1] |
void |
setParameter(String parameter,
String value)
|
void |
show()
Map the plotter on the screen. |
void |
write(String filename,
String type)
Dump the contents of the page to a file. |
Method Detail |
public int createRegion(double x, double y, double w, double h)
x
- The x coordinate in the range 0 (left) to 1(right)y
- The y coordinate in the range 0=bottom to y=topw
- The width (0-1)h
- The height (0-1)public void createRegions(int columns, int rows)
columns
- The number of columnsrows
- The number of rowsstart
- The region which will become the default regionpublic void createRegions(int columns, int rows, int start)
columns
- The number of columnsrows
- The number of rowsstart
- The region which will become the default regionpublic void plot(IHistogram histogram)
histogram
- The histogram to addpublic void plot(IFunction function)
function
- The function to addpublic void plot(ICloud cloud)
cloud
- The cloud to addpublic void remove(IHistogram histogram)
histogram
- The histogram to removepublic void remove(IFunction function)
function
- The function to removepublic void remove(ICloud cloud)
cloud
- The cloud to removepublic void next()
public void setCurrentRegion(int index)
index
- The new region indexpublic int currentRegion()
public void clearRegion()
public void clearPage()
createRegions(int,int)
public void setParameter(String parameter, String value)
public void write(String filename, String type)
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 file suffix (.ps for PostScript,
.jpg for JPEG, etc...).filename
- The file to createpublic void show()
public void hide()
public void refresh()
public void interact()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |