Class GraphConfigDialog
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- org.processmining.objectcentricconstraintchecking.algorithms.editor.GraphConfigDialog
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,javax.swing.RootPaneContainer,javax.swing.WindowConstants
public class GraphConfigDialog extends javax.swing.JDialog- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
-
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected mxAnalysisGraphaGraphprotected booleanallowMultipleEdgesIf set, parallel edges are allowed during graph generationprotected booleanallowSelfLoopsIf set, self-loops are allowed during graph generationprotected booleanarrowsIf set, arrowheads are drawnprotected javax.swing.JCheckBoxarrowsBoxprotected intendVertexValueThe end vertex (by value) for various algorithms (mostly pathfinding)protected javax.swing.JTextFieldendVertexValueFieldprotected booleanforceConnectedIf set, the generated graph will be always connectedprotected javax.swing.JCheckBoxforceConnectedBoxprotected mxGraphgraphprotected mxGraphProperties.GraphTypegraphTypeprotected floatgridSpacingGrid spacing for a grid graphprotected javax.swing.JTextFieldgridSpacingFieldprotected floatgroupSpacingSpacing for groups in a bipartite graphprotected javax.swing.JTextFieldgroupSpacingFieldprotected booleaninsertGraphprotected javax.swing.JTextFieldmaxTreeNodeChildrenprotected intmaxWeightprotected javax.swing.JTextFieldmaxWeightFieldprotected intminWeightprotected javax.swing.JTextFieldminWeightFieldprotected javax.swing.JCheckBoxmultipleEdgeBoxprotected intnumBranchesprotected javax.swing.JTextFieldnumBranchesFieldprotected intnumColumnsNumber of columns for a grid graphprotected javax.swing.JTextFieldnumColumnsFieldprotected intnumEdgesNumber of edgesprotected javax.swing.JTextFieldnumEdgesFieldprotected intnumNodesNumber of nodesprotected javax.swing.JTextFieldnumNodesFieldprotected intnumRowsNumber of rows for a grid graphprotected javax.swing.JTextFieldnumRowsFieldprotected intnumVertexesInBranchprotected javax.swing.JTextFieldnumVertexesInBranchFieldprotected intnumVertexesLeftNumber of vertexes for the left group in a bipartite graphprotected javax.swing.JTextFieldnumVertexesLeftFieldprotected intnumVertexesRightNumber of vertexes for the right group in a bipartite graphprotected javax.swing.JTextFieldnumVertexesRightFieldprotected javax.swing.JCheckBoxselfLoopBoxprotected intstartVertexValueThe start vertex (by value) for various algorithmsprotected javax.swing.JTextFieldstartVertexValueFieldprotected intvalenceValenceprotected javax.swing.JTextFieldvalenceFieldprotected booleanweightedprotected javax.swing.JCheckBoxweightedBox-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description GraphConfigDialog(mxGraphProperties.GraphType graphType2, java.lang.String dialogText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyValues()voidconfigAnalysisGraph(mxGraph graph, mxGraphGenerator generator, java.util.Map<java.lang.String,java.lang.Object> props)voidconfigureLayout(mxGraph graph, mxGraphProperties.GraphType graphType, mxAnalysisGraph aGraph)intgetEndVertexValue()floatgetGridSpacing()floatgetGroupSpacing()intgetMaxWeight()intgetMinWeight()intgetNumBranches()intgetNumColumns()intgetNumEdges()intgetNumNodes()intgetNumRows()intgetNumVertexesInBranch()intgetNumVertexesLeft()intgetNumVertexesRight()intgetStartVertexValue()intgetValence()booleanisAllowMultipleEdges()booleanisAllowSelfLoops()booleanisArrows()booleanisForceConnected()booleanisWeighted()voidsetAllowMultipleEdges(boolean allowMultipleEdges)voidsetAllowSelfLoops(boolean allowSelfLoops)voidsetArrows(boolean arrows)voidsetEndVertexValue(int endVertexValue)voidsetForceConnected(boolean forceConnected)voidsetGridSpacing(float gridSpacing)voidsetGroupSpacing(float groupSpacing)voidsetMaxWeight(int maxWeight)voidsetMinWeight(int minWeight)voidsetNumBranches(int numBranches)voidsetNumColumns(int numColumns)voidsetNumEdges(int numEdges)voidsetNumNodes(int numNodes)voidsetNumRows(int numRows)voidsetNumVertexesInBranch(int numVertexesInBranch)voidsetNumVertexesLeft(int numVertexesLeft)voidsetNumVertexesRight(int numVertexesRight)voidsetStartVertexValue(int startVertexValue)voidsetValence(int valence)voidsetWeighted(boolean weighted)-
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
numNodes
protected int numNodes
Number of nodes
-
numEdges
protected int numEdges
Number of edges
-
valence
protected int valence
Valence
-
numRows
protected int numRows
Number of rows for a grid graph
-
numVertexesInBranch
protected int numVertexesInBranch
-
numColumns
protected int numColumns
Number of columns for a grid graph
-
minWeight
protected int minWeight
-
maxWeight
protected int maxWeight
-
numVertexesLeft
protected int numVertexesLeft
Number of vertexes for the left group in a bipartite graph
-
numVertexesRight
protected int numVertexesRight
Number of vertexes for the right group in a bipartite graph
-
startVertexValue
protected int startVertexValue
The start vertex (by value) for various algorithms
-
endVertexValue
protected int endVertexValue
The end vertex (by value) for various algorithms (mostly pathfinding)
-
numBranches
protected int numBranches
-
arrows
protected boolean arrows
If set, arrowheads are drawn
-
weighted
protected boolean weighted
-
allowSelfLoops
protected boolean allowSelfLoops
If set, self-loops are allowed during graph generation
-
allowMultipleEdges
protected boolean allowMultipleEdges
If set, parallel edges are allowed during graph generation
-
forceConnected
protected boolean forceConnected
If set, the generated graph will be always connected
-
groupSpacing
protected float groupSpacing
Spacing for groups in a bipartite graph
-
gridSpacing
protected float gridSpacing
Grid spacing for a grid graph
-
insertGraph
protected boolean insertGraph
-
graph
protected mxGraph graph
-
aGraph
protected mxAnalysisGraph aGraph
-
graphType
protected mxGraphProperties.GraphType graphType
-
maxTreeNodeChildren
protected javax.swing.JTextField maxTreeNodeChildren
-
numNodesField
protected javax.swing.JTextField numNodesField
-
numEdgesField
protected javax.swing.JTextField numEdgesField
-
valenceField
protected javax.swing.JTextField valenceField
-
numRowsField
protected javax.swing.JTextField numRowsField
-
numColumnsField
protected javax.swing.JTextField numColumnsField
-
gridSpacingField
protected javax.swing.JTextField gridSpacingField
-
numVertexesLeftField
protected javax.swing.JTextField numVertexesLeftField
-
numVertexesRightField
protected javax.swing.JTextField numVertexesRightField
-
groupSpacingField
protected javax.swing.JTextField groupSpacingField
-
arrowsBox
protected javax.swing.JCheckBox arrowsBox
-
startVertexValueField
protected javax.swing.JTextField startVertexValueField
-
endVertexValueField
protected javax.swing.JTextField endVertexValueField
-
selfLoopBox
protected javax.swing.JCheckBox selfLoopBox
-
multipleEdgeBox
protected javax.swing.JCheckBox multipleEdgeBox
-
forceConnectedBox
protected javax.swing.JCheckBox forceConnectedBox
-
weightedBox
protected javax.swing.JCheckBox weightedBox
-
maxWeightField
protected javax.swing.JTextField maxWeightField
-
minWeightField
protected javax.swing.JTextField minWeightField
-
numBranchesField
protected javax.swing.JTextField numBranchesField
-
numVertexesInBranchField
protected javax.swing.JTextField numVertexesInBranchField
-
-
Constructor Detail
-
GraphConfigDialog
public GraphConfigDialog(mxGraphProperties.GraphType graphType2, java.lang.String dialogText)
-
-
Method Detail
-
getNumVertexesInBranch
public int getNumVertexesInBranch()
-
setNumVertexesInBranch
public void setNumVertexesInBranch(int numVertexesInBranch)
-
getMinWeight
public int getMinWeight()
-
setMinWeight
public void setMinWeight(int minWeight)
-
getMaxWeight
public int getMaxWeight()
-
setMaxWeight
public void setMaxWeight(int maxWeight)
-
getNumBranches
public int getNumBranches()
-
setNumBranches
public void setNumBranches(int numBranches)
-
configAnalysisGraph
public void configAnalysisGraph(mxGraph graph, mxGraphGenerator generator, java.util.Map<java.lang.String,java.lang.Object> props)
-
applyValues
protected void applyValues()
-
configureLayout
public void configureLayout(mxGraph graph, mxGraphProperties.GraphType graphType, mxAnalysisGraph aGraph)
-
setAllowMultipleEdges
public void setAllowMultipleEdges(boolean allowMultipleEdges)
-
setAllowSelfLoops
public void setAllowSelfLoops(boolean allowSelfLoops)
-
setArrows
public void setArrows(boolean arrows)
-
setEndVertexValue
public void setEndVertexValue(int endVertexValue)
-
setForceConnected
public void setForceConnected(boolean forceConnected)
-
setGridSpacing
public void setGridSpacing(float gridSpacing)
-
setGroupSpacing
public void setGroupSpacing(float groupSpacing)
-
setNumColumns
public void setNumColumns(int numColumns)
- Parameters:
insertIntoModel- The insertIntoModel to set.
-
setNumEdges
public void setNumEdges(int numEdges)
- Parameters:
numEdges- The numEdges to set.
-
setNumNodes
public void setNumNodes(int numNodes)
- Parameters:
numNodes- The numNodes to set.
-
setNumRows
public void setNumRows(int numRows)
-
setNumVertexesLeft
public void setNumVertexesLeft(int numVertexesLeft)
-
setNumVertexesRight
public void setNumVertexesRight(int numVertexesRight)
-
setStartVertexValue
public void setStartVertexValue(int startVertexValue)
-
setValence
public void setValence(int valence)
-
getEndVertexValue
public int getEndVertexValue()
-
getGridSpacing
public float getGridSpacing()
-
getGroupSpacing
public float getGroupSpacing()
-
getNumColumns
public int getNumColumns()
-
getNumEdges
public int getNumEdges()
-
getNumNodes
public int getNumNodes()
-
getNumRows
public int getNumRows()
-
getNumVertexesLeft
public int getNumVertexesLeft()
-
getNumVertexesRight
public int getNumVertexesRight()
-
getStartVertexValue
public int getStartVertexValue()
-
getValence
public int getValence()
-
isAllowMultipleEdges
public boolean isAllowMultipleEdges()
-
isAllowSelfLoops
public boolean isAllowSelfLoops()
-
isArrows
public boolean isArrows()
-
isForceConnected
public boolean isForceConnected()
-
isWeighted
public boolean isWeighted()
-
setWeighted
public void setWeighted(boolean weighted)
-
-