Class AbstractToolWithParameterPanel

    • Field Detail

      • m_ButtonApply

        protected BaseFlatButton m_ButtonApply
        the apply button.
      • m_ParameterPanel

        protected ParameterPanel m_ParameterPanel
        the parameter panel.
      • m_IgnoreOptionsUpdate

        protected boolean m_IgnoreOptionsUpdate
        whether to ignore the update to the options.
      • m_InitialOptions

        protected Map<String,​Object> m_InitialOptions
        initial settings.
    • Constructor Detail

      • AbstractToolWithParameterPanel

        public AbstractToolWithParameterPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class AbstractTool
      • addOptions

        protected abstract void addOptions​(ParameterPanel paramPanel)
        Fills the parameter panel with the options.
        Parameters:
        paramPanel - for adding the options to
      • applyOptionsQuietly

        public void applyOptionsQuietly()
        Applies the options quietly, i.e., doesn't trigger an event.
        Specified by:
        applyOptionsQuietly in interface CustomizableTool
      • setOption

        protected boolean setOption​(int index,
                                    String label,
                                    Component comp,
                                    Object value)
        Hook method for reacting to custom component types, updating their setting.
        Parameters:
        index - the parameter index
        label - the current label
        comp - the parameter to update
        value - the value to update with
        Returns:
        true if successfully updated
      • updateOptions

        protected void updateOptions​(Map<String,​Object> value)
        Sets the options from the map.
        Parameters:
        value - the options to use
      • getOption

        protected boolean getOption​(int index,
                                    String label,
                                    Component comp,
                                    Map<String,​Object> map)
        Hook method for reacting to custom component types, retrieving their setting.
        Parameters:
        index - the parameter index
        label - the current label
        comp - the parameter to retrieve
        map - the options map to update with the current value
        Returns:
        true if successfully retrieved
      • retrieveCurrentOptions

        public Map<String,​Object> retrieveCurrentOptions()
        Returns the current options as a map.
        Returns:
        the options
      • postProcessCurrentOptions

        protected void postProcessCurrentOptions​(Map<String,​Object> value)
        Hook method for post-processing the options before returning them.
        Parameters:
        value - the options to post-process
        See Also:
        getCurrentOptions()