public abstract class ModelView
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<org.jgraph.graph.DefaultGraphCell> |
cells |
protected DGraph |
graph |
Modifier and Type | Method and Description |
---|---|
protected void |
addCell(org.jgraph.graph.DefaultGraphCell cell)
addCell
|
void |
addEdge(org.jgraph.graph.DefaultGraphCell cell,
org.jgraph.graph.DefaultGraphCell source,
org.jgraph.graph.DefaultGraphCell target)
addEdge
|
void |
addEdge(org.jgraph.graph.DefaultGraphCell cell,
javax.swing.tree.TreeNode source,
javax.swing.tree.TreeNode target)
addEdge
|
void |
addVertex(org.jgraph.graph.DefaultGraphCell cell)
addVertex
|
protected void |
clear()
clear
|
void |
clearSelection() |
protected java.util.List<org.jgraph.graph.DefaultGraphCell> |
getCells()
getCells
|
protected java.util.List<org.jgraph.graph.DefaultGraphCell> |
getCells(java.lang.Object object)
getCell
|
DGraph |
getGraph()
getGraph
|
org.jgraph.graph.GraphModel |
getModel()
getModel
|
protected DVertex |
getVertex(org.jgraph.graph.Port port)
getVertex
|
java.lang.Object |
getVertexObject(org.jgraph.graph.Port port)
getVertexObject
|
protected void |
removeCells(java.lang.Object[] cells)
removeCell
|
void |
updateUI()
updateUI
|
void |
updateUI(org.jgraph.graph.DefaultGraphCell cell)
updateUI
|
protected java.util.List<DVertex> |
vertexCells()
vertexCells
|
protected transient java.util.List<org.jgraph.graph.DefaultGraphCell> cells
protected transient DGraph graph
public ModelView()
public ModelView(ModelView view)
public void addVertex(org.jgraph.graph.DefaultGraphCell cell)
cell
- DefaultGraphCellpublic void addEdge(org.jgraph.graph.DefaultGraphCell cell, org.jgraph.graph.DefaultGraphCell source, org.jgraph.graph.DefaultGraphCell target)
cell
- DefaultGraphCellsource
- DefaultGraphCelltarget
- DefaultGraphCellpublic void addEdge(org.jgraph.graph.DefaultGraphCell cell, javax.swing.tree.TreeNode source, javax.swing.tree.TreeNode target)
cell
- DefaultGraphCellsource
- DefaultGraphCelltarget
- DefaultGraphCellprotected void addCell(org.jgraph.graph.DefaultGraphCell cell)
cell
- DefaultGraphCellpublic DGraph getGraph()
public org.jgraph.graph.GraphModel getModel()
protected void removeCells(java.lang.Object[] cells)
cells
- Objectprotected java.util.List<org.jgraph.graph.DefaultGraphCell> getCells(java.lang.Object object)
object
- Objectprotected java.util.List<org.jgraph.graph.DefaultGraphCell> getCells()
protected void clear()
public void updateUI()
public void updateUI(org.jgraph.graph.DefaultGraphCell cell)
cell
- DefaultGraphCellprotected DVertex getVertex(org.jgraph.graph.Port port)
port
- Portpublic java.lang.Object getVertexObject(org.jgraph.graph.Port port)
port
- Portprotected java.util.List<DVertex> vertexCells()
public void clearSelection()