|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.task.Plot2Task
public class Plot2Task
STILTS Task for generic layer plots.
Constructor Summary | |
---|---|
Plot2Task()
Constructor. |
Method Summary | ||
---|---|---|
Executable |
createExecutable(Environment env)
Creates an executable object which will do the work of this task in the given Environment. |
|
JComponent |
createPlotComponent(Environment env,
boolean caching)
Returns a graphical component that displays an interactive view of the plot described by a value-bearing execution environment. |
|
Icon |
createPlotIcon(Environment env)
Returns an Icon that paints the plot described by a value-bearing execution environment. |
|
static
|
createPlotIcon(PlotLayer[] layers,
SurfaceFactory<P,A> surfFact,
ConfigMap config,
Icon legend,
float[] legPos,
ShadeAxis shadeAxis,
Range shadeFixRange,
PaperTypeSelector ptsel,
Compositor compositor,
DataStore dataStore,
int xpix,
int ypix,
Insets insets,
boolean forceBitmap)
Creates an icon which will paint the content of a plot. |
|
Parameter[] |
getParameters()
Returns the list of parameters which may be used by this task. |
|
String |
getPurpose()
Returns a short (one-line) description of the purpose of this task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plot2Task()
Method Detail |
---|
public String getPurpose()
Task
getPurpose
in interface Task
public Parameter[] getParameters()
Task
getParameters
in interface Task
public Executable createExecutable(Environment env) throws TaskException
Task
env
, though this is not
absolutely prohibited.
createExecutable
in interface Task
env
- the environment in which the task will operate
TaskException
- if no executable can be created;
this should usually be a UsageException
or
some subclasspublic Icon createPlotIcon(Environment env) throws TaskException, IOException, InterruptedException
env
- execution environment
TaskException
IOException
InterruptedException
public JComponent createPlotComponent(Environment env, boolean caching) throws TaskException, IOException, InterruptedException
env
- execution environmentcaching
- whether data and plot should be cached or re-read
at every repaint
TaskException
IOException
InterruptedException
public static <P,A> Icon createPlotIcon(PlotLayer[] layers, SurfaceFactory<P,A> surfFact, ConfigMap config, Icon legend, float[] legPos, ShadeAxis shadeAxis, Range shadeFixRange, PaperTypeSelector ptsel, Compositor compositor, DataStore dataStore, int xpix, int ypix, Insets insets, boolean forceBitmap)
layers
- layers constituting plot contentsurfFact
- surface factoryconfig
- map containing surface profile and initial aspect
configurationlegend
- legend icon, or null if none requiredlegPos
- 2-element array giving x,y fractional legend placement
position within plot (elements in range 0..1),
or null for external legendshadeAxis
- shader axis, or null if not requiredshadeFixRange
- fixed shader range,
or null for auto-range where requiredptsel
- paper type selectorcompositor
- compositor for pixel compositiondataStore
- data storage objectxpix
- horizontal size of icon in pixelsypix
- vertical size of icon in pixelsinsets
- may supply the inset space to be used for
axis decoration etc; if null, this will be worked out
automaticallyforceBitmap
- true to force bitmap output of vector graphics,
false to use default behaviour
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |