Package org.jmol.popup
Class JmolPopup
java.lang.Object
org.jmol.popup.GenericPopup
org.jmol.popup.JmolGenericPopup
org.jmol.popup.JmolPopup
- All Implemented Interfaces:
GenericMenuInterface
- Direct Known Subclasses:
AwtJmolPopup
,JSJmolPopup
An abstract popup class that is
instantiated for a given platform and
context as one of:
-- abstract JmolPopup -- AwtJmolPopup -- JSJmolPopup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private String
private javajs.util.Lst
<SC> private javajs.util.Lst
<String> private String
private String
private boolean
private javajs.util.Lst
<SC> private javajs.util.Lst
<SC> private javajs.util.Lst
<SC> private Object[][]
private int[]
private String
private boolean
private boolean
private boolean
private javajs.util.Lst
<String> private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private static final int
private static final int
private int
protected int
private String
private String
private String
private javajs.util.Lst
<SC> private final String[]
private String
private javajs.util.Lst
<SC> private javajs.util.Lst
<SC> protected javajs.util.Lst
<SC> private javajs.util.Lst
<SC> private javajs.util.Lst
<SC> private int
private javajs.util.Lst
<SC> protected static final int
protected static final int
protected static final int
protected static final int
protected int
private javajs.util.Lst
<SC> Fields inherited from class org.jmol.popup.JmolGenericPopup
frankPopup, menuText, nFrankList, vwr
Fields inherited from class org.jmol.popup.GenericPopup
allowSignedFeatures, buttonGroup, currentMenuItemId, helper, htCheckbox, htMenus, isApplet, isJS, isSigned, isTainted, isWebGL, menuName, popupMenu, strMenuStructure, thisPopup, thisx, thisy, updatingForShow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appCheckItem
(String item, SC newMenu) Opportunity to do something special with an item.void
appCheckSpecialMenu
(String item, SC subMenu, String word) Opportunity to do something special with a given submenu is createdprotected String
appGetMenuAsString
(String title) protected void
protected void
protected void
appUpdateSpecialCheckBoxValue
(SC item, String what, boolean TF) (1) setOption --> set setOption true or set setOption falseprivate int
augmentGroup3List
(SC menu, String type, boolean addSeparator) private boolean
checkBoolean
(String key) protected PopupResource
private String
getMenuText
(String key) protected String
getScriptForCallback
(SC source, String id, String script) protected String
getSpecialLabel
(String name, String text) menus or menu items with SPECIAL in their name are sent here for on-the-fly labelingprivate void
private String
private String
void
void
private void
setFrankMenu
(String id) private boolean
setSecStrucMenu
(SC menu, Map<String, Object> dssr) private boolean
setSpectraMenu
(SC menu, javajs.util.Lst<String> peaks) protected boolean
protected void
protected void
protected void
updateElementsComputedMenu
(javajs.util.BS elementsPresentBitSet) protected void
protected void
protected void
private int
updateGroup3List
(SC menu, String name) protected void
updateHeteroComputedMenu
(Map<String, String> htHetero) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
updateSurfMoComputedMenu
(Map<String, Object> moData) protected void
protected void
protected void
Methods inherited from class org.jmol.popup.JmolGenericPopup
appFixLabel, appGetBooleanProperty, appRunScript, appRunSpecialCheckBox, initialize, jpiGetMenuAsObject, jpiInitialize, jpiShow
Methods inherited from class org.jmol.popup.GenericPopup
addMenu, addMenuItem, addMenuItems, convertToMegabytes, doMenuCheckBoxCallback, doMenuClickCallback, getEntryIcon, getImageIcon, getUnknownCheckBoxScriptToRun, initSwing, jpiGetMenuAsString, menuAddSeparator, menuAddSubMenu, menuCheckBoxCallback, menuClickCallback, menuCreateCheckboxItem, menuCreateItem, menuEnable, menuFocusCallback, menuGetId, menuGetListPosition, menuNewSubMenu, menuRemoveAll, menuSetAutoscrolls, menuSetLabel, menuShowPopup, setText, show, updateButton, updateSignedAppletItems
-
Field Details
-
UPDATE_NEVER
protected static final int UPDATE_NEVER- See Also:
-
UPDATE_ALL
protected static final int UPDATE_ALL- See Also:
-
UPDATE_CONFIG
protected static final int UPDATE_CONFIG- See Also:
-
UPDATE_SHOW
protected static final int UPDATE_SHOW- See Also:
-
updateMode
protected int updateMode -
itemMax
private static final int itemMax- See Also:
-
titleWidthMax
private int titleWidthMax -
nullModelSetName
-
modelSetName
-
modelSetFileName
-
modelSetRoot
-
currentFrankId
-
configurationSelected
-
altlocs
-
frankList
-
modelSetInfo
-
modelInfo
-
NotPDB
-
PDBOnly
-
FileUnitOnly
-
FileMolOnly
-
UnitcellOnly
-
SingleModelOnly
-
FramesOnly
-
VibrationOnly
-
Special
-
SymmetryOnly
-
ChargesOnly
-
TemperatureOnly
-
fileHasUnitCell
private boolean fileHasUnitCell -
haveBFactors
private boolean haveBFactors -
haveCharges
private boolean haveCharges -
isLastFrame
private boolean isLastFrame -
isMultiConfiguration
private boolean isMultiConfiguration -
isMultiFrame
private boolean isMultiFrame -
isPDB
private boolean isPDB -
hasSymmetry
private boolean hasSymmetry -
isUnitCell
private boolean isUnitCell -
isVibration
private boolean isVibration -
isZapped
private boolean isZapped -
modelIndex
protected int modelIndex -
modelCount
private int modelCount -
ac
private int ac -
group3List
-
group3Counts
private int[] group3Counts -
cnmrPeaks
-
hnmrPeaks
-
MENUITEM_HEIGHT
private static final int MENUITEM_HEIGHT- See Also:
-
noZapped
-
-
Constructor Details
-
JmolPopup
public JmolPopup()
-
-
Method Details
-
jpiDispose
public void jpiDispose()- Specified by:
jpiDispose
in interfaceGenericMenuInterface
- Overrides:
jpiDispose
in classJmolGenericPopup
-
getBundle
- Specified by:
getBundle
in classJmolGenericPopup
-
showFrankMenu
protected boolean showFrankMenu()- Overrides:
showFrankMenu
in classJmolGenericPopup
-
jpiUpdateComputedMenus
public void jpiUpdateComputedMenus() -
updateMenus
protected void updateMenus() -
appCheckItem
Description copied from class:GenericPopup
Opportunity to do something special with an item.- Overrides:
appCheckItem
in classGenericPopup
- Parameters:
item
-newMenu
-
-
appGetMenuAsString
- Overrides:
appGetMenuAsString
in classGenericPopup
- Parameters:
title
-- Returns:
- null
-
getScriptForCallback
- Specified by:
getScriptForCallback
in classGenericPopup
-
appRestorePopupMenu
protected void appRestorePopupMenu()- Overrides:
appRestorePopupMenu
in classJmolGenericPopup
-
appUpdateSpecialCheckBoxValue
(1) setOption --> set setOption true or set setOption false- Specified by:
appUpdateSpecialCheckBoxValue
in classGenericPopup
- Parameters:
item
-what
- option to setTF
- true or false
-
setFrankMenu
-
checkBoolean
-
getViewerData
private void getViewerData() -
appCheckSpecialMenu
Description copied from class:GenericPopup
Opportunity to do something special with a given submenu is created- Overrides:
appCheckSpecialMenu
in classGenericPopup
- Parameters:
item
-subMenu
-word
-
-
appUpdateForShow
protected void appUpdateForShow()- Specified by:
appUpdateForShow
in classGenericPopup
-
updateFileMenu
protected void updateFileMenu() -
getMenuText
-
updateSelectMenu
protected void updateSelectMenu() -
updateElementsComputedMenu
protected void updateElementsComputedMenu(javajs.util.BS elementsPresentBitSet) -
updateSpectraMenu
protected void updateSpectraMenu() -
setSpectraMenu
-
updateHeteroComputedMenu
-
updateSurfMoComputedMenu
-
updateFileTypeDependentMenus
protected void updateFileTypeDependentMenus() -
updateSceneComputedMenu
protected void updateSceneComputedMenu() -
updatePDBResidueComputedMenus
protected void updatePDBResidueComputedMenus() -
setSecStrucMenu
-
updateGroup3List
-
augmentGroup3List
-
updateSYMMETRYComputedMenus
protected void updateSYMMETRYComputedMenus() -
updateSYMMETRYShowComputedMenu
protected void updateSYMMETRYShowComputedMenu() -
updateSYMMETRYSelectComputedMenu
protected void updateSYMMETRYSelectComputedMenu() -
updateFRAMESbyModelComputedMenu
protected void updateFRAMESbyModelComputedMenu() -
updateConfigurationComputedMenu
protected void updateConfigurationComputedMenu() -
updateModelSetComputedMenu
protected void updateModelSetComputedMenu() -
gti
-
gto
-
updateSpecialMenuItem
-
getSpecialLabel
menus or menu items with SPECIAL in their name are sent here for on-the-fly labeling- Parameters:
name
-text
-- Returns:
- revised text
-