Class TypesConfigFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener, RootPaneContainer, WindowConstants

public class TypesConfigFrame extends JFrame implements ListSelectionListener
This class provides a display to allow the user to define which colours are used when displaying associations of this type.
See Also:
  • Field Details

    • UNDEFINED_EDGE_SHAPE

      public static final int UNDEFINED_EDGE_SHAPE
      See Also:
    • UNDEFINED_EDGE_SHAPE_WEIGHT

      public static final int UNDEFINED_EDGE_SHAPE_WEIGHT
      See Also:
    • UNDEFINED_NODE_SHAPE_PADDING

      public static final int UNDEFINED_NODE_SHAPE_PADDING
      See Also:
    • UNDEFINED_NODE_SHAPE

      public static final int UNDEFINED_NODE_SHAPE
      See Also:
  • Method Details

    • createAssociationTypeConfigFrame

      public static TypesConfigFrame createAssociationTypeConfigFrame(VizController controller, VizDesktop desktop)
    • createTopicTypeConfigFrame

      public static TypesConfigFrame createTopicTypeConfigFrame(VizController controller, VizDesktop desktop)
    • createColorChooserPanel

      protected JPanel createColorChooserPanel()
    • initializeTypeList

      protected void initializeTypeList()
      Initialize the list of topic types.
    • buildAndSetFont

      protected void buildAndSetFont()
      Build a new font object from the GUI and assign it
    • buildAssociationTypeGeneralConfigPanel

      public void buildAssociationTypeGeneralConfigPanel(JPanel config)
    • buildTopicTypeGeneralConfigPanel

      public void buildTopicTypeGeneralConfigPanel(JPanel config)
    • promptForFile

      protected String promptForFile()
    • setIconFilename

      protected void setIconFilename(String string)
    • setSelectedIconFilename

      public void setSelectedIconFilename(String string)
    • setWeight

      protected void setWeight(int i)
    • setSelectedShape

      public void setSelectedShape(int i)
    • setSelectedFilter

      public void setSelectedFilter(int i)
    • updateSelectedFilter

      public void updateSelectedFilter()
      When some other class changes the filter selection, this method updates this GUI. If other parts of the configuration, such as colour and shape, become changable in other classes, this method is probably the right place to update the GUI.
    • setSelectedWeight

      public void setSelectedWeight(int i)
    • setShape

      protected void setShape(int i)
    • setFilter

      protected void setFilter(int i)
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Specified by:
      valueChanged in interface ListSelectionListener