Class AbstractStyleDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
repast.simphony.visualization.gui.styleBuilder.AbstractStyleDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
SimpleEditedEdgeStyleDialog

public abstract class AbstractStyleDialog extends JDialog
Abstract dialog for edited styles
Author:
Eric Tatara TODO Currently only used by edited edge dialog - we should clean up the others
See Also:
  • Field Details

  • Constructor Details

    • AbstractStyleDialog

      public AbstractStyleDialog(Frame owner)
    • AbstractStyleDialog

      public AbstractStyleDialog(Dialog owner)
  • Method Details

    • getUserStyleName

      public String getUserStyleName()
    • init

      public abstract void init(ContextData context, String netID, String userStyleName, DisplayDescriptor descriptor)
    • doSave

      public boolean doSave()
    • cancelButtonActionPerformed

      protected void cancelButtonActionPerformed(ActionEvent e)
    • okButtonActionPerformed

      protected void okButtonActionPerformed(ActionEvent e)
    • writeStyleData

      public void writeStyleData()
    • isUserTypedNumber

      protected boolean isUserTypedNumber(Object obj)
    • findAttributes

      public void findAttributes(Attribute a)
      Method loads an edge class and adds get methods or just adds the getWeight method as default
      Parameters:
      a - a SAttribute from the score file