Class GenericConsole

    • Constructor Detail

      • GenericConsole

        public GenericConsole()
    • Method Detail

      • setViewer

        protected void setViewer​(Viewer vwr)
      • isMenuItem

        protected abstract boolean isMenuItem​(java.lang.Object source)
      • layoutWindow

        protected abstract void layoutWindow​(java.lang.String enabledButtons)
      • setTitle

        protected abstract void setTitle()
      • setupLabels

        protected void setupLabels​(java.util.Map<java.lang.String,​java.lang.String> labels)
      • setupLabels0

        protected void setupLabels0​(java.util.Map<java.lang.String,​java.lang.String> labels)
      • setLabels

        protected void setLabels()
      • getLabel

        public static java.lang.String getLabel​(java.lang.String key)
      • displayConsole

        protected void displayConsole()
      • updateLabels

        protected void updateLabels()
      • nextFileName

        protected abstract java.lang.String nextFileName​(java.lang.String stub,
                                                         int nTab)
      • completeCommand

        public java.lang.String completeCommand​(java.lang.String thisCmd)
      • doAction

        protected void doAction​(java.lang.Object source)
      • execute

        protected void execute​(java.lang.String strCommand)
      • destroyConsole

        protected void destroyConsole()
      • setAbstractButtonLabels

        public static void setAbstractButtonLabels​(java.util.Map<java.lang.String,​java.lang.Object> menuMap,
                                                   java.util.Map<java.lang.String,​java.lang.String> labels)
      • getLabelWithoutMnemonic

        public static java.lang.String getLabelWithoutMnemonic​(java.lang.String label)
      • getMnemonic

        static char getMnemonic​(java.lang.String label)
      • map

        public static void map​(java.lang.Object button,
                               java.lang.String key,
                               java.lang.String label,
                               java.util.Map<java.lang.String,​java.lang.Object> menuMap)
      • outputMsg

        private void outputMsg​(java.lang.String message)
      • clearContent

        protected void clearContent​(java.lang.String text)
      • setCallbackFunction

        public void setCallbackFunction​(java.lang.String callbackType,
                                        java.lang.String callbackFunction)
        Specified by:
        setCallbackFunction in interface JmolCallbackListener
      • recallCommand

        protected void recallCommand​(boolean up)
      • processKey

        protected int processKey​(int kcode,
                                 int kid,
                                 boolean isControlDown)
        Parameters:
        kcode -
        kid -
        isControlDown -
        Returns:
        1 = consume; 2 = super.process; 3 = both
      • splitCommandLine

        private static java.lang.String[] splitCommandLine​(java.lang.String cmd)
        separate a command line into three sections: prefix....;cmd ........ token where token can be a just-finished single or double quote or a string of characters
        Parameters:
        cmd -
        Returns:
        String[] {prefix, cmd..... token}