Class AbstractOnDemandLayerFeature

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String group  
      protected Layer layer  
      protected boolean on  
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractOnDemandLayerFeature​(java.lang.String s, java.lang.String featureID, java.lang.String iconPath, java.lang.String group, Registry registry)  
    • Field Detail

      • group

        protected java.lang.String group
      • layer

        protected Layer layer
      • on

        protected boolean on
    • Constructor Detail

      • AbstractOnDemandLayerFeature

        public AbstractOnDemandLayerFeature​(java.lang.String s,
                                            java.lang.String featureID,
                                            java.lang.String iconPath,
                                            java.lang.String group,
                                            Registry registry)
    • Method Detail

      • createLayer

        protected abstract Layer createLayer()
      • isTwoState

        public boolean isTwoState()
        Description copied from interface: Feature
        Indicates whether the feature can be either on or off, without any other states. This is used by the tool bar and menu-bar menus to determine whether the feature's enable/disable button or menu item should be displayed with an indicator that it's either on or off. In the case of a menu the indicator is a check box. In the case of a tool bar button the indicator is a dot above the button.
        Specified by:
        isTwoState in interface Feature
        Overrides:
        isTwoState in class AbstractFeature
        Returns:
        true if the feature has only two states, otherwise off.
      • addLayer

        protected void addLayer​(LayerPath path)
      • removeLayer

        protected void removeLayer()