Package org.jmol.viewer
Class StateManager
java.lang.Object
org.jmol.viewer.StateManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected final Viewer
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDo
(int type) void
deleteSaved
(String namelike) getContext
(String saveName) static int
getObjectIdFromName
(String name) getSavedCoordinates
(String saveName) getSavedState
(String saveName) getSavedStructure
(String saveName) getSavedUnitCell
(String saveName) int
getUndoRedoState
(int tok) static String
getVariableList
(Map<String, SV> htVariables, int nMax, boolean withSites, boolean definedOnly) popStack
(int type) Remove the last item on the specified stack, and save the current state to the other stack provided that state is not null.void
Reset lighting to Jmol defaultsboolean
restoreBonds
(String saveName) boolean
restoreOrientation
(String saveName, float timeSeconds, boolean isAll) boolean
restoreScene
(String saveName, float timeSeconds) boolean
restoreSelection
(String saveName) boolean
restoreUnitCell
(String saveName) void
void
saveContext
(String saveName, Object context) void
saveCoordinates
(String saveName, BS bsSelected) void
saveOrientation
(String saveName, float[] pymolView) void
void
saveSelection
(String saveName, BS bsSelected) void
void
saveStructure
(String saveName) void
saveUnitCell
(String saveName) void
setUndoMax
(int n) static String
-
Field Details
-
OBJ_BACKGROUND
public static final int OBJ_BACKGROUND- See Also:
-
OBJ_AXIS1
public static final int OBJ_AXIS1- See Also:
-
OBJ_AXIS2
public static final int OBJ_AXIS2- See Also:
-
OBJ_AXIS3
public static final int OBJ_AXIS3- See Also:
-
OBJ_BOUNDBOX
public static final int OBJ_BOUNDBOX- See Also:
-
OBJ_UNITCELL
public static final int OBJ_UNITCELL- See Also:
-
OBJ_FRANK
public static final int OBJ_FRANK- See Also:
-
OBJ_MAX
public static final int OBJ_MAX- See Also:
-
vwr
-
saved
-
-
Method Details
-
getVariableList
-
getObjectIdFromName
-
resetLighting
public void resetLighting()Reset lighting to Jmol defaults -
listSavedStates
-
deleteSaved
-
saveSelection
-
restoreSelection
-
saveUnitCell
-
getSavedUnitCell
-
restoreUnitCell
-
saveState
-
getSavedState
-
popStack
Remove the last item on the specified stack, and save the current state to the other stack provided that state is not null.- Parameters:
type
-- Returns:
- state to run
-
saveStructure
-
getSavedStructure
-
saveCoordinates
-
getSavedCoordinates
-
saveScene
-
restoreScene
-
saveOrientation
-
restoreOrientation
-
saveContext
-
getContext
-
saveBonds
-
restoreBonds
-
varClip
-
getUndoMax
public int getUndoMax() -
setUndoMax
public void setUndoMax(int n) -
getUndoRedoState
-
canDo
public boolean canDo(int type) -
getUndoInfo
-