org.jmol.popup
public class SimplePopup extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
SimplePopup.CheckboxMenuItemListener |
(package private) class |
SimplePopup.MenuItemListener |
Modifier and Type | Field and Description |
---|---|
private boolean |
allowSignedFeatures |
protected String |
altlocs |
protected List<Object> |
AppletOnly |
protected boolean |
asPopup |
protected int |
atomCount |
protected List<Object> |
ChargesOnly |
protected SimplePopup.CheckboxMenuItemListener |
cmil |
(package private) String |
currentMenuItemId |
protected Component |
display |
protected static boolean |
dumpList |
protected boolean |
fileHasUnitCell |
protected List<Object> |
FileMolOnly |
protected List<Object> |
FileUnitOnly |
protected List<Object> |
FramesOnly |
protected JPopupMenu |
frankPopup |
private ButtonGroup |
group |
protected boolean |
haveBFactors |
protected boolean |
haveCharges |
protected Map<String,JMenuItem> |
htCheckbox |
protected Map<String,Object> |
htMenus |
protected boolean |
isApplet |
private boolean |
isHorizontal |
protected boolean |
isLastFrame |
protected boolean |
isMultiConfiguration |
protected boolean |
isMultiFrame |
protected boolean |
isPDB |
protected boolean |
isSigned |
protected boolean |
isSymmetry |
protected boolean |
isUnitCell |
protected boolean |
isVibration |
protected boolean |
isZapped |
protected Properties |
menuText |
protected SimplePopup.MenuItemListener |
mil |
protected int |
modelCount |
protected int |
modelIndex |
protected Map<String,Object> |
modelInfo |
protected String |
modelSetFileName |
protected Map<String,Object> |
modelSetInfo |
protected String |
modelSetName |
protected String |
modelSetRoot |
protected List<Object> |
NotPDB |
protected String |
nullModelSetName |
protected List<Object> |
PDBOnly |
protected List<Object> |
SignedOnly |
protected List<Object> |
SingleModelOnly |
protected JPopupMenu |
swingPopup |
protected List<Object> |
SymmetryOnly |
protected List<Object> |
TemperatureOnly |
protected int |
thisx |
protected int |
thisy |
protected List<Object> |
UnitcellOnly |
(package private) static int |
UPDATE_ALL |
(package private) static int |
UPDATE_CONFIG |
(package private) static int |
UPDATE_SHOW |
(package private) int |
updateMode |
protected List<Object> |
VibrationOnly |
protected JmolViewer |
viewer |
Constructor and Description |
---|
SimplePopup() |
SimplePopup(JmolViewer viewer) |
SimplePopup(JmolViewer viewer,
String title,
PopupResource bundle,
boolean isHorizontal) |
Modifier and Type | Method and Description |
---|---|
(package private) JMenuItem |
addCheckboxMenuItem(Object menu,
String entry,
String basename,
String id,
boolean isRadio) |
(package private) JMenuItem |
addCheckboxMenuItem(Object menu,
String entry,
String basename,
String id,
boolean state,
boolean isRadio) |
protected static void |
addCurrentItem(StringBuffer sb,
char type,
int level,
String name,
String label,
String script,
String flags) |
(package private) Object |
addMenuItem(Object menuItem,
String entry) |
(package private) Object |
addMenuItem(Object menu,
String entry,
String script,
String id) |
protected void |
addMenuItems(String parentId,
String key,
Object menu,
PopupResource popupResourceBundle) |
(package private) void |
addMenuSeparator(Object menu) |
(package private) void |
addMenuSubMenu(Object menu,
Object subMenu) |
(package private) void |
addToMenu(Object menu,
JComponent item) |
protected void |
build(String title,
Object popupMenu,
PopupResource bundle) |
(package private) boolean |
checkBoolean(Map<String,Object> info,
String key) |
void |
checkMenuClick(Object source,
String script) |
protected void |
checkSpecialMenu(String item,
Object subMenu,
String word) |
(package private) Object |
cloneMenu(Object menu) |
(package private) void |
enableMenu(Object menu,
boolean enable) |
(package private) void |
enableMenuItem(Object item,
boolean enable) |
protected String |
fixScript(String id,
String script) |
protected ImageIcon |
getIcon(String name) |
(package private) String |
getId(Object menu) |
(package private) int |
getMenuItemCount(Object menu) |
protected String |
getMenuText(String key) |
protected void |
getViewerData() |
(package private) Object |
newMenu(String entry,
String id) |
(package private) void |
rememberCheckbox(String key,
JMenuItem checkboxMenuItem) |
(package private) void |
removeAll(Object menu) |
(package private) void |
removeMenuItem(Object menu,
int index) |
(package private) void |
renameMenu(Object menu,
String entry) |
(package private) void |
restorePopupMenu() |
protected void |
set(JmolViewer viewer) |
(package private) void |
setAutoscrolls(Object menu) |
protected String |
setCheckBoxOption(JMenuItem item,
String name,
String what) |
(package private) void |
setCheckBoxState(Object item,
boolean state) |
protected void |
setCheckBoxValue(JMenuItem item,
String what,
boolean TF)
(1) setOption --> set setOption true or set setOption false
|
(package private) void |
setCheckBoxValue(Object source) |
protected void |
setLabel(Object menu,
String entry) |
void |
show(int x,
int y,
boolean doPopup) |
protected void |
showPopupMenu(int x,
int y) |
(package private) void |
updateButton(AbstractButton b,
String entry,
String script) |
(package private) void |
updateFileTypeDependentMenus() |
protected void |
updateForShow() |
protected static final boolean dumpList
protected JmolViewer viewer
protected Component display
protected SimplePopup.MenuItemListener mil
protected SimplePopup.CheckboxMenuItemListener cmil
protected boolean asPopup
protected Properties menuText
protected String nullModelSetName
protected String modelSetName
protected String modelSetFileName
protected String modelSetRoot
protected JPopupMenu frankPopup
protected boolean fileHasUnitCell
protected boolean isPDB
protected boolean isSymmetry
protected boolean isUnitCell
protected boolean isMultiFrame
protected boolean isLastFrame
protected boolean isMultiConfiguration
protected boolean isVibration
protected boolean isApplet
protected boolean isSigned
protected boolean isZapped
protected boolean haveCharges
protected boolean haveBFactors
protected String altlocs
protected int modelIndex
protected int modelCount
protected int atomCount
protected JPopupMenu swingPopup
private boolean isHorizontal
private boolean allowSignedFeatures
protected int thisx
protected int thisy
static final int UPDATE_ALL
static final int UPDATE_CONFIG
static final int UPDATE_SHOW
int updateMode
private ButtonGroup group
String currentMenuItemId
SimplePopup()
SimplePopup(JmolViewer viewer)
public SimplePopup(JmolViewer viewer, String title, PopupResource bundle, boolean isHorizontal)
protected void set(JmolViewer viewer)
protected void build(String title, Object popupMenu, PopupResource bundle)
protected void updateForShow()
public void show(int x, int y, boolean doPopup)
x
- y
- doPopup
- protected static void addCurrentItem(StringBuffer sb, char type, int level, String name, String label, String script, String flags)
protected void getViewerData()
void updateFileTypeDependentMenus()
protected void addMenuItems(String parentId, String key, Object menu, PopupResource popupResourceBundle)
protected void checkSpecialMenu(String item, Object subMenu, String word)
item
- subMenu
- word
- protected void setCheckBoxValue(JMenuItem item, String what, boolean TF)
item
- what
- option to setTF
- true or falseprotected String setCheckBoxOption(JMenuItem item, String name, String what)
item
- name
- what
- void restorePopupMenu()
JMenuItem addCheckboxMenuItem(Object menu, String entry, String basename, String id, boolean isRadio)
protected void showPopupMenu(int x, int y)
void addToMenu(Object menu, JComponent item)
void addMenuSeparator(Object menu)
void setCheckBoxValue(Object source)
void setCheckBoxState(Object item, boolean state)
void updateButton(AbstractButton b, String entry, String script)
JMenuItem addCheckboxMenuItem(Object menu, String entry, String basename, String id, boolean state, boolean isRadio)
void setAutoscrolls(Object menu)
int getMenuItemCount(Object menu)
void removeMenuItem(Object menu, int index)
void removeAll(Object menu)
void enableMenu(Object menu, boolean enable)
void enableMenuItem(Object item, boolean enable)