Class ChartViewer

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

public class ChartViewer extends JFrame implements ListSelectionListener
A JFrame containing a GUI for visualising a Chart of a dominance graph and highlighting parts of it in a JDomGraph.
Author:
Michaela Regneri, Alexander Koller
See Also:
  • Constructor Details

    • ChartViewer

      public ChartViewer(Chart c, DomGraph g, String title, JDomGraph jg, NodeLabels la)
      A new ChartViewer
      Parameters:
      c - the Chart
      g - the DomGraph
      title - the name of the graph
      jg - the visible JDomGraph
      la - the NodeLabels object
  • Method Details

    • setVisible

      public void setVisible(boolean b)
      This overrides the "setVisible" method to make sure that the marking disappears when the window is closed.
      Overrides:
      setVisible in class Window
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      This handels selection changes of the table and is responsible for marking splits and subgraphs in the table itself and in the main window.
      Specified by:
      valueChanged in interface ListSelectionListener
    • markSplit

      public void markSplit(Split<GraphBasedNonterminal> split)
      Mark a split in the main window by retrieving the colors via FormatManager.
      Parameters:
      split - the Split to mark.
    • setEQSLoaded

      public void setEQSLoaded(boolean isloaded)
      This is to activate / deactivate the menu item for reducing the chart with a globally loaded equation system.
      Parameters:
      isloaded - if set to true, the item is enabled