org.jmol.viewer

Class StateManager.GlobalSettings

class StateManager.GlobalSettings extends Object

Field Summary
booleanallowEmbeddedScripts
booleanallowRotateSelected
intambientPercent
intanimationFps
booleanantialiasDisplay
booleanantialiasImages
booleanantialiasTranslucent
booleanappendNew
StringappletProxy
booleanapplySymmetryToBonds
booleanatomPicking
booleanautoBond
booleanautoFps
intaxesMode
booleanaxesOrientationRasmol
floataxesScale
StringbackgroundImageFileName
booleanbondModeOr
booleanbondPicking
shortbondRadiusMilliAngstroms
floatbondTolerance
floatcameraDepth
booleancartoonRockets
booleanchainCaseSensitive
StringdataSeparator
booleandebugScript
StringdefaultAngleLabel
StringdefaultDirectory
StringdefaultDistanceLabel
floatdefaultDrawArrowScale
StringdefaultLoadScript
StringdefaultTorsionLabel
floatdefaultTranslucent
intdelayMaximumMs
intdiffusePercent
floatdipoleScale
booleandisablePopupMenu
booleandisplayCellParameters
intdotDensity
booleandotsSelectedOnly
booleandotSurface
booleandrawPicking
booleandynamicMeasurements
booleanellipsoidArcs
booleanellipsoidAxes
floatellipsoidAxisDiameter
booleanellipsoidBall
intellipsoidDotCount
booleanellipsoidDots
booleanellipsoidFill
booleanfontScaling
booleanforceAutoBond
booleangreyscaleRendering
booleanhbondsBackbone
booleanhbondsSolid
StringhelpPath
inthermiteLevel
booleanhideNameInPopup
booleanhideNavigationPoint
booleanhighResolutionFlag
inthoverDelayMs
HashtablehtParameterValues
HashtablehtPropertyFlags
HashtablehtPropertyFlagsRemoved
HashtablehtUserVariables
charinlineNewlineChar
booleanisosurfacePropertySmoothing
booleanjustifyMeasurements
HashtablelistVariables
StringloadFormat
booleanmeasureAllModels
StringmeasureDistanceUnits
booleanmeasurementLabels
booleanmessageStyleChime
floatminBondDistance
floatminimizationCriterion
booleanminimizationRefresh
intminimizationSteps
bytemodeMultipleBond
booleannavigationMode
booleannavigationPeriodic
floatnavigationSpeed
int[]objColors
int[]objMad
boolean[]objStateOn
booleanpdbGetHeader
booleanpdbSequential
intpercentVdwAtom
booleanperspectiveDepth
intpickingSpinRate
StringpickLabel
floatpointGroupDistanceTolerance
floatpointGroupLinearTolerance
StringpropertyColorScheme
Point3fptDefaultLattice
StringquaternionFrame
booleanrangeSelected
booleanrasmolHeteroSetting
booleanrasmolHydrogenSetting
intribbonAspectRatio
booleanribbonBorder
booleanrocketBarrels
intscriptDelay
booleanselectAllModels
floatsheetSmoothing
booleanshowHiddenSelectionHalos
booleanshowHydrogens
booleanshowMeasurements
booleanshowMultipleBonds
booleanshowNavigationPointAlways
booleansmartAromatic
booleansolventOn
floatsolventProbeRadius
booleanspecular
intspecularExponent
intspecularPercent
intspecularPower
booleanssbondsBackbone
booleanstatusReporting
intstrandCountForMeshRibbon
intstrandCountForStrands
booleantestFlag1
booleantestFlag2
booleantestFlag3
booleantestFlag4
booleantraceAlpha
static StringunreportedProperties
booleanuseNumberLocalization
floatvectorScale
floatvibrationPeriod
floatvibrationScale
floatvisualRange
booleanwireframeRotation
booleanzeroBasedXyzRasmol
booleanzoomLarge
booleanzShade
Constructor Summary
GlobalSettings()
Method Summary
voidclear()
booleandoReportProperty(String name)
StringescapeUserVariable(String name)
StringescapeVariable(String name, Object value)
StringgetAllSettings(String prefix)
int[]getDefaultLatticeArray()
Point3fgetDefaultLatticePoint()
ObjectgetListVariable(String name, Object value)
StringgetLoadState()
these settings are determined when the file is loaded and are kept even though they might later change.
StringgetMeasureDistanceUnits()
ObjectgetParameter(String name)
StringgetParameterEscaped(String name, int nMax)
StringgetSpecularState()
StringgetState(StringBuffer sfunc)
ObjectgetUserParameterValue(String key)
StringgetWindowState(StringBuffer sfunc)
booleanisJmolVariable(String key)
voidregisterAllValues(StateManager.GlobalSettings g)
voidremoveJmolParameter(String key)
voidremoveUserVariable(String key)
voidresetParameterStringValue(String name, StateManager.GlobalSettings g)
voidsetDefaultLattice(Point3f ptLattice)
voidsetListVariable(String name, Token value)
voidsetMeasureDistanceUnits(String units)
voidsetParameterValue(String name, boolean value)
voidsetParameterValue(String name, int value)
voidsetParameterValue(String name, float value)
voidsetParameterValue(String name, String value)
voidsetUserVariable(String key, Token value)

Field Detail

allowEmbeddedScripts

boolean allowEmbeddedScripts

allowRotateSelected

boolean allowRotateSelected

ambientPercent

int ambientPercent

animationFps

int animationFps

antialiasDisplay

boolean antialiasDisplay

antialiasImages

boolean antialiasImages

antialiasTranslucent

boolean antialiasTranslucent

appendNew

boolean appendNew

appletProxy

String appletProxy

applySymmetryToBonds

boolean applySymmetryToBonds

atomPicking

boolean atomPicking

autoBond

boolean autoBond

autoFps

boolean autoFps

axesMode

int axesMode

axesOrientationRasmol

boolean axesOrientationRasmol

axesScale

float axesScale

backgroundImageFileName

String backgroundImageFileName

bondModeOr

boolean bondModeOr

bondPicking

boolean bondPicking

bondRadiusMilliAngstroms

short bondRadiusMilliAngstroms

bondTolerance

float bondTolerance

cameraDepth

float cameraDepth

cartoonRockets

boolean cartoonRockets

chainCaseSensitive

boolean chainCaseSensitive

dataSeparator

String dataSeparator

debugScript

boolean debugScript

defaultAngleLabel

String defaultAngleLabel

defaultDirectory

String defaultDirectory

defaultDistanceLabel

String defaultDistanceLabel

defaultDrawArrowScale

float defaultDrawArrowScale

defaultLoadScript

String defaultLoadScript

defaultTorsionLabel

String defaultTorsionLabel

defaultTranslucent

float defaultTranslucent

delayMaximumMs

int delayMaximumMs

diffusePercent

int diffusePercent

dipoleScale

float dipoleScale

disablePopupMenu

boolean disablePopupMenu

displayCellParameters

boolean displayCellParameters

dotDensity

int dotDensity

dotsSelectedOnly

boolean dotsSelectedOnly

dotSurface

boolean dotSurface

drawPicking

boolean drawPicking

dynamicMeasurements

boolean dynamicMeasurements

ellipsoidArcs

boolean ellipsoidArcs

ellipsoidAxes

boolean ellipsoidAxes

ellipsoidAxisDiameter

float ellipsoidAxisDiameter

ellipsoidBall

boolean ellipsoidBall

ellipsoidDotCount

int ellipsoidDotCount

ellipsoidDots

boolean ellipsoidDots

ellipsoidFill

boolean ellipsoidFill

fontScaling

boolean fontScaling

forceAutoBond

boolean forceAutoBond

greyscaleRendering

boolean greyscaleRendering

hbondsBackbone

boolean hbondsBackbone

hbondsSolid

boolean hbondsSolid

helpPath

String helpPath

hermiteLevel

int hermiteLevel

hideNameInPopup

boolean hideNameInPopup

hideNavigationPoint

boolean hideNavigationPoint

highResolutionFlag

boolean highResolutionFlag

hoverDelayMs

int hoverDelayMs

htParameterValues

Hashtable htParameterValues

htPropertyFlags

Hashtable htPropertyFlags

htPropertyFlagsRemoved

Hashtable htPropertyFlagsRemoved

htUserVariables

Hashtable htUserVariables

inlineNewlineChar

char inlineNewlineChar

isosurfacePropertySmoothing

boolean isosurfacePropertySmoothing

justifyMeasurements

boolean justifyMeasurements

listVariables

Hashtable listVariables

loadFormat

String loadFormat

measureAllModels

boolean measureAllModels

measureDistanceUnits

private String measureDistanceUnits

measurementLabels

boolean measurementLabels

messageStyleChime

boolean messageStyleChime

minBondDistance

float minBondDistance

minimizationCriterion

float minimizationCriterion

minimizationRefresh

boolean minimizationRefresh

minimizationSteps

int minimizationSteps

modeMultipleBond

byte modeMultipleBond

navigationMode

boolean navigationMode

navigationPeriodic

boolean navigationPeriodic

navigationSpeed

float navigationSpeed

objColors

int[] objColors

objMad

int[] objMad

objStateOn

boolean[] objStateOn

pdbGetHeader

boolean pdbGetHeader

pdbSequential

boolean pdbSequential

percentVdwAtom

int percentVdwAtom

perspectiveDepth

boolean perspectiveDepth

pickingSpinRate

int pickingSpinRate

pickLabel

String pickLabel

pointGroupDistanceTolerance

float pointGroupDistanceTolerance

pointGroupLinearTolerance

float pointGroupLinearTolerance

propertyColorScheme

String propertyColorScheme

ptDefaultLattice

private final Point3f ptDefaultLattice

quaternionFrame

String quaternionFrame

rangeSelected

boolean rangeSelected

rasmolHeteroSetting

boolean rasmolHeteroSetting

rasmolHydrogenSetting

boolean rasmolHydrogenSetting

ribbonAspectRatio

int ribbonAspectRatio

ribbonBorder

boolean ribbonBorder

rocketBarrels

boolean rocketBarrels

scriptDelay

int scriptDelay

selectAllModels

boolean selectAllModels

sheetSmoothing

float sheetSmoothing

showHiddenSelectionHalos

boolean showHiddenSelectionHalos

showHydrogens

boolean showHydrogens

showMeasurements

boolean showMeasurements

showMultipleBonds

boolean showMultipleBonds

showNavigationPointAlways

boolean showNavigationPointAlways

smartAromatic

boolean smartAromatic

solventOn

boolean solventOn

solventProbeRadius

float solventProbeRadius

specular

boolean specular

specularExponent

int specularExponent

specularPercent

int specularPercent

specularPower

int specularPower

ssbondsBackbone

boolean ssbondsBackbone

statusReporting

boolean statusReporting

strandCountForMeshRibbon

int strandCountForMeshRibbon

strandCountForStrands

int strandCountForStrands

testFlag1

boolean testFlag1

testFlag2

boolean testFlag2

testFlag3

boolean testFlag3

testFlag4

boolean testFlag4

traceAlpha

boolean traceAlpha

unreportedProperties

static final String unreportedProperties

useNumberLocalization

boolean useNumberLocalization

vectorScale

float vectorScale

vibrationPeriod

float vibrationPeriod

vibrationScale

float vibrationScale

visualRange

float visualRange

wireframeRotation

boolean wireframeRotation

zeroBasedXyzRasmol

boolean zeroBasedXyzRasmol

zoomLarge

boolean zoomLarge

zShade

boolean zShade

Constructor Detail

GlobalSettings

GlobalSettings()

Method Detail

clear

void clear()

doReportProperty

private boolean doReportProperty(String name)

escapeUserVariable

private String escapeUserVariable(String name)

escapeVariable

private String escapeVariable(String name, Object value)

getAllSettings

String getAllSettings(String prefix)

getDefaultLatticeArray

int[] getDefaultLatticeArray()

getDefaultLatticePoint

Point3f getDefaultLatticePoint()

getListVariable

Object getListVariable(String name, Object value)

getLoadState

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

getMeasureDistanceUnits

String getMeasureDistanceUnits()

getParameter

Object getParameter(String name)

getParameterEscaped

String getParameterEscaped(String name, int nMax)

getSpecularState

String getSpecularState()

getState

String getState(StringBuffer sfunc)

getUserParameterValue

Object getUserParameterValue(String key)

getWindowState

String getWindowState(StringBuffer sfunc)

isJmolVariable

boolean isJmolVariable(String key)

registerAllValues

void registerAllValues(StateManager.GlobalSettings g)

removeJmolParameter

void removeJmolParameter(String key)

removeUserVariable

void removeUserVariable(String key)

resetParameterStringValue

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

setDefaultLattice

void setDefaultLattice(Point3f ptLattice)

setListVariable

void setListVariable(String name, Token value)

setMeasureDistanceUnits

void setMeasureDistanceUnits(String units)

setParameterValue

void setParameterValue(String name, boolean value)

setParameterValue

void setParameterValue(String name, int value)

setParameterValue

void setParameterValue(String name, float value)

setParameterValue

void setParameterValue(String name, String value)

setUserVariable

void setUserVariable(String key, Token value)