public abstract class GenericPopup extends Object implements javajs.api.GenericMenuInterface, JmolAbstractMenu
Modifier and Type | Field and Description |
---|---|
private int |
aboutComputedMenuBaseCount |
private boolean |
allowSignedFeatures |
private String |
altlocs |
private javajs.util.List<Object> |
AppletOnly |
private int |
atomCount |
protected Object |
buttonGroup |
private javajs.util.List<Object> |
ChargesOnly |
private javajs.util.List<String> |
cnmrPeaks |
private String |
configurationSelected |
private String |
currentFrankId |
protected String |
currentMenuItemId |
private boolean |
fileHasUnitCell |
private javajs.util.List<Object> |
FileMolOnly |
private javajs.util.List<Object> |
FileUnitOnly |
private javajs.util.List<Object> |
FramesOnly |
private Object[][] |
frankList |
private Object |
frankPopup |
private int[] |
group3Counts |
private String |
group3List |
private boolean |
haveBFactors |
private boolean |
haveCharges |
private javajs.util.List<String> |
hnmrPeaks |
protected Map<String,Object> |
htCheckbox |
private Map<String,Object> |
htMenus |
private boolean |
isApplet |
private boolean |
isJS |
private boolean |
isLastFrame |
private boolean |
isMultiConfiguration |
private boolean |
isMultiFrame |
private boolean |
isPDB |
private boolean |
isSigned |
private boolean |
isSymmetry |
private boolean |
isUnitCell |
private boolean |
isVibration |
private boolean |
isZapped |
private int |
itemMax |
private static int |
MENUITEM_HEIGHT |
protected String |
menuName |
protected Properties |
menuText |
private int |
modelCount |
private int |
modelIndex |
private Map<String,Object> |
modelInfo |
private String |
modelSetFileName |
private Map<String,Object> |
modelSetInfo |
private String |
modelSetName |
private String |
modelSetRoot |
private int |
nFrankList |
private javajs.util.List<Object> |
NotPDB |
private String |
nullModelSetName |
private javajs.util.List<Object> |
PDBOnly |
private Object |
popupMenu |
private javajs.util.List<Object> |
SignedOnly |
private javajs.util.List<Object> |
SingleModelOnly |
private javajs.util.List<Object> |
Special |
protected String |
strMenuStructure |
private javajs.util.List<Object> |
SymmetryOnly |
private javajs.util.List<Object> |
TemperatureOnly |
protected Object |
thisPopup |
private int |
thisx |
private int |
thisy |
private int |
titleWidthMax |
private javajs.util.List<Object> |
UnitcellOnly |
private static int |
UPDATE_ALL |
private static int |
UPDATE_CONFIG |
protected static int |
UPDATE_NEVER |
private static int |
UPDATE_SHOW |
protected int |
updateMode |
private javajs.util.List<Object> |
VibrationOnly |
protected Viewer |
viewer |
Constructor and Description |
---|
GenericPopup() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addItemText(javajs.util.SB sb,
char type,
int level,
String name,
String label,
String script,
String flags) |
private Object |
addMenuItem(Object menuItem,
String entry) |
private void |
addMenuItems(String parentId,
String key,
Object menu,
PopupResource popupResourceBundle) |
private int |
augmentGroup3List(Object menu,
String type,
boolean addSeparator) |
private static boolean |
checkBoolean(Map<String,Object> info,
String key) |
protected void |
checkBoxStateChanged(Object source) |
private void |
checkForCheckBoxScript(Object item,
String what,
boolean TF) |
private boolean |
checkKey(String key) |
void |
checkMenuClick(Object source,
String script) |
protected void |
checkMenuClickGP(Object source,
String script) |
protected void |
checkMenuFocus(String name,
String cmd,
boolean isFocus) |
private void |
checkSpecialMenu(String item,
Object subMenu,
String word) |
private int |
convertToMegabytes(long num) |
protected String |
fixScript(String id,
String script) |
protected Object |
getEntryIcon(String[] ret)
used only by ModelKit
|
protected Object |
getImageIcon(String fileName)
modelkit menu only
|
private String |
getMenuText(String key) |
protected String |
getSpecialLabel(String name,
String text)
menus or menu items with SPECIAL in their name are sent here for on-the-fly labeling
|
private void |
getViewerData() |
private String |
gti(String s,
int n) |
private String |
gto(String s,
Object o) |
protected void |
initialize(Viewer viewer,
PopupResource bundle,
String title) |
void |
jpiDispose() |
Object |
jpiGetMenuAsObject() |
String |
jpiGetMenuAsString(String title) |
void |
jpiShow(int x,
int y) |
void |
jpiUpdateComputedMenus() |
private void |
rememberCheckbox(String key,
Object checkboxMenuItem) |
protected void |
restorePopupMenu() |
protected void |
setCheckBoxValue(Object item,
String what,
boolean TF)
(1) setOption --> set setOption true or set setOption false
|
private void |
setFrankMenu(String id) |
private boolean |
setSpectraMenu(Object menu,
javajs.util.List<String> peaks) |
private void |
show(int x,
int y,
boolean doPopup) |
private void |
updateAboutSubmenu() |
private void |
updateConfigurationComputedMenu() |
private void |
updateElementsComputedMenu(BS elementsPresentBitSet) |
private void |
updateFileMenu() |
private void |
updateFileTypeDependentMenus() |
private void |
updateForShow() |
private void |
updateFRAMESbyModelComputedMenu() |
private int |
updateGroup3List(Object menu,
String name) |
private void |
updateHeteroComputedMenu(Map<String,String> htHetero) |
private void |
updateLanguageSubmenu() |
private void |
updateModelSetComputedMenu() |
private void |
updatePDBComputedMenus() |
private void |
updateSceneComputedMenu() |
private void |
updateSelectMenu() |
private void |
updateSpectraMenu() |
private void |
updateSurfMoComputedMenu(Map<String,Object> moData) |
private void |
updateSYMMETRYComputedMenus() |
private void |
updateSYMMETRYSelectComputedMenu() |
private void |
updateSYMMETRYShowComputedMenu() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
menuAddButtonGroup, menuAddItem, menuAddSeparator, menuAddSubMenu, menuClearListeners, menuCreateCheckboxItem, menuCreateItem, menuCreatePopup, menuEnable, menuEnableItem, menuGetAsText, menuGetId, menuGetItemCount, menuGetParent, menuGetPosition, menuInsertSubMenu, menuNewSubMenu, menuRemoveAll, menuSetAutoscrolls, menuSetCheckBoxOption, menuSetCheckBoxState, menuSetCheckBoxValue, menuSetLabel, menuSetListeners, menuShowPopup, updateSpecialMenuItem
protected static final int UPDATE_NEVER
private static final int UPDATE_ALL
private static final int UPDATE_CONFIG
private static final int UPDATE_SHOW
protected Viewer viewer
protected Properties menuText
protected Object buttonGroup
protected String currentMenuItemId
protected String strMenuStructure
protected int updateMode
protected String menuName
private Object frankPopup
private Object popupMenu
protected Object thisPopup
private int nFrankList
private int itemMax
private int titleWidthMax
private int thisx
private int thisy
private String nullModelSetName
private String modelSetName
private String modelSetFileName
private String modelSetRoot
private String currentFrankId
private String configurationSelected
private String altlocs
private Object[][] frankList
private javajs.util.List<Object> NotPDB
private javajs.util.List<Object> PDBOnly
private javajs.util.List<Object> FileUnitOnly
private javajs.util.List<Object> FileMolOnly
private javajs.util.List<Object> UnitcellOnly
private javajs.util.List<Object> SingleModelOnly
private javajs.util.List<Object> FramesOnly
private javajs.util.List<Object> VibrationOnly
private javajs.util.List<Object> SymmetryOnly
private javajs.util.List<Object> SignedOnly
private javajs.util.List<Object> AppletOnly
private javajs.util.List<Object> ChargesOnly
private javajs.util.List<Object> TemperatureOnly
private javajs.util.List<Object> Special
private boolean allowSignedFeatures
private boolean isJS
private boolean fileHasUnitCell
private boolean haveBFactors
private boolean haveCharges
private boolean isApplet
private boolean isLastFrame
private boolean isMultiConfiguration
private boolean isMultiFrame
private boolean isPDB
private boolean isSigned
private boolean isSymmetry
private boolean isUnitCell
private boolean isVibration
private boolean isZapped
private int modelIndex
private int modelCount
private int atomCount
private int aboutComputedMenuBaseCount
private String group3List
private int[] group3Counts
private javajs.util.List<String> cnmrPeaks
private javajs.util.List<String> hnmrPeaks
private static final int MENUITEM_HEIGHT
public void jpiDispose()
jpiDispose
in interface javajs.api.GenericMenuInterface
public Object jpiGetMenuAsObject()
jpiGetMenuAsObject
in interface javajs.api.GenericMenuInterface
public String jpiGetMenuAsString(String title)
jpiGetMenuAsString
in interface javajs.api.GenericMenuInterface
public void jpiShow(int x, int y)
jpiShow
in interface javajs.api.GenericMenuInterface
public void jpiUpdateComputedMenus()
jpiUpdateComputedMenus
in interface javajs.api.GenericMenuInterface
protected Object getEntryIcon(String[] ret)
ret
- protected Object getImageIcon(String fileName)
fileName
- protected void checkBoxStateChanged(Object source)
protected static void addItemText(javajs.util.SB sb, char type, int level, String name, String label, String script, String flags)
protected void initialize(Viewer viewer, PopupResource bundle, String title)
protected void restorePopupMenu()
protected void setCheckBoxValue(Object item, String what, boolean TF)
item
- what
- option to setTF
- true or falseprivate void getViewerData()
private void updateFileTypeDependentMenus()
private void addMenuItems(String parentId, String key, Object menu, PopupResource popupResourceBundle)
private boolean checkKey(String key)
key
- public void checkMenuClick(Object source, String script)
checkMenuClick
in interface JmolAbstractMenu
private void updateFileMenu()
private void updateSelectMenu()
private void updateElementsComputedMenu(BS elementsPresentBitSet)
private void updateSpectraMenu()
private void updateSceneComputedMenu()
private void updatePDBComputedMenus()
private void updateSYMMETRYComputedMenus()
private void updateSYMMETRYShowComputedMenu()
private void updateSYMMETRYSelectComputedMenu()
private void updateFRAMESbyModelComputedMenu()
private void updateConfigurationComputedMenu()
private void updateModelSetComputedMenu()
private void updateAboutSubmenu()
private void updateLanguageSubmenu()
private int convertToMegabytes(long num)
private void updateForShow()
private void setFrankMenu(String id)
private void show(int x, int y, boolean doPopup)