Class EdgeStyleStep

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.pietschy.wizard.WizardStep, PluginWizardStepListener

public class EdgeStyleStep extends PluginWizardStep
Display wizard step for network edge styles.
Author:
Nick Collier, Eric Tatara
See Also:
  • Field Details

  • Constructor Details

    • EdgeStyleStep

      public EdgeStyleStep()
  • Method Details

    • getContentPanel

      protected JPanel getContentPanel()
      Description copied from class: PluginWizardStep
      Subclasses must provide a JPanel with the wizard contents.
      Specified by:
      getContentPanel in class PluginWizardStep
      Returns:
      the content panel
    • prepare

      public void prepare()
      Specified by:
      prepare in interface org.pietschy.wizard.WizardStep
      Overrides:
      prepare in class org.pietschy.wizard.PanelWizardStep
    • applyState

      public void applyState() throws org.pietschy.wizard.InvalidStateException
      Specified by:
      applyState in interface org.pietschy.wizard.WizardStep
      Overrides:
      applyState in class org.pietschy.wizard.PanelWizardStep
      Throws:
      org.pietschy.wizard.InvalidStateException
    • init

      public void init(org.pietschy.wizard.WizardModel wizardModel)
      Specified by:
      init in interface org.pietschy.wizard.WizardStep
      Overrides:
      init in class org.pietschy.wizard.PanelWizardStep
    • checkForStyleEditor

      protected boolean checkForStyleEditor(DisplayDescriptor descriptor)
      Returns true if the display type in the descriptor supports edited styles.
      Parameters:
      descriptor -
      Returns:
    • getEditedStyleClassForDisplay

      protected String getEditedStyleClassForDisplay(DisplayDescriptor descriptor)
      Returns the class name for edited styles based on the display type in the descriptor.
      Parameters:
      descriptor -
      Returns:
    • findStylesForDisplay

      protected List<String> findStylesForDisplay(DisplayDescriptor descriptor)
      Finds all classes that implement the style interface for the type in the descriptor.
      Parameters:
      descriptor -
      Returns:
    • getDefaultStyle

      protected String getDefaultStyle(DisplayDescriptor descriptor)
      Provides the default style class name for the display defined in the descriptor.
      Parameters:
      descriptor -
      Returns:
    • findStylesFor

      protected List<String> findStylesFor(Class<?> styleInterface, String defaultStyle)
      Provides a list of available style classes (including default) for the specified interface.
      Parameters:
      styleInterface -
      Returns: