public class GraphConfigDialog
extends javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected mxAnalysisGraph |
aGraph |
protected boolean |
allowMultipleEdges
If set, parallel edges are allowed during graph generation
|
protected boolean |
allowSelfLoops
If set, self-loops are allowed during graph generation
|
protected boolean |
arrows
If set, arrowheads are drawn
|
protected javax.swing.JCheckBox |
arrowsBox |
protected int |
endVertexValue
The end vertex (by value) for various algorithms (mostly pathfinding)
|
protected javax.swing.JTextField |
endVertexValueField |
protected boolean |
forceConnected
If set, the generated graph will be always connected
|
protected javax.swing.JCheckBox |
forceConnectedBox |
protected mxGraph |
graph |
protected mxGraphProperties.GraphType |
graphType |
protected float |
gridSpacing
Grid spacing for a grid graph
|
protected javax.swing.JTextField |
gridSpacingField |
protected float |
groupSpacing
Spacing for groups in a bipartite graph
|
protected javax.swing.JTextField |
groupSpacingField |
protected boolean |
insertGraph |
protected javax.swing.JTextField |
maxTreeNodeChildren |
protected int |
maxWeight |
protected javax.swing.JTextField |
maxWeightField |
protected int |
minWeight |
protected javax.swing.JTextField |
minWeightField |
protected javax.swing.JCheckBox |
multipleEdgeBox |
protected int |
numBranches |
protected javax.swing.JTextField |
numBranchesField |
protected int |
numColumns
Number of columns for a grid graph
|
protected javax.swing.JTextField |
numColumnsField |
protected int |
numEdges
Number of edges
|
protected javax.swing.JTextField |
numEdgesField |
protected int |
numNodes
Number of nodes
|
protected javax.swing.JTextField |
numNodesField |
protected int |
numRows
Number of rows for a grid graph
|
protected javax.swing.JTextField |
numRowsField |
protected int |
numVertexesInBranch |
protected javax.swing.JTextField |
numVertexesInBranchField |
protected int |
numVertexesLeft
Number of vertexes for the left group in a bipartite graph
|
protected javax.swing.JTextField |
numVertexesLeftField |
protected int |
numVertexesRight
Number of vertexes for the right group in a bipartite graph
|
protected javax.swing.JTextField |
numVertexesRightField |
protected javax.swing.JCheckBox |
selfLoopBox |
protected int |
startVertexValue
The start vertex (by value) for various algorithms
|
protected javax.swing.JTextField |
startVertexValueField |
protected int |
valence
Valence
|
protected javax.swing.JTextField |
valenceField |
protected boolean |
weighted |
protected javax.swing.JCheckBox |
weightedBox |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
GraphConfigDialog(mxGraphProperties.GraphType graphType2,
java.lang.String dialogText) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyValues() |
void |
configAnalysisGraph(mxGraph graph,
mxGraphGenerator generator,
java.util.Map<java.lang.String,java.lang.Object> props) |
void |
configureLayout(mxGraph graph,
mxGraphProperties.GraphType graphType,
mxAnalysisGraph aGraph) |
int |
getEndVertexValue() |
float |
getGridSpacing() |
float |
getGroupSpacing() |
int |
getMaxWeight() |
int |
getMinWeight() |
int |
getNumBranches() |
int |
getNumColumns() |
int |
getNumEdges() |
int |
getNumNodes() |
int |
getNumRows() |
int |
getNumVertexesInBranch() |
int |
getNumVertexesLeft() |
int |
getNumVertexesRight() |
int |
getStartVertexValue() |
int |
getValence() |
boolean |
isAllowMultipleEdges() |
boolean |
isAllowSelfLoops() |
boolean |
isArrows() |
boolean |
isForceConnected() |
boolean |
isWeighted() |
void |
setAllowMultipleEdges(boolean allowMultipleEdges) |
void |
setAllowSelfLoops(boolean allowSelfLoops) |
void |
setArrows(boolean arrows) |
void |
setEndVertexValue(int endVertexValue) |
void |
setForceConnected(boolean forceConnected) |
void |
setGridSpacing(float gridSpacing) |
void |
setGroupSpacing(float groupSpacing) |
void |
setMaxWeight(int maxWeight) |
void |
setMinWeight(int minWeight) |
void |
setNumBranches(int numBranches) |
void |
setNumColumns(int numColumns) |
void |
setNumEdges(int numEdges) |
void |
setNumNodes(int numNodes) |
void |
setNumRows(int numRows) |
void |
setNumVertexesInBranch(int numVertexesInBranch) |
void |
setNumVertexesLeft(int numVertexesLeft) |
void |
setNumVertexesRight(int numVertexesRight) |
void |
setStartVertexValue(int startVertexValue) |
void |
setValence(int valence) |
void |
setWeighted(boolean weighted) |
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
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
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
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
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, getPeer, 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, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected int numNodes
protected int numEdges
protected int valence
protected int numRows
protected int numVertexesInBranch
protected int numColumns
protected int minWeight
protected int maxWeight
protected int numVertexesLeft
protected int numVertexesRight
protected int startVertexValue
protected int endVertexValue
protected int numBranches
protected boolean arrows
protected boolean weighted
protected boolean allowSelfLoops
protected boolean allowMultipleEdges
protected boolean forceConnected
protected float groupSpacing
protected float gridSpacing
protected boolean insertGraph
protected mxGraph graph
protected mxAnalysisGraph aGraph
protected mxGraphProperties.GraphType graphType
protected javax.swing.JTextField maxTreeNodeChildren
protected javax.swing.JTextField numNodesField
protected javax.swing.JTextField numEdgesField
protected javax.swing.JTextField valenceField
protected javax.swing.JTextField numRowsField
protected javax.swing.JTextField numColumnsField
protected javax.swing.JTextField gridSpacingField
protected javax.swing.JTextField numVertexesLeftField
protected javax.swing.JTextField numVertexesRightField
protected javax.swing.JTextField groupSpacingField
protected javax.swing.JCheckBox arrowsBox
protected javax.swing.JTextField startVertexValueField
protected javax.swing.JTextField endVertexValueField
protected javax.swing.JCheckBox selfLoopBox
protected javax.swing.JCheckBox multipleEdgeBox
protected javax.swing.JCheckBox forceConnectedBox
protected javax.swing.JCheckBox weightedBox
protected javax.swing.JTextField maxWeightField
protected javax.swing.JTextField minWeightField
protected javax.swing.JTextField numBranchesField
protected javax.swing.JTextField numVertexesInBranchField
public GraphConfigDialog(mxGraphProperties.GraphType graphType2, java.lang.String dialogText)
public int getNumVertexesInBranch()
public void setNumVertexesInBranch(int numVertexesInBranch)
public int getMinWeight()
public void setMinWeight(int minWeight)
public int getMaxWeight()
public void setMaxWeight(int maxWeight)
public int getNumBranches()
public void setNumBranches(int numBranches)
public void configAnalysisGraph(mxGraph graph, mxGraphGenerator generator, java.util.Map<java.lang.String,java.lang.Object> props)
protected void applyValues()
public void configureLayout(mxGraph graph, mxGraphProperties.GraphType graphType, mxAnalysisGraph aGraph)
public void setAllowMultipleEdges(boolean allowMultipleEdges)
public void setAllowSelfLoops(boolean allowSelfLoops)
public void setArrows(boolean arrows)
public void setEndVertexValue(int endVertexValue)
public void setForceConnected(boolean forceConnected)
public void setGridSpacing(float gridSpacing)
public void setGroupSpacing(float groupSpacing)
public void setNumColumns(int numColumns)
insertIntoModel
- The insertIntoModel to set.public void setNumEdges(int numEdges)
numEdges
- The numEdges to set.public void setNumNodes(int numNodes)
numNodes
- The numNodes to set.public void setNumRows(int numRows)
public void setNumVertexesLeft(int numVertexesLeft)
public void setNumVertexesRight(int numVertexesRight)
public void setStartVertexValue(int startVertexValue)
public void setValence(int valence)
public int getEndVertexValue()
public float getGridSpacing()
public float getGroupSpacing()
public int getNumColumns()
public int getNumEdges()
public int getNumNodes()
public int getNumRows()
public int getNumVertexesLeft()
public int getNumVertexesRight()
public int getStartVertexValue()
public int getValence()
public boolean isAllowMultipleEdges()
public boolean isAllowSelfLoops()
public boolean isArrows()
public boolean isForceConnected()
public boolean isWeighted()
public void setWeighted(boolean weighted)