GraphLab Project

graphlab.graph.ui
Class GTabbedGraphPane

java.lang.Object
  extended by graphlab.graph.ui.GTabbedPane
      extended by graphlab.graph.ui.GTabbedGraphPane

public class GTabbedGraphPane
extends GTabbedPane

provides a tabbed UI Interface for editing multiple graphs in multiple tabs

Author:
azin azadi

Field Summary
static java.lang.Boolean defaultDirectedChoice
           
static java.lang.String NAME
           
 
Fields inherited from class graphlab.graph.ui.GTabbedPane
blackboard, CURRENT_COMPONENT, jtp, supportedType
 
Constructor Summary
GTabbedGraphPane(BlackBoard b)
           
 
Method Summary
 void addGraph(GraphModel g)
          create a tab for the given graph, the name of tab will be "G" + graph label
 java.awt.Component getComponent(BlackBoard b)
           
static GHTMLPageComponent getCurrentGHTGhtmlPageComponent(BlackBoard b)
          returns the current GHTMLPageComponent which is used in the top of a tab, if there is not any of them returns null
static GTabbedGraphPane getCurrentGTabbedGraphPane(BlackBoard b)
           
static void hideNotificationMessage(BlackBoard b)
          hides the previously showing message
protected  void reTab()
           
static void setMessage(java.lang.String message, BlackBoard b, boolean formatIt)
          shows a message to the user, It will hide when the showNotificationMessage is called, and show again when the hideNotificationMessage is called if formatIt=true, an html formatting will be applied to the message to make it nicer, do it if you don't pass a complete html message
static void showNotificationMessage(java.lang.String message, BlackBoard b, boolean formatIt)
          shows a message as a notification to the user, It will hide when the hideNotificationMessage is called and the prv message will be shown, if formatIt=true, an html formatting will be applied to the message to make it nicer, do it if you don't pass a complete html message
static void showTimeNotificationMessage(java.lang.String message, BlackBoard b, long timeMillis, boolean formatIt)
          shows a message and hide it after a given time
 
Methods inherited from class graphlab.graph.ui.GTabbedPane
add, addComponent, getTabedPane, registerType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

defaultDirectedChoice

public static java.lang.Boolean defaultDirectedChoice
Constructor Detail

GTabbedGraphPane

public GTabbedGraphPane(BlackBoard b)
Method Detail

getCurrentGTabbedGraphPane

public static GTabbedGraphPane getCurrentGTabbedGraphPane(BlackBoard b)

reTab

protected void reTab()
Overrides:
reTab in class GTabbedPane

addGraph

public void addGraph(GraphModel g)
create a tab for the given graph, the name of tab will be "G" + graph label

Parameters:
g - graphmodel

getComponent

public java.awt.Component getComponent(BlackBoard b)

showNotificationMessage

public static void showNotificationMessage(java.lang.String message,
                                           BlackBoard b,
                                           boolean formatIt)
shows a message as a notification to the user, It will hide when the hideNotificationMessage is called and the prv message will be shown, if formatIt=true, an html formatting will be applied to the message to make it nicer, do it if you don't pass a complete html message

Parameters:
message -
b -
formatIt -

setMessage

public static void setMessage(java.lang.String message,
                              BlackBoard b,
                              boolean formatIt)
shows a message to the user, It will hide when the showNotificationMessage is called, and show again when the hideNotificationMessage is called if formatIt=true, an html formatting will be applied to the message to make it nicer, do it if you don't pass a complete html message


hideNotificationMessage

public static void hideNotificationMessage(BlackBoard b)
hides the previously showing message


showTimeNotificationMessage

public static void showTimeNotificationMessage(java.lang.String message,
                                               BlackBoard b,
                                               long timeMillis,
                                               boolean formatIt)
shows a message and hide it after a given time


getCurrentGHTGhtmlPageComponent

public static GHTMLPageComponent getCurrentGHTGhtmlPageComponent(BlackBoard b)
returns the current GHTMLPageComponent which is used in the top of a tab, if there is not any of them returns null

Parameters:
b -
Returns:
See Also:
GTabbedPane

GraphLab Project