com.tensegrity.gui.swt.dialog.graphtools
Class SwtGraphCreationDialog

java.lang.Object
  extended byorg.eclipse.swt.widgets.Dialog
      extended bycom.tensegrity.gui.swt.dialog.SwtBaseDialog
          extended bycom.tensegrity.gui.swt.dialog.graphtools.SwtGraphCreationDialog
All Implemented Interfaces:
Disposable, Evaluable, java.util.EventListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener

public class SwtGraphCreationDialog
extends SwtBaseDialog

The graph creation dialog is defined in this class. The class uses several configuration panes to allow users to create graphs.

Version:
$Id: SwtGraphCreationDialog.java,v 1.28 2006/03/02 11:41:40 BurkhardWick Exp $
Author:
S�bastien Guyon

Field Summary
protected  org.eclipse.swt.widgets.Button animated
          checkbox to apply layout animated
protected  org.eclipse.swt.widgets.Button applyLayout
          checkbox to apply layout
static int CIRCULAR
          Specifies the graph type Circular
protected  org.eclipse.swt.widgets.Button coloredEdges
          checkbox to colored edges checkbox in global panel
protected  org.eclipse.swt.widgets.Button coloredNodes
          checkbox to colored nodes checkbox in global panel
static int ENERGY
          Specifies the graph type Energy
static int HIERARCHICAL
          Specifies the graph type hierarchical
protected  org.eclipse.swt.widgets.Button newDocCheckBox
          check box for the Open in New Document option
static int ORGCHART
          Specifies the graph type Org chart
static int RANDOM
          Specifies the graph type Random
protected  org.eclipse.swt.widgets.Button randomNodeSize
          checkbox to ranodm size of nodes in global panel
static int TREE
          Specifies the graph type tree
 
Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog
resourceClass, resourcePath
 
Constructor Summary
SwtGraphCreationDialog(UIManager uiManager, org.eclipse.swt.widgets.Display display)
           Default Constructor which initializes the dialog.
SwtGraphCreationDialog(UIManager uiManager, org.eclipse.swt.widgets.Display display, boolean openInNewDocOptionVisible)
           Default Constructor which initializes the dialog.
 
Method Summary
 void addActionListener(GraphCreationListener grl)
          Adds an Listener.
 void removeActionListener(GraphCreationListener grl)
          Removes an Listener from the Listener-list.
 
Methods inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog
applyEvList, dispose, getDialog, getTextCompositeLayoutData, getUIManager, installEvList, keyPressed, keyReleased, setDefaultResourceClassAndURL, setDescriptionText, setResourceClassAndURL, setTitleText, show
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TREE

public static final int TREE
Specifies the graph type tree

See Also:
Constant Field Values

HIERARCHICAL

public static final int HIERARCHICAL
Specifies the graph type hierarchical

See Also:
Constant Field Values

CIRCULAR

public static final int CIRCULAR
Specifies the graph type Circular

See Also:
Constant Field Values

ENERGY

public static final int ENERGY
Specifies the graph type Energy

See Also:
Constant Field Values

ORGCHART

public static final int ORGCHART
Specifies the graph type Org chart

See Also:
Constant Field Values

RANDOM

public static final int RANDOM
Specifies the graph type Random

See Also:
Constant Field Values

newDocCheckBox

protected org.eclipse.swt.widgets.Button newDocCheckBox
check box for the Open in New Document option


coloredNodes

protected org.eclipse.swt.widgets.Button coloredNodes
checkbox to colored nodes checkbox in global panel


coloredEdges

protected org.eclipse.swt.widgets.Button coloredEdges
checkbox to colored edges checkbox in global panel


randomNodeSize

protected org.eclipse.swt.widgets.Button randomNodeSize
checkbox to ranodm size of nodes in global panel


applyLayout

protected final org.eclipse.swt.widgets.Button applyLayout
checkbox to apply layout


animated

protected final org.eclipse.swt.widgets.Button animated
checkbox to apply layout animated

Constructor Detail

SwtGraphCreationDialog

public SwtGraphCreationDialog(UIManager uiManager,
                              org.eclipse.swt.widgets.Display display)

Default Constructor which initializes the dialog.

Parameters:
uiManager - the UIManager used to retrieve the displayed texts
display - Display necessary to create the internal Shell

SwtGraphCreationDialog

public SwtGraphCreationDialog(UIManager uiManager,
                              org.eclipse.swt.widgets.Display display,
                              boolean openInNewDocOptionVisible)

Default Constructor which initializes the dialog.

Parameters:
uiManager - the UIManager used to retrieve the displayed texts
display - Display necessary to create the internal Shell
openInNewDocOptionVisible - if true then an option to open the graph in a new document is displayed.
Method Detail

addActionListener

public void addActionListener(GraphCreationListener grl)
Adds an Listener. Listener will be notificated after user applies a graph The caller application has to create the corresponding graph.

Parameters:
grl - the GraphCreationListener to add

removeActionListener

public void removeActionListener(GraphCreationListener grl)
Removes an Listener from the Listener-list.

Parameters:
grl - the GraphCreationListener to remove


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.