public class PlotSession<P,A> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BOUNDS_KEY |
static PlotService |
COUNT_SERVICE |
static String |
DATAPOS_KEY |
static String |
FORMAT_KEY |
static PlotService |
HTML_SERVICE |
static String |
IMGSRC_KEY |
static PlotService |
IMGSRC_SERVICE |
static String |
JS_FILE
Name of JavaScript plotting library resource.
|
static String |
MESSAGE_KEY |
static PlotService |
POSITION_SERVICE |
static PlotService |
ROW_SERVICE |
static PlotService[] |
SERVICES
Available PlotService instances.
|
static PlotService |
STATE_SERVICE |
static String |
STATICSVG_KEY |
static String |
TRANSIENTSVG_KEY |
static String |
TXTPOS_KEY |
| Constructor and Description |
|---|
PlotSession(String plotTxt,
PlotScene<P,A> scene,
Navigator<A> navigator,
GraphicExporter exporter,
DataStore dataStore,
Dimension size,
DiskCache imgCache)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
init()
Must be called before any session is instantiated.
|
public static final String JS_FILE
public static final String IMGSRC_KEY
public static final String TRANSIENTSVG_KEY
public static final String STATICSVG_KEY
public static final String DATAPOS_KEY
public static final String TXTPOS_KEY
public static final String MESSAGE_KEY
public static final String BOUNDS_KEY
public static final String FORMAT_KEY
public static final PlotService HTML_SERVICE
public static final PlotService STATE_SERVICE
public static final PlotService IMGSRC_SERVICE
public static final PlotService POSITION_SERVICE
public static final PlotService COUNT_SERVICE
public static final PlotService ROW_SERVICE
public static final PlotService[] SERVICES
public PlotSession(String plotTxt, PlotScene<P,A> scene, Navigator<A> navigator, GraphicExporter exporter, DataStore dataStore, Dimension size, DiskCache imgCache)
plotTxt - plot text; this is transmitted alongside the
sessionId in plot requests so that the session
can be reconstructed if the session expiresscene - contains parsed plot informationnavigator - plot navigation objectexporter - defines image graphics formatdataStore - data storagesize - initial dimension of IMG elementimgCache - disk cache for storing default image files;
may be null for no cachingpublic static void init()
throws IOException
IOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.