public class XmlIoViewerState extends Object
Modifier and Type | Field and Description |
---|---|
static String |
VIEWERSTATE_CURRENTGROUP_TAG |
static String |
VIEWERSTATE_CURRENTSOURCE_TAG |
static String |
VIEWERSTATE_CURRENTTIMEPOINT_TAG |
static String |
VIEWERSTATE_DISPLAYMODE_TAG |
static String |
VIEWERSTATE_DISPLAYMODE_VALUE_FUSED |
static String |
VIEWERSTATE_DISPLAYMODE_VALUE_FUSEDGROUP |
static String |
VIEWERSTATE_DISPLAYMODE_VALUE_GROUP |
static String |
VIEWERSTATE_DISPLAYMODE_VALUE_SINGLE |
static String |
VIEWERSTATE_GROUP_ACTIVE_TAG |
static String |
VIEWERSTATE_GROUP_NAME_TAG |
static String |
VIEWERSTATE_GROUP_SOURCEID_TAG |
static String |
VIEWERSTATE_GROUP_TAG |
static String |
VIEWERSTATE_GROUPS_TAG |
static String |
VIEWERSTATE_INTERPOLATION_TAG |
static String |
VIEWERSTATE_INTERPOLATION_VALUE_NEARESTNEIGHBOR |
static String |
VIEWERSTATE_INTERPOLATION_VALUE_NLINEAR |
static String |
VIEWERSTATE_SOURCE_ACTIVE_TAG |
static String |
VIEWERSTATE_SOURCE_TAG |
static String |
VIEWERSTATE_SOURCES_TAG |
static String |
VIEWERSTATE_TAG |
Constructor and Description |
---|
XmlIoViewerState() |
Modifier and Type | Method and Description |
---|---|
protected DisplayMode |
displayModeFromXml(org.jdom2.Element elem) |
protected org.jdom2.Element |
displayModeToXml(DisplayMode mode) |
String |
getTagName() |
protected Interpolation |
interpolationModeFromXml(org.jdom2.Element elem) |
protected org.jdom2.Element |
interpolationModeToXml(Interpolation mode) |
void |
restoreFromXml(org.jdom2.Element elem,
ViewerState state) |
void |
restoreSourceGroupsFromXml(org.jdom2.Element elem,
ViewerState state) |
protected void |
restoreSourcesFromXml(org.jdom2.Element elem,
List<SourceState<?>> sources) |
org.jdom2.Element |
sourceGroupsToXml(List<SourceGroup> groups) |
protected org.jdom2.Element |
sourcesToXml(List<SourceState<?>> sources) |
org.jdom2.Element |
toXml(ViewerState state) |
public static final String VIEWERSTATE_TAG
public static final String VIEWERSTATE_SOURCES_TAG
public static final String VIEWERSTATE_SOURCE_TAG
public static final String VIEWERSTATE_SOURCE_ACTIVE_TAG
public static final String VIEWERSTATE_GROUPS_TAG
public static final String VIEWERSTATE_GROUP_TAG
public static final String VIEWERSTATE_GROUP_ACTIVE_TAG
public static final String VIEWERSTATE_GROUP_NAME_TAG
public static final String VIEWERSTATE_GROUP_SOURCEID_TAG
public static final String VIEWERSTATE_DISPLAYMODE_TAG
public static final String VIEWERSTATE_DISPLAYMODE_VALUE_SINGLE
public static final String VIEWERSTATE_DISPLAYMODE_VALUE_GROUP
public static final String VIEWERSTATE_DISPLAYMODE_VALUE_FUSED
public static final String VIEWERSTATE_DISPLAYMODE_VALUE_FUSEDGROUP
public static final String VIEWERSTATE_INTERPOLATION_TAG
public static final String VIEWERSTATE_INTERPOLATION_VALUE_NEARESTNEIGHBOR
public static final String VIEWERSTATE_INTERPOLATION_VALUE_NLINEAR
public static final String VIEWERSTATE_CURRENTSOURCE_TAG
public static final String VIEWERSTATE_CURRENTGROUP_TAG
public static final String VIEWERSTATE_CURRENTTIMEPOINT_TAG
public String getTagName()
public org.jdom2.Element toXml(ViewerState state)
public void restoreFromXml(org.jdom2.Element elem, ViewerState state)
elem
- <ViewerState> element.state
- is restored from the elem
.protected org.jdom2.Element sourcesToXml(List<SourceState<?>> sources)
protected void restoreSourcesFromXml(org.jdom2.Element elem, List<SourceState<?>> sources)
elem
- <Sources> element.sources
- is restored from the elem
.public org.jdom2.Element sourceGroupsToXml(List<SourceGroup> groups)
public void restoreSourceGroupsFromXml(org.jdom2.Element elem, ViewerState state)
elem
- <SourceGroups> element.protected org.jdom2.Element displayModeToXml(DisplayMode mode)
protected DisplayMode displayModeFromXml(org.jdom2.Element elem)
protected org.jdom2.Element interpolationModeToXml(Interpolation mode)
protected Interpolation interpolationModeFromXml(org.jdom2.Element elem)
Copyright © 2015–2021 Fiji. All rights reserved.