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

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.RandomGraphUtilityPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class RandomGraphUtilityPage
extends WizardPage

The options page for utility settings.

Rating red

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
RandomGraphUtilityPage()
          Constructs a RandomGraphUtilityPage.
 
Method Summary
 void createControl(Composite parent)
          
 float getEdgeDirectedChance()
          Returns the chance for creating a directed edge.
 float getHierarchyChance()
          Returns the hierarchy chance.
 float getHierarchyNodesFactor()
          Returns the factor for computing the number of nodes in a compound node.
 float getHypernodeChance()
          Returns the hypernode chance.
 int getMaximumHierarchyLevel()
          Returns the maximum hierarchy level.
 boolean getPorts()
          Returns whether ports have to be used to connect nodes.
 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
 

Constructor Detail

RandomGraphUtilityPage

public RandomGraphUtilityPage()
Constructs a RandomGraphUtilityPage.

Method Detail

createControl

public void createControl(Composite parent)


savePreferences

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


getHierarchyChance

public float getHierarchyChance()
Returns the hierarchy chance.

Returns:
the hierarchy chance

getMaximumHierarchyLevel

public int getMaximumHierarchyLevel()
Returns the maximum hierarchy level.

Returns:
the maximum hierarchy level

getHierarchyNodesFactor

public float getHierarchyNodesFactor()
Returns the factor for computing the number of nodes in a compound node.

Returns:
the factor

getHypernodeChance

public float getHypernodeChance()
Returns the hypernode chance.

Returns:
the hypernode chance

getEdgeDirectedChance

public float getEdgeDirectedChance()
Returns the chance for creating a directed edge.

Returns:
the chance for creating a directed edge

getPorts

public boolean getPorts()
Returns whether ports have to be used to connect nodes.

Returns:
true if ports have to be used; false else