|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPlotter
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 |
setStyle(IPlotterStyle style)
Set the global plotter style. |
void |
setTitle(String title)
Set the global title of the plotter (page). |
void |
setTitleStyle(ITitleStyle style)
Set title style |
void |
show()
Map the plotter on the screen. |
IPlotterStyle |
style()
Get the global plotter style. |
String |
title()
Get the global title of the plotter (page). |
ITitleStyle |
titleStyle()
Get title style. |
void |
writeToFile(String filename)
Produce an output file. |
void |
writeToFile(String filename,
String type)
Produce an output file. |
| Method Detail |
|---|
IPlotterRegion createRegion()
IPlotterRegion createRegion(double x)
x, - y, w, h Position and size in normal coordinates
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.
IPlotterRegion createRegion(double x,
double y)
x, - y, w, h Position and size in normal coordinates
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.
IPlotterRegion createRegion(double x,
double y,
double w)
x, - y, w, h Position and size in normal coordinates
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.
IPlotterRegion createRegion(double x,
double y,
double w,
double h)
x, - y, w, h Position and size in normal coordinates
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.
void createRegions()
throws IllegalArgumentException
IllegalArgumentException
void createRegions(int columns)
throws IllegalArgumentException
index - Set the current region.
IllegalArgumentException
void createRegions(int columns,
int rows)
throws IllegalArgumentException
index - Set the current region.
IllegalArgumentException
void createRegions(int columns,
int rows,
int index)
throws IllegalArgumentException
index - Set the current region.
IllegalArgumentExceptionIPlotterRegion currentRegion()
int currentRegionNumber()
int numberOfRegions()
void setCurrentRegionNumber(int index)
throws IllegalArgumentException
IllegalArgumentExceptionIPlotterRegion next()
IPlotterRegion region(int index)
void destroyRegions()
void clearRegions()
void setParameter(String parameter)
throws IllegalArgumentException
IllegalArgumentException
void setParameter(String parameter,
String options)
throws IllegalArgumentException
IllegalArgumentExceptionString parameterValue(String parameter)
paramName - Name of the parameter.
String[] availableParameterOptions(String parameter)
String[] availableParameters()
void show()
throws RuntimeException
RuntimeException
void refresh()
throws RuntimeException
RuntimeException
void hide()
throws RuntimeException
RuntimeException
void interact()
throws RuntimeException
RuntimeException
void writeToFile(String filename)
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
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...).
IOExceptionvoid setTitle(String title)
String title()
ITitleStyle titleStyle()
void setTitleStyle(ITitleStyle style)
IPlotterStyle style()
void setStyle(IPlotterStyle style)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||