Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
614 Zeilen
37 KiB
HTML
614 Zeilen
37 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_79) on Sun Apr 03 00:28:31 PDT 2016 -->
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>JGraphModelAdapter (JGraphT : a free Java graph library)</title>
|
|
<meta name="date" content="2016-04-03">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="JGraphModelAdapter (JGraphT : a free Java graph library)";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/JGraphModelAdapter.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../org/jgrapht/ext/IntegerNameProvider.html" title="class in org.jgrapht.ext"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?org/jgrapht/ext/JGraphModelAdapter.html" target="_top">Frames</a></li>
|
|
<li><a href="JGraphModelAdapter.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested_class_summary">Nested</a> | </li>
|
|
<li><a href="#fields_inherited_from_class_org.jgraph.graph.DefaultGraphModel">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">org.jgrapht.ext</div>
|
|
<h2 title="Class JGraphModelAdapter" class="title">Class JGraphModelAdapter<V,E></h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li><a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true" title="class or interface in javax.swing.undo">javax.swing.undo.UndoableEditSupport</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>org.jgraph.graph.DefaultGraphModel</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>org.jgrapht.ext.JGraphModelAdapter<V,E></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, org.jgraph.graph.GraphModel</dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">JGraphModelAdapter<V,E></span>
|
|
extends org.jgraph.graph.DefaultGraphModel</pre>
|
|
<div class="block">An adapter that reflects a JGraphT graph as a JGraph graph. This adapter is
|
|
useful when using JGraph in order to visualize JGraphT graphs. For more about
|
|
JGraph see <a href="http://jgraph.sourceforge.net">
|
|
http://jgraph.sourceforge.net</a>
|
|
|
|
<p>Modifications made to the underlying JGraphT graph are reflected to this
|
|
JGraph model if and only if the underlying JGraphT graph is a <a href="../../../org/jgrapht/ListenableGraph.html" title="interface in org.jgrapht"><code>ListenableGraph</code></a>. If the underlying JGraphT graph is <i>not</i>
|
|
ListenableGraph, then this JGraph model represent a snapshot if the graph at
|
|
the time of its creation.</p>
|
|
|
|
<p>Changes made to this JGraph model are also reflected back to the
|
|
underlying JGraphT graph. To avoid confusion, variables are prefixed
|
|
according to the JGraph/JGraphT object(s) they are referring to.</p>
|
|
|
|
<p><b>KNOWN BUGS:</b> There is a small issue to be aware of. JGraph allows
|
|
'dangling edges' incident with just one vertex; JGraphT doesn't. Such a
|
|
configuration can arise when adding an edge or removing a vertex. The code
|
|
handles this by removing the newly-added dangling edge or removing all edges
|
|
incident with the vertex before actually removing the vertex, respectively.
|
|
This works very well, only it doesn't play all that nicely with the
|
|
undo-manager in the JGraph: for the second situation where you remove a
|
|
vertex incident with some edges, if you undo the removal, the vertex is
|
|
'unremoved' but the edges aren't.</p></div>
|
|
<dl><dt><span class="strong">Since:</span></dt>
|
|
<dd>Aug 2, 2003</dd>
|
|
<dt><span class="strong">Author:</span></dt>
|
|
<dd>Barak Naveh</dd>
|
|
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#org.jgrapht.ext.JGraphModelAdapter">Serialized Form</a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="nested_class_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Class and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static interface </code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext">JGraphModelAdapter.CellFactory</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="type parameter in JGraphModelAdapter.CellFactory">VV</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="type parameter in JGraphModelAdapter.CellFactory">EE</a>></strong></code>
|
|
<div class="block">Creates the JGraph cells that reflect the respective JGraphT elements.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.DefaultCellFactory.html" title="class in org.jgrapht.ext">JGraphModelAdapter.DefaultCellFactory</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.DefaultCellFactory.html" title="type parameter in JGraphModelAdapter.DefaultCellFactory">VV</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.DefaultCellFactory.html" title="type parameter in JGraphModelAdapter.DefaultCellFactory">EE</a>></strong></code>
|
|
<div class="block">A simple default cell factory.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="nested_classes_inherited_from_class_org.jgraph.graph.DefaultGraphModel">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested classes/interfaces inherited from class org.jgraph.graph.DefaultGraphModel</h3>
|
|
<code>org.jgraph.graph.DefaultGraphModel.EmptyIterator, org.jgraph.graph.DefaultGraphModel.GraphModelEdit, org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="fields_inherited_from_class_org.jgraph.graph.DefaultGraphModel">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Fields inherited from class org.jgraph.graph.DefaultGraphModel</h3>
|
|
<code>asksAllowsChildren, attributes, emptyIterator, listenerList, removeEmptyGroups, roots, transAddedCells, transEditAttrs, transEditCS, transEditPM, transRemovedCells, updateLevel</code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="fields_inherited_from_class_javax.swing.undo.UndoableEditSupport">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Fields inherited from class javax.swing.undo.<a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true" title="class or interface in javax.swing.undo">UndoableEditSupport</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#compoundEdit" title="class or interface in javax.swing.undo">compoundEdit</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#listeners" title="class or interface in javax.swing.undo">listeners</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#realSource" title="class or interface in javax.swing.undo">realSource</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#JGraphModelAdapter(org.jgrapht.Graph)">JGraphModelAdapter</a></strong>(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> jGraphTGraph)</code>
|
|
<div class="block">Constructs a new JGraph model adapter for the specified JGraphT graph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#JGraphModelAdapter(org.jgrapht.Graph,%20org.jgraph.graph.AttributeMap,%20org.jgraph.graph.AttributeMap)">JGraphModelAdapter</a></strong>(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> jGraphTGraph,
|
|
org.jgraph.graph.AttributeMap defaultVertexAttributes,
|
|
org.jgraph.graph.AttributeMap defaultEdgeAttributes)</code>
|
|
<div class="block">Constructs a new JGraph model adapter for the specified JGraphT graph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#JGraphModelAdapter(org.jgrapht.Graph,%20org.jgraph.graph.AttributeMap,%20org.jgraph.graph.AttributeMap,%20org.jgrapht.ext.JGraphModelAdapter.CellFactory)">JGraphModelAdapter</a></strong>(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> jGraphTGraph,
|
|
org.jgraph.graph.AttributeMap defaultVertexAttributes,
|
|
org.jgraph.graph.AttributeMap defaultEdgeAttributes,
|
|
<a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext">JGraphModelAdapter.CellFactory</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> cellFactory)</code>
|
|
<div class="block">Constructs a new JGraph model adapter for the specified JGraphT graph.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <V,E> org.jgraph.graph.AttributeMap</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#createDefaultEdgeAttributes(org.jgrapht.Graph)">createDefaultEdgeAttributes</a></strong>(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><V,E> jGraphTGraph)</code>
|
|
<div class="block">Creates and returns a map of attributes to be used as defaults for edge
|
|
attributes, depending on the specified graph.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static org.jgraph.graph.AttributeMap</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#createDefaultVertexAttributes()">createDefaultVertexAttributes</a></strong>()</code>
|
|
<div class="block">Creates and returns a map of attributes to be used as defaults for vertex
|
|
attributes.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext">JGraphModelAdapter.CellFactory</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#getCellFactory()">getCellFactory</a></strong>()</code>
|
|
<div class="block">Returns the cell factory used to create the JGraph cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>org.jgraph.graph.AttributeMap</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#getDefaultEdgeAttributes()">getDefaultEdgeAttributes</a></strong>()</code>
|
|
<div class="block">Returns the default edge attributes used for creating new JGraph edges.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>org.jgraph.graph.AttributeMap</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#getDefaultVertexAttributes()">getDefaultVertexAttributes</a></strong>()</code>
|
|
<div class="block">Returns the default vertex attributes used for creating new JGraph
|
|
vertices.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>org.jgraph.graph.DefaultEdge</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#getEdgeCell(E)">getEdgeCell</a></strong>(<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a> jGraphTEdge)</code>
|
|
<div class="block">Returns the JGraph edge cell that corresponds to the specified JGraphT
|
|
edge.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>org.jgraph.graph.DefaultGraphCell</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#getVertexCell(java.lang.Object)">getVertexCell</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> jGraphTVertex)</code>
|
|
<div class="block">Returns the JGraph vertex cell that corresponds to the specified JGraphT
|
|
vertex.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>org.jgraph.graph.DefaultPort</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#getVertexPort(java.lang.Object)">getVertexPort</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> jGraphTVertex)</code>
|
|
<div class="block">Returns the JGraph port cell that corresponds to the specified JGraphT
|
|
vertex.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#setDefaultEdgeAttributes(org.jgraph.graph.AttributeMap)">setDefaultEdgeAttributes</a></strong>(org.jgraph.graph.AttributeMap defaultEdgeAttributes)</code>
|
|
<div class="block">Sets the default edge attributes used for creating new JGraph edges.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../org/jgrapht/ext/JGraphModelAdapter.html#setDefaultVertexAttributes(org.jgraph.graph.AttributeMap)">setDefaultVertexAttributes</a></strong>(org.jgraph.graph.AttributeMap defaultVertexAttributes)</code>
|
|
<div class="block">Sets the default vertex attributes used for creating new JGraph vertices.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_org.jgraph.graph.DefaultGraphModel">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class org.jgraph.graph.DefaultGraphModel</h3>
|
|
<code>acceptsSource, acceptsTarget, addGraphModelListener, beginUpdate, cellsChanged, cloneCell, cloneCell, cloneCell, cloneCells, cloneUserObject, connect, contains, containsEdgeBetween, createEdit, createLayerEdit, createRemoveEdit, edges, edit, edit, endUpdate, execute, fireGraphChanged, getAll, getAttributes, getAttributes, getChild, getChildCount, getConnectionSet, getDescendants, getEdges, getEdges, getEdgesBetween, getGraphModelListeners, getIncomingEdges, getIndexOfChild, getIndexOfRoot, getOpposite, getOutgoingEdges, getParent, getRootAt, getRootCount, getRoots, getRoots, getRoots, getRootsAsCollection, getSource, getSourceVertex, getTarget, getTargetVertex, getTopmostCells, getUpdateLevel, getUserObject, getValue, handleAttributes, handleConnection, handleConnectionSet, handleInsert, handleParentMap, handleRemove, hasAncestorIn, insert, isEdge, isGroup, isLeaf, isPort, isRemoveEmptyGroups, isVertex, order, remove, removeGraphModelListener, setParent, setRemoveEmptyGroups, setSourcePort, setTargetPort, toBack, toFront, updateTransaction, valueForCellChanged</code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_javax.swing.undo.UndoableEditSupport">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class javax.swing.undo.<a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true" title="class or interface in javax.swing.undo">UndoableEditSupport</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#_postEdit(javax.swing.undo.UndoableEdit)" title="class or interface in javax.swing.undo">_postEdit</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#addUndoableEditListener(javax.swing.event.UndoableEditListener)" title="class or interface in javax.swing.undo">addUndoableEditListener</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#createCompoundEdit()" title="class or interface in javax.swing.undo">createCompoundEdit</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#getUndoableEditListeners()" title="class or interface in javax.swing.undo">getUndoableEditListeners</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#postEdit(javax.swing.undo.UndoableEdit)" title="class or interface in javax.swing.undo">postEdit</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#removeUndoableEditListener(javax.swing.event.UndoableEditListener)" title="class or interface in javax.swing.undo">removeUndoableEditListener</a>, <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/undo/UndoableEditSupport.html?is-external=true#toString()" title="class or interface in javax.swing.undo">toString</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_org.jgraph.graph.GraphModel">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface org.jgraph.graph.GraphModel</h3>
|
|
<code>addUndoableEditListener, removeUndoableEditListener</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="JGraphModelAdapter(org.jgrapht.Graph)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>JGraphModelAdapter</h4>
|
|
<pre>public JGraphModelAdapter(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> jGraphTGraph)</pre>
|
|
<div class="block">Constructs a new JGraph model adapter for the specified JGraphT graph.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jGraphTGraph</code> - the JGraphT graph for which JGraph model adapter to
|
|
be created. <code>null</code> is NOT permitted.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="JGraphModelAdapter(org.jgrapht.Graph, org.jgraph.graph.AttributeMap, org.jgraph.graph.AttributeMap)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>JGraphModelAdapter</h4>
|
|
<pre>public JGraphModelAdapter(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> jGraphTGraph,
|
|
org.jgraph.graph.AttributeMap defaultVertexAttributes,
|
|
org.jgraph.graph.AttributeMap defaultEdgeAttributes)</pre>
|
|
<div class="block">Constructs a new JGraph model adapter for the specified JGraphT graph.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jGraphTGraph</code> - the JGraphT graph for which JGraph model adapter to
|
|
be created. <code>null</code> is NOT permitted.</dd><dd><code>defaultVertexAttributes</code> - a default map of JGraph attributes to
|
|
format vertices. <code>null</code> is NOT permitted.</dd><dd><code>defaultEdgeAttributes</code> - a default map of JGraph attributes to format
|
|
edges. <code>null</code> is NOT permitted.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="JGraphModelAdapter(org.jgrapht.Graph, org.jgraph.graph.AttributeMap, org.jgraph.graph.AttributeMap, org.jgrapht.ext.JGraphModelAdapter.CellFactory)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>JGraphModelAdapter</h4>
|
|
<pre>public JGraphModelAdapter(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> jGraphTGraph,
|
|
org.jgraph.graph.AttributeMap defaultVertexAttributes,
|
|
org.jgraph.graph.AttributeMap defaultEdgeAttributes,
|
|
<a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext">JGraphModelAdapter.CellFactory</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> cellFactory)</pre>
|
|
<div class="block">Constructs a new JGraph model adapter for the specified JGraphT graph.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jGraphTGraph</code> - the JGraphT graph for which JGraph model adapter to
|
|
be created. <code>null</code> is NOT permitted.</dd><dd><code>defaultVertexAttributes</code> - a default map of JGraph attributes to
|
|
format vertices. <code>null</code> is NOT permitted.</dd><dd><code>defaultEdgeAttributes</code> - a default map of JGraph attributes to format
|
|
edges. <code>null</code> is NOT permitted.</dd><dd><code>cellFactory</code> - a <a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext"><code>JGraphModelAdapter.CellFactory</code></a> to be used to create the JGraph
|
|
cells. <code>null</code> is NOT permitted.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="createDefaultEdgeAttributes(org.jgrapht.Graph)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createDefaultEdgeAttributes</h4>
|
|
<pre>public static <V,E> org.jgraph.graph.AttributeMap createDefaultEdgeAttributes(<a href="../../../org/jgrapht/Graph.html" title="interface in org.jgrapht">Graph</a><V,E> jGraphTGraph)</pre>
|
|
<div class="block">Creates and returns a map of attributes to be used as defaults for edge
|
|
attributes, depending on the specified graph.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jGraphTGraph</code> - the graph for which default edge attributes to be
|
|
created.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>a map of attributes to be used as default for edge attributes.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createDefaultVertexAttributes()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createDefaultVertexAttributes</h4>
|
|
<pre>public static org.jgraph.graph.AttributeMap createDefaultVertexAttributes()</pre>
|
|
<div class="block">Creates and returns a map of attributes to be used as defaults for vertex
|
|
attributes.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>a map of attributes to be used as defaults for vertex attributes.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getCellFactory()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCellFactory</h4>
|
|
<pre>public <a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext">JGraphModelAdapter.CellFactory</a><<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">V</a>,<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a>> getCellFactory()</pre>
|
|
<div class="block">Returns the cell factory used to create the JGraph cells.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the cell factory used to create the JGraph cells.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDefaultEdgeAttributes(org.jgraph.graph.AttributeMap)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDefaultEdgeAttributes</h4>
|
|
<pre>public void setDefaultEdgeAttributes(org.jgraph.graph.AttributeMap defaultEdgeAttributes)</pre>
|
|
<div class="block">Sets the default edge attributes used for creating new JGraph edges.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>defaultEdgeAttributes</code> - the default edge attributes to set.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDefaultEdgeAttributes()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDefaultEdgeAttributes</h4>
|
|
<pre>public org.jgraph.graph.AttributeMap getDefaultEdgeAttributes()</pre>
|
|
<div class="block">Returns the default edge attributes used for creating new JGraph edges.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the default edge attributes used for creating new JGraph edges.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDefaultVertexAttributes(org.jgraph.graph.AttributeMap)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDefaultVertexAttributes</h4>
|
|
<pre>public void setDefaultVertexAttributes(org.jgraph.graph.AttributeMap defaultVertexAttributes)</pre>
|
|
<div class="block">Sets the default vertex attributes used for creating new JGraph vertices.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>defaultVertexAttributes</code> - the default vertex attributes to set.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDefaultVertexAttributes()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDefaultVertexAttributes</h4>
|
|
<pre>public org.jgraph.graph.AttributeMap getDefaultVertexAttributes()</pre>
|
|
<div class="block">Returns the default vertex attributes used for creating new JGraph
|
|
vertices.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the default vertex attributes used for creating new JGraph
|
|
vertices.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getEdgeCell(java.lang.Object)">
|
|
<!-- -->
|
|
</a><a name="getEdgeCell(E)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEdgeCell</h4>
|
|
<pre>public org.jgraph.graph.DefaultEdge getEdgeCell(<a href="../../../org/jgrapht/ext/JGraphModelAdapter.html" title="type parameter in JGraphModelAdapter">E</a> jGraphTEdge)</pre>
|
|
<div class="block">Returns the JGraph edge cell that corresponds to the specified JGraphT
|
|
edge. If no corresponding cell found, returns <code>null</code>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jGraphTEdge</code> - a JGraphT edge of the JGraphT graph.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>the JGraph edge cell that corresponds to the specified JGraphT
|
|
edge, or <code>null</code> if no corresponding cell found.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getVertexCell(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getVertexCell</h4>
|
|
<pre>public org.jgraph.graph.DefaultGraphCell getVertexCell(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> jGraphTVertex)</pre>
|
|
<div class="block">Returns the JGraph vertex cell that corresponds to the specified JGraphT
|
|
vertex. If no corresponding cell found, returns <code>null</code>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jGraphTVertex</code> - a JGraphT vertex of the JGraphT graph.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>the JGraph vertex cell that corresponds to the specified JGraphT
|
|
vertex, or <code>null</code> if no corresponding cell found.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getVertexPort(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getVertexPort</h4>
|
|
<pre>public org.jgraph.graph.DefaultPort getVertexPort(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> jGraphTVertex)</pre>
|
|
<div class="block">Returns the JGraph port cell that corresponds to the specified JGraphT
|
|
vertex. If no corresponding port found, returns <code>null</code>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jGraphTVertex</code> - a JGraphT vertex of the JGraphT graph.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>the JGraph port cell that corresponds to the specified JGraphT
|
|
vertex, or <code>null</code> if no corresponding cell found.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/JGraphModelAdapter.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../org/jgrapht/ext/IntegerNameProvider.html" title="class in org.jgrapht.ext"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../org/jgrapht/ext/JGraphModelAdapter.CellFactory.html" title="interface in org.jgrapht.ext"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?org/jgrapht/ext/JGraphModelAdapter.html" target="_top">Frames</a></li>
|
|
<li><a href="JGraphModelAdapter.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested_class_summary">Nested</a> | </li>
|
|
<li><a href="#fields_inherited_from_class_org.jgraph.graph.DefaultGraphModel">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small>Copyright © 2016. All rights reserved.</small></p>
|
|
</body>
|
|
</html>
|