de.cau.cs.kieler.keg.diagram.custom.wizards
Class RandomGraphAnyPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by de.cau.cs.kieler.keg.diagram.custom.wizards.RandomGraphAnyPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class RandomGraphAnyPage
extends WizardPage

The options page for the ANY graph type.

Rating red

Field Summary
static int EDGE_DETERMINATION_DENSITY
          the id of the density edge determination for the preferences.
static int EDGE_DETERMINATION_EDGES
          the id of the NUMBER_OF_EDGES edge determination for the preferences.
static int EDGE_DETERMINATION_OUTGOING
          the id of the MIN/MAX_OUTGOING_EDGES edge determination for the preferences.
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
RandomGraphAnyPage()
          Constructs a RandomGraphAnyPage.
 
Method Summary
 void createControl(Composite parent)
          
 boolean getCycles()
          Returns whether cycles are allowed.
 RandomGraphGenerator.EdgeDetermination getEdgeDetermination()
          Returns the selected edge determination.
 int getMaxOutgoingEdges()
          Returns the selected maximum number of outgoing edges.
 int getMinOutgoingEdges()
          Returns the selected minimum number of outgoing edges.
 boolean getMultiEdges()
          Returns whether multi-edges are allowed.
 int getNumberOfEdges()
          Returns the selected number of edges.
 int getNumberOfNodes()
          Returns the selected number of nodes.
 boolean getSelfLoops()
          Returns whether self-loops are allowed.
 void savePreferences()
          Saves the selected options to the preference store.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

EDGE_DETERMINATION_EDGES

public static final int EDGE_DETERMINATION_EDGES
the id of the NUMBER_OF_EDGES edge determination for the preferences.

See Also:
Constant Field Values

EDGE_DETERMINATION_DENSITY

public static final int EDGE_DETERMINATION_DENSITY
the id of the density edge determination for the preferences.

See Also:
Constant Field Values

EDGE_DETERMINATION_OUTGOING

public static final int EDGE_DETERMINATION_OUTGOING
the id of the MIN/MAX_OUTGOING_EDGES edge determination for the preferences.

See Also:
Constant Field Values
Constructor Detail

RandomGraphAnyPage

public RandomGraphAnyPage()
Constructs a RandomGraphAnyPage.

Method Detail

createControl

public void createControl(Composite parent)


savePreferences

public void savePreferences()
Saves the selected options to the preference store.


getNumberOfNodes

public int getNumberOfNodes()
Returns the selected number of nodes.

Returns:
the number of nodes

getEdgeDetermination

public RandomGraphGenerator.EdgeDetermination getEdgeDetermination()
Returns the selected edge determination.

Returns:
the edge determination

getNumberOfEdges

public int getNumberOfEdges()
Returns the selected number of edges.

Returns:
the number of edges

getMinOutgoingEdges

public int getMinOutgoingEdges()
Returns the selected minimum number of outgoing edges.

Returns:
the minimum number of outgoing edges

getMaxOutgoingEdges

public int getMaxOutgoingEdges()
Returns the selected maximum number of outgoing edges.

Returns:
the maximum number of outgoing edges

getSelfLoops

public boolean getSelfLoops()
Returns whether self-loops are allowed.

Returns:
true if self-loops are allowed; false else

getMultiEdges

public boolean getMultiEdges()
Returns whether multi-edges are allowed.

Returns:
true if multi-edges are allowed; false else

getCycles

public boolean getCycles()
Returns whether cycles are allowed.

Returns:
true if cycles are allowed; false else