org.jmol.viewer
Class StateManager.GlobalSettings

java.lang.Object
  extended by org.jmol.viewer.StateManager.GlobalSettings
Enclosing class:
StateManager

 class StateManager.GlobalSettings
extends java.lang.Object


Field Summary
(package private)  boolean allowEmbeddedScripts
           
(package private)  boolean allowKeyStrokes
           
(package private)  boolean allowRotateSelected
           
(package private)  int ambientPercent
           
(package private)  int animationFps
           
(package private)  boolean antialiasDisplay
           
(package private)  boolean antialiasImages
           
(package private)  boolean antialiasTranslucent
           
(package private)  boolean appendNew
           
(package private)  java.lang.String appletProxy
           
(package private)  boolean applySymmetryToBonds
           
(package private)  boolean atomPicking
           
(package private)  java.lang.String atomTypes
           
(package private)  boolean autoBond
           
(package private)  boolean autoFps
           
(package private)  boolean autoLoadOrientation
           
(package private)  int axesMode
           
(package private)  boolean axesOrientationRasmol
           
(package private)  float axesScale
           
(package private)  java.lang.String backgroundImageFileName
           
(package private)  boolean bondModeOr
           
(package private)  boolean bondPicking
           
(package private)  short bondRadiusMilliAngstroms
           
(package private)  float bondTolerance
           
(package private)  float cameraDepth
           
(package private)  boolean cartoonRockets
           
(package private)  boolean chainCaseSensitive
           
(package private)  java.lang.String dataSeparator
           
(package private)  boolean debugScript
           
(package private)  java.lang.String defaultAngleLabel
           
(package private)  java.lang.String defaultDirectory
           
(package private)  java.lang.String defaultDistanceLabel
           
(package private)  float defaultDrawArrowScale
           
(package private)  java.lang.String defaultLoadScript
           
(package private)  java.lang.String defaultTorsionLabel
           
(package private)  float defaultTranslucent
           
(package private)  int delayMaximumMs
           
(package private)  int diffusePercent
           
(package private)  float dipoleScale
           
(package private)  boolean disablePopupMenu
           
(package private)  boolean displayCellParameters
           
(package private)  int dotDensity
           
(package private)  boolean dotsSelectedOnly
           
(package private)  boolean dotSurface
           
(package private)  boolean drawPicking
           
(package private)  boolean dynamicMeasurements
           
(package private)  boolean ellipsoidArcs
           
(package private)  boolean ellipsoidAxes
           
(package private)  float ellipsoidAxisDiameter
           
(package private)  boolean ellipsoidBall
           
(package private)  int ellipsoidDotCount
           
(package private)  boolean ellipsoidDots
           
(package private)  boolean ellipsoidFill
           
(package private)  boolean fontCaching
           
(package private)  boolean fontScaling
           
(package private)  boolean forceAutoBond
           
(package private)  boolean greyscaleRendering
           
(package private)  float hbondsAngleMinimum
           
(package private)  boolean hbondsBackbone
           
(package private)  float hbondsDistanceMaximum
           
(package private)  boolean hbondsSolid
           
(package private)  int helixStep
           
(package private)  java.lang.String helpPath
           
(package private)  int hermiteLevel
           
(package private)  boolean hideNameInPopup
           
(package private)  boolean hideNavigationPoint
           
(package private)  boolean highResolutionFlag
           
(package private)  int hoverDelayMs
           
(package private)  java.util.Hashtable htParameterValues
           
(package private)  java.util.Hashtable htPropertyFlags
           
(package private)  java.util.Hashtable htPropertyFlagsRemoved
           
(package private)  java.util.Hashtable htUserVariables
           
(package private)  boolean imageState
           
(package private)  char inlineNewlineChar
           
(package private)  boolean isosurfacePropertySmoothing
           
(package private)  boolean justifyMeasurements
           
(package private)  float loadAtomDataTolerance
           
(package private)  java.lang.String loadFormat
           
(package private)  boolean measureAllModels
           
private  java.lang.String measureDistanceUnits
           
(package private)  boolean measurementLabels
           
(package private)  boolean messageStyleChime
           
(package private)  float minBondDistance
           
(package private)  float minimizationCriterion
           
(package private)  boolean minimizationRefresh
           
(package private)  int minimizationSteps
           
(package private)  byte modeMultipleBond
           
(package private)  boolean navigateSurface
           
(package private)  boolean navigationMode
           
(package private)  boolean navigationPeriodic
           
(package private)  float navigationSpeed
           
(package private)  int[] objColors
           
(package private)  int[] objMad
           
(package private)  boolean[] objStateOn
           
(package private)  boolean pdbGetHeader
           
(package private)  boolean pdbSequential
           
(package private)  int percentVdwAtom
           
(package private)  boolean perspectiveDepth
           
(package private)  int pickingSpinRate
           
(package private)  java.lang.String pickLabel
           
(package private)  float pointGroupDistanceTolerance
           
(package private)  float pointGroupLinearTolerance
           
(package private)  java.lang.String propertyColorScheme
           
private  javax.vecmath.Point3f ptDefaultLattice
           
(package private)  java.lang.String quaternionFrame
           
(package private)  boolean rangeSelected
           
(package private)  boolean rasmolHeteroSetting
           
(package private)  boolean rasmolHydrogenSetting
           
(package private)  int ribbonAspectRatio
           
(package private)  boolean ribbonBorder
           
(package private)  boolean rocketBarrels
           
(package private)  int scriptDelay
           
(package private)  boolean selectAllModels
           
(package private)  float sheetSmoothing
           
(package private)  boolean showHiddenSelectionHalos
           
(package private)  boolean showHydrogens
           
(package private)  boolean showKeyStrokes
           
(package private)  boolean showMeasurements
           
(package private)  boolean showMultipleBonds
           
(package private)  boolean showNavigationPointAlways
           
(package private)  boolean smartAromatic
           
(package private)  boolean solventOn
           
(package private)  float solventProbeRadius
           
(package private)  boolean specular
           
(package private)  int specularExponent
           
(package private)  int specularPercent
           
(package private)  int specularPower
           
(package private)  boolean ssbondsBackbone
           
(package private)  boolean statusReporting
           
(package private)  java.lang.String stereoState
           
(package private)  int strandCountForMeshRibbon
           
(package private)  int strandCountForStrands
           
(package private)  boolean testFlag1
           
(package private)  boolean testFlag2
           
(package private)  boolean testFlag3
           
(package private)  boolean testFlag4
           
(package private)  boolean traceAlpha
           
(package private)  boolean useMinimizationThread
           
(package private)  boolean useNumberLocalization
           
(package private)  float vectorScale
           
(package private)  float vibrationPeriod
           
(package private)  float vibrationScale
           
(package private)  float visualRange
           
(package private)  boolean wireframeRotation
           
(package private)  boolean zeroBasedXyzRasmol
           
(package private)  boolean zoomLarge
           
(package private)  boolean zShade
           
 
Constructor Summary
StateManager.GlobalSettings()
           
 
Method Summary
(package private)  void clear()
           
private  boolean doReportProperty(java.lang.String name)
           
(package private)  java.lang.String getAllSettings(java.lang.String prefix)
           
(package private)  javax.vecmath.Point3f getDefaultLattice()
           
(package private)  java.lang.String getLoadState()
          these settings are determined when the file is loaded and are kept even though they might later change.
(package private)  java.lang.String getMeasureDistanceUnits()
           
(package private)  ScriptVariable getOrSetNewVariable(java.lang.String name, boolean doSet)
           
(package private)  java.lang.Object getParameter(java.lang.String name)
          strictly a getter -- returns "" if not found
(package private)  java.lang.Object getParameter(java.lang.String name, boolean asVariable)
           
(package private)  java.lang.String getParameterEscaped(java.lang.String name, int nMax)
           
(package private)  java.lang.String getSpecularState()
           
(package private)  java.lang.String getState(java.lang.StringBuffer sfunc)
           
(package private)  ScriptVariable getUserVariable(java.lang.String name)
           
(package private)  java.lang.String getVariableList()
           
(package private)  java.lang.String getWindowState(java.lang.StringBuffer sfunc)
           
(package private)  boolean isJmolVariable(java.lang.String key)
           
(package private)  void registerAllValues(StateManager.GlobalSettings g)
           
(package private)  void removeJmolParameter(java.lang.String key)
           
(package private)  void removeUserVariable(java.lang.String key)
           
private  void resetParameterStringValue(java.lang.String name, StateManager.GlobalSettings g)
           
(package private)  void setDefaultLattice(javax.vecmath.Point3f ptLattice)
           
(package private)  void setMeasureDistanceUnits(java.lang.String units)
           
(package private)  void setParameterValue(java.lang.String name, boolean value)
           
(package private)  void setParameterValue(java.lang.String name, float value)
           
(package private)  void setParameterValue(java.lang.String name, int value)
           
(package private)  void setParameterValue(java.lang.String name, java.lang.String value)
           
(package private)  ScriptVariable setUserVariable(java.lang.String key, ScriptVariable var)
           
(package private)  void unsetUserVariable(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

htUserVariables

java.util.Hashtable htUserVariables

ambientPercent

int ambientPercent

diffusePercent

int diffusePercent

specular

boolean specular

specularExponent

int specularExponent

specularPercent

int specularPercent

specularPower

int specularPower

allowEmbeddedScripts

boolean allowEmbeddedScripts

appendNew

boolean appendNew

appletProxy

java.lang.String appletProxy

applySymmetryToBonds

boolean applySymmetryToBonds

atomTypes

java.lang.String atomTypes

autoBond

boolean autoBond

autoLoadOrientation

boolean autoLoadOrientation

bondRadiusMilliAngstroms

short bondRadiusMilliAngstroms

bondTolerance

float bondTolerance

defaultLoadScript

java.lang.String defaultLoadScript

defaultDirectory

java.lang.String defaultDirectory

forceAutoBond

boolean forceAutoBond

inlineNewlineChar

char inlineNewlineChar

loadFormat

java.lang.String loadFormat

minBondDistance

float minBondDistance

pdbGetHeader

boolean pdbGetHeader

pdbSequential

boolean pdbSequential

percentVdwAtom

int percentVdwAtom

smartAromatic

boolean smartAromatic

zeroBasedXyzRasmol

boolean zeroBasedXyzRasmol

ptDefaultLattice

private final javax.vecmath.Point3f ptDefaultLattice

allowRotateSelected

boolean allowRotateSelected

perspectiveDepth

boolean perspectiveDepth

visualRange

float visualRange

solventOn

boolean solventOn

defaultAngleLabel

java.lang.String defaultAngleLabel

defaultDistanceLabel

java.lang.String defaultDistanceLabel

defaultTorsionLabel

java.lang.String defaultTorsionLabel

justifyMeasurements

boolean justifyMeasurements

measureAllModels

boolean measureAllModels

minimizationSteps

int minimizationSteps

minimizationRefresh

boolean minimizationRefresh

minimizationCriterion

float minimizationCriterion

antialiasDisplay

boolean antialiasDisplay

antialiasImages

boolean antialiasImages

imageState

boolean imageState

antialiasTranslucent

boolean antialiasTranslucent

displayCellParameters

boolean displayCellParameters

dotsSelectedOnly

boolean dotsSelectedOnly

dotSurface

boolean dotSurface

dotDensity

int dotDensity

dynamicMeasurements

boolean dynamicMeasurements

greyscaleRendering

boolean greyscaleRendering

isosurfacePropertySmoothing

boolean isosurfacePropertySmoothing

showHiddenSelectionHalos

boolean showHiddenSelectionHalos

allowKeyStrokes

boolean allowKeyStrokes

showKeyStrokes

boolean showKeyStrokes

showMeasurements

boolean showMeasurements

zoomLarge

boolean zoomLarge

zShade

boolean zShade

backgroundImageFileName

java.lang.String backgroundImageFileName

bondModeOr

boolean bondModeOr

hbondsBackbone

boolean hbondsBackbone

hbondsAngleMinimum

float hbondsAngleMinimum

hbondsDistanceMaximum

float hbondsDistanceMaximum

hbondsSolid

boolean hbondsSolid

modeMultipleBond

byte modeMultipleBond

showHydrogens

boolean showHydrogens

showMultipleBonds

boolean showMultipleBonds

ssbondsBackbone

boolean ssbondsBackbone

cartoonRockets

boolean cartoonRockets

chainCaseSensitive

boolean chainCaseSensitive

hermiteLevel

int hermiteLevel

highResolutionFlag

boolean highResolutionFlag

rangeSelected

boolean rangeSelected

rasmolHydrogenSetting

boolean rasmolHydrogenSetting

rasmolHeteroSetting

boolean rasmolHeteroSetting

ribbonAspectRatio

int ribbonAspectRatio

ribbonBorder

boolean ribbonBorder

rocketBarrels

boolean rocketBarrels

sheetSmoothing

float sheetSmoothing

traceAlpha

boolean traceAlpha

animationFps

int animationFps

autoFps

boolean autoFps

axesOrientationRasmol

boolean axesOrientationRasmol

axesMode

int axesMode

axesScale

float axesScale

cameraDepth

float cameraDepth

dataSeparator

java.lang.String dataSeparator

debugScript

boolean debugScript

defaultDrawArrowScale

float defaultDrawArrowScale

defaultTranslucent

float defaultTranslucent

delayMaximumMs

int delayMaximumMs

dipoleScale

float dipoleScale

disablePopupMenu

boolean disablePopupMenu

drawPicking

boolean drawPicking

bondPicking

boolean bondPicking

atomPicking

boolean atomPicking

helpPath

java.lang.String helpPath

fontScaling

boolean fontScaling

fontCaching

boolean fontCaching

helixStep

int helixStep

hideNameInPopup

boolean hideNameInPopup

hoverDelayMs

int hoverDelayMs

loadAtomDataTolerance

float loadAtomDataTolerance

measurementLabels

boolean measurementLabels

messageStyleChime

boolean messageStyleChime

pickingSpinRate

int pickingSpinRate

pickLabel

java.lang.String pickLabel

pointGroupDistanceTolerance

float pointGroupDistanceTolerance

pointGroupLinearTolerance

float pointGroupLinearTolerance

propertyColorScheme

java.lang.String propertyColorScheme

quaternionFrame

java.lang.String quaternionFrame

solventProbeRadius

float solventProbeRadius

scriptDelay

int scriptDelay

selectAllModels

boolean selectAllModels

statusReporting

boolean statusReporting

strandCountForStrands

int strandCountForStrands

strandCountForMeshRibbon

int strandCountForMeshRibbon

useMinimizationThread

boolean useMinimizationThread

useNumberLocalization

boolean useNumberLocalization

vectorScale

float vectorScale

vibrationPeriod

float vibrationPeriod

vibrationScale

float vibrationScale

wireframeRotation

boolean wireframeRotation

hideNavigationPoint

boolean hideNavigationPoint

navigationMode

boolean navigationMode

navigateSurface

boolean navigateSurface

navigationPeriodic

boolean navigationPeriodic

navigationSpeed

float navigationSpeed

showNavigationPointAlways

boolean showNavigationPointAlways

stereoState

java.lang.String stereoState

objColors

int[] objColors

objStateOn

boolean[] objStateOn

objMad

int[] objMad

ellipsoidAxes

boolean ellipsoidAxes

ellipsoidDots

boolean ellipsoidDots

ellipsoidArcs

boolean ellipsoidArcs

ellipsoidFill

boolean ellipsoidFill

ellipsoidBall

boolean ellipsoidBall

ellipsoidDotCount

int ellipsoidDotCount

ellipsoidAxisDiameter

float ellipsoidAxisDiameter

testFlag1

boolean testFlag1

testFlag2

boolean testFlag2

testFlag3

boolean testFlag3

testFlag4

boolean testFlag4

measureDistanceUnits

private java.lang.String measureDistanceUnits

htParameterValues

java.util.Hashtable htParameterValues

htPropertyFlags

java.util.Hashtable htPropertyFlags

htPropertyFlagsRemoved

java.util.Hashtable htPropertyFlagsRemoved
Constructor Detail

StateManager.GlobalSettings

StateManager.GlobalSettings()
Method Detail

clear

void clear()

getLoadState

java.lang.String getLoadState()
these settings are determined when the file is loaded and are kept even though they might later change. So we list them here and ALSO let them be defined in the settings. 10.9.98 missed this.

Returns:
script command

setDefaultLattice

void setDefaultLattice(javax.vecmath.Point3f ptLattice)

getDefaultLattice

javax.vecmath.Point3f getDefaultLattice()

getWindowState

java.lang.String getWindowState(java.lang.StringBuffer sfunc)

getSpecularState

java.lang.String getSpecularState()

setMeasureDistanceUnits

void setMeasureDistanceUnits(java.lang.String units)

getMeasureDistanceUnits

java.lang.String getMeasureDistanceUnits()

isJmolVariable

boolean isJmolVariable(java.lang.String key)

resetParameterStringValue

private void resetParameterStringValue(java.lang.String name,
                                       StateManager.GlobalSettings g)

setParameterValue

void setParameterValue(java.lang.String name,
                       boolean value)

setParameterValue

void setParameterValue(java.lang.String name,
                       int value)

setParameterValue

void setParameterValue(java.lang.String name,
                       float value)

setParameterValue

void setParameterValue(java.lang.String name,
                       java.lang.String value)

removeJmolParameter

void removeJmolParameter(java.lang.String key)

setUserVariable

ScriptVariable setUserVariable(java.lang.String key,
                               ScriptVariable var)

unsetUserVariable

void unsetUserVariable(java.lang.String key)

removeUserVariable

void removeUserVariable(java.lang.String key)

getUserVariable

ScriptVariable getUserVariable(java.lang.String name)

getParameterEscaped

java.lang.String getParameterEscaped(java.lang.String name,
                                     int nMax)

getParameter

java.lang.Object getParameter(java.lang.String name)
strictly a getter -- returns "" if not found

Parameters:
name -
Returns:
a Integer, Float, String, BitSet, or Variable

getOrSetNewVariable

ScriptVariable getOrSetNewVariable(java.lang.String name,
                                   boolean doSet)
Parameters:
name -
doSet -
Returns:
a new variable if possible, but null if "_xxx"

getParameter

java.lang.Object getParameter(java.lang.String name,
                              boolean asVariable)

getAllSettings

java.lang.String getAllSettings(java.lang.String prefix)

getState

java.lang.String getState(java.lang.StringBuffer sfunc)

doReportProperty

private boolean doReportProperty(java.lang.String name)

registerAllValues

void registerAllValues(StateManager.GlobalSettings g)

getVariableList

java.lang.String getVariableList()