Class StatusBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, GraphListener, TransactionListener, SelectionListener, SessionListener

public class StatusBar
extends JPanel
implements SessionListener, SelectionListener, GraphListener
Represents a status line ui component, which can display info and error messages. It also let's the user scroll through the selected nodes and edges, which will be zoomed into the view
Version:
$Revision: 1.23.2.1.2.2 $
See Also:
Serialized Form
Recent revisions:
2.7.0
  • Constructor Details

    • StatusBar

      public StatusBar​(StringBundle sBundle)
      Constructs a new status bar.
      Parameters:
      sBundle - DOCUMENT ME!
  • Method Details

    • clear

      public void clear()
      Clears the current text of the status bar.
    • postEdgeAdded

      public void postEdgeAdded​(GraphEvent e)
      Description copied from interface: GraphListener
      Called after an edge has been added to the graph.
      Specified by:
      postEdgeAdded in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • postEdgeRemoved

      public void postEdgeRemoved​(GraphEvent e)
      Description copied from interface: GraphListener
      Called after an edge has been removed from the graph.
      Specified by:
      postEdgeRemoved in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • postGraphCleared

      public void postGraphCleared​(GraphEvent e)
      Description copied from interface: GraphListener
      Called after method clear() has been called on a graph. No other events (like remove events) are generated.
      Specified by:
      postGraphCleared in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • postNodeAdded

      public void postNodeAdded​(GraphEvent e)
      Description copied from interface: GraphListener
      Called after an edge has been added to the graph.
      Specified by:
      postNodeAdded in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • postNodeRemoved

      public void postNodeRemoved​(GraphEvent e)
      Description copied from interface: GraphListener
      Called after a node has been removed from the graph. All edges incident to this node have already been removed (preEdgeRemoved and postEdgeRemoved have been called).
      Specified by:
      postNodeRemoved in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • preEdgeAdded

      public void preEdgeAdded​(GraphEvent e)
      Description copied from interface: GraphListener
      Called just before an edge is added to the graph.
      Specified by:
      preEdgeAdded in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • preEdgeRemoved

      public void preEdgeRemoved​(GraphEvent e)
      Description copied from interface: GraphListener
      Called just before an edge is removed from the graph.
      Specified by:
      preEdgeRemoved in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • preGraphCleared

      public void preGraphCleared​(GraphEvent e)
      Description copied from interface: GraphListener
      Called before method clear() is called on a graph. No other events (like remove events) are generated.
      Specified by:
      preGraphCleared in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • preNodeAdded

      public void preNodeAdded​(GraphEvent e)
      Description copied from interface: GraphListener
      Called just before a node is added to the graph.
      Specified by:
      preNodeAdded in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • preNodeRemoved

      public void preNodeRemoved​(GraphEvent e)
      Description copied from interface: GraphListener
      Called just before a node is removed from the graph. This method is called before the incident edges are deleted.
      Specified by:
      preNodeRemoved in interface GraphListener
      Parameters:
      e - the GraphEvent detailing the changes.
    • selectionChanged

      public void selectionChanged​(SelectionEvent e)
      Description copied from interface: SelectionListener
      Is called, if something in the selection model changed.
      Specified by:
      selectionChanged in interface SelectionListener
    • selectionListChanged

      public void selectionListChanged​(SelectionEvent e)
      Description copied from interface: SelectionListener
      Is called, if a named selection is added or removed.
      Specified by:
      selectionListChanged in interface SelectionListener
    • sessionChanged

      public void sessionChanged​(Session session)
      Description copied from interface: SessionListener
      This method is called when the session changes.
      Specified by:
      sessionChanged in interface SessionListener
      Parameters:
      session - the new Session.
    • sessionDataChanged

      public void sessionDataChanged​(Session s)
      Description copied from interface: SessionListener
      This method is called when the data (except the graph data) are changed.
      Specified by:
      sessionDataChanged in interface SessionListener
    • showError

      public void showError​(String status)
      Shows the given error message in the status bar for DELAY seconds.
      Parameters:
      status - the message to display in the status bar.
    • showError

      public void showError​(String val, int timeMillis)
      Shows the given error message in the status bar for the given interval.
      Parameters:
      status - the message to display in the status bar.
      timeMillis - DOCUMENT ME!
    • showInfo

      public void showInfo​(String message)
      Shows the given message in the status bar for DELAY seconds.
      Parameters:
      message - the message to display in the status bar.
    • showInfo

      public void showInfo​(String val, int timeMillis)
      Shows the given message in the status bar for the given interval.
      Parameters:
      message - the message to display in the status bar.
      timeMillis - DOCUMENT ME!
    • transactionFinished

      public void transactionFinished​(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)
      Description copied from interface: TransactionListener
      Called when a transaction has stopped.
      The class TransactionHashMap merges duplicate AttributeEvents. In case the Attribute path for the same Attributable is not equal, detailed information about Attribute path is lost. Instead a generic AttributeEvent containing just the Attributable is in the list of changed Objects (see TransactionEvent).
      In case no detailed information about an Attribute change is available, your code should completely re-process the affected Attributable.
      Specified by:
      transactionFinished in interface TransactionListener
      Parameters:
      e - the EdgeEvent detailing the changes.
    • transactionStarted

      public void transactionStarted​(TransactionEvent e)
      Description copied from interface: TransactionListener
      Called when a transaction has started.
      Specified by:
      transactionStarted in interface TransactionListener
      Parameters:
      e - the EdgeEvent detailing the changes.
    • getCurrentText

      public String getCurrentText()