Package | Description |
---|---|
org.girod.jgraphml.layout |
This package contains one factory class allowing to simplify applying layouts to
GraphMLDiagram graphs. |
org.girod.jgraphml.model |
This package contains the graphml model classes.
|
org.girod.jgraphml.model.templates |
This package contains the graphml template classes.
|
org.girod.jgraphml.utils |
This package contains a class which have some layout utilities for the library.
|
Modifier and Type | Method and Description |
---|---|
void |
GraphMLLayoutFactory.layout(GraphMLDiagram diagram,
Layout<IGraphMLNode,GraphMLEdge> layout)
Apply a layout on a default size.
|
void |
GraphMLLayoutFactory.layout(GraphMLDiagram diagram,
Layout<IGraphMLNode,GraphMLEdge> layout,
boolean updateEdges)
Apply a layout on a default size.
|
void |
GraphMLLayoutFactory.layout(GraphMLDiagram diagram,
Layout<IGraphMLNode,GraphMLEdge> layout,
boolean updateEdges,
java.awt.Dimension size)
Apply a layout.
|
void |
GraphMLLayoutFactory.layout(GraphMLDiagram diagram,
Layout<IGraphMLNode,GraphMLEdge> layout,
java.awt.Dimension size)
Apply a layout.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractGraphMLNode
An abstract graph node.
|
class |
GraphMLGroupNode
A graphml node group.
|
class |
GraphMLNode
A graphml node.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.SortedMap<java.lang.String,IGraphMLNode> |
AbstractGraphMLDiagram.children
The children nodes.
|
protected java.util.SortedMap<java.lang.String,IGraphMLNode> |
AbstractGraphMLDiagram.nodes
The nodes.
|
Modifier and Type | Method and Description |
---|---|
IGraphMLNode |
IGraphMLNode.clone()
Clone the node.
|
IGraphMLNode |
AbstractGraphMLDiagram.getDest(GraphMLEdge edge)
If
directed_edge is a directed edge in this graph, returns the destination; otherwise returns null . |
IGraphMLNode |
GraphMLEdge.getSource()
Return the edge source.
|
IGraphMLNode |
AbstractGraphMLDiagram.getSource(GraphMLEdge edge)
If
directed_edge is a directed edge in this graph, returns the source; otherwise returns null . |
IGraphMLNode |
GraphMLEdge.getTarget()
Return the edge target.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.util.List<IGraphMLNode>> |
Utilities.getAllChildrenNodesByLabel(NodeParent nodeParent)
Return all the children nodes by their label if it exists.
|
static java.util.Map<java.lang.String,java.util.List<IGraphMLNode>> |
Utilities.getAllNodesByLabel(GraphMLDiagram diagram)
Return the nodes by their label if it exists.
|
java.util.SortedMap<java.lang.String,IGraphMLNode> |
AbstractGraphMLDiagram.getChildren()
Return the nodes.
|
java.util.SortedMap<java.lang.String,IGraphMLNode> |
GraphMLGroupNode.getChildren()
Return the children nodes.
|
java.util.SortedMap<java.lang.String,IGraphMLNode> |
NodeParent.getChildren()
Return the children nodes.
|
static java.util.Map<java.lang.String,IGraphMLNode> |
Utilities.getChildrenNodesByLabel(NodeParent nodeParent)
Return the children nodes by their label if it exists.
|
Pair<IGraphMLNode> |
AbstractGraphMLDiagram.getEndpoints(GraphMLEdge edge)
Returns the endpoints of
edge as a Pair<V> . |
java.util.Collection<IGraphMLNode> |
AbstractGraphMLDiagram.getNeighbors(IGraphMLNode vertex)
Returns the collection of vertices which are connected to
vertex via any edges in this graph. |
java.util.SortedMap<java.lang.String,IGraphMLNode> |
AbstractGraphMLDiagram.getNodes()
Return the nodes.
|
static java.util.Map<java.lang.String,IGraphMLNode> |
Utilities.getNodesByLabel(GraphMLDiagram diagram)
Return the nodes by their label if it exists.
|
java.util.Collection<IGraphMLNode> |
AbstractGraphMLDiagram.getPredecessors(IGraphMLNode vertex)
Returns a
Collection view of the predecessors of vertex in this graph. |
java.util.Collection<IGraphMLNode> |
AbstractGraphMLDiagram.getSuccessors(IGraphMLNode vertex)
Returns a
Collection view of the successors of vertex in this graph. |
java.util.Collection<IGraphMLNode> |
AbstractGraphMLDiagram.getVerticesView()
Returns a view of all vertices in this graph.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractGraphMLDiagram.addChild(IGraphMLNode node)
Adds a node to this graph.
|
boolean |
GraphMLDiagram.addChild(IGraphMLNode node)
Adds a child node to this graph.
|
boolean |
GraphMLGroupNode.addChild(IGraphMLNode node)
Adds a child node to the group.
|
boolean |
NodeParent.addChild(IGraphMLNode node)
Adds a child node to the parent.
|
boolean |
AbstractGraphMLDiagram.addEdge(GraphMLEdge edge,
IGraphMLNode source,
IGraphMLNode target)
Add an edge from a source to a target.
|
boolean |
GraphMLDiagram.addEdge(GraphMLEdge edge,
IGraphMLNode source,
IGraphMLNode target)
Add an edge from a source to a target.
|
GraphMLEdge |
AbstractGraphMLDiagram.addEdge(IGraphMLNode source,
IGraphMLNode target)
Add an edge from a source to a target.
|
GraphMLEdge |
GraphMLDiagram.addEdge(IGraphMLNode source,
IGraphMLNode target)
Add an edge from a source to a target.
|
GraphMLEdge |
AbstractGraphMLNode.addEdgeFrom(IGraphMLNode source)
Add an edge from another node to this one.
|
GraphMLEdge |
IGraphMLNode.addEdgeFrom(IGraphMLNode source)
Add an edge from another node to this one.
|
GraphMLEdge |
AbstractGraphMLDiagram.addEdgeFromTemplate(IGraphMLNode source,
IGraphMLNode target,
java.lang.String id)
Add an edge from a source to a target, using a template.
|
GraphMLEdge |
GraphMLDiagram.addEdgeFromTemplate(IGraphMLNode source,
IGraphMLNode target,
java.lang.String id)
Add an edge from a source to a target, using a template.
|
GraphMLEdge |
AbstractGraphMLNode.addEdgeTo(IGraphMLNode target)
Add an edge from this node to another one.
|
GraphMLEdge |
IGraphMLNode.addEdgeTo(IGraphMLNode target)
Add an edge from this node to another one.
|
GraphMLEdge |
GraphMLDiagram.addEdgeWithLabel(IGraphMLNode source,
IGraphMLNode target,
java.lang.String text)
Add an edge from a source to a target, with a specified text.
|
boolean |
AbstractGraphMLDiagram.addNode(IGraphMLNode node)
Adds a node to this graph.
|
boolean |
AbstractGraphMLDiagram.addNode(IGraphMLNode node,
boolean acceptNewID)
Adds a node to this graph.
|
boolean |
AbstractGraphMLDiagram.addVertex(IGraphMLNode vertex)
Adds
vertex to this graph. |
boolean |
AbstractGraphMLDiagram.addVertex(IGraphMLNode vertex,
boolean acceptNewID)
Adds
vertex to this graph. |
boolean |
AbstractGraphMLDiagram.containsVertex(IGraphMLNode vertex)
Returns true if this graph's vertex collection contains
vertex . |
java.util.Collection<GraphMLEdge> |
AbstractGraphMLDiagram.getIncidentEdges(IGraphMLNode vertex)
Returns the collection of edges in this graph which are connected to
vertex . |
java.util.Collection<GraphMLEdge> |
AbstractGraphMLDiagram.getInEdges(IGraphMLNode vertex)
Returns a
Collection view of the incoming edges incident to vertex in this graph. |
java.util.Collection<IGraphMLNode> |
AbstractGraphMLDiagram.getNeighbors(IGraphMLNode vertex)
Returns the collection of vertices which are connected to
vertex via any edges in this graph. |
java.util.Collection<GraphMLEdge> |
AbstractGraphMLDiagram.getOutEdges(IGraphMLNode vertex)
Returns a
Collection view of the outgoing edges incident to vertex in this graph. |
java.util.Collection<IGraphMLNode> |
AbstractGraphMLDiagram.getPredecessors(IGraphMLNode vertex)
Returns a
Collection view of the predecessors of vertex in this graph. |
java.util.Collection<IGraphMLNode> |
AbstractGraphMLDiagram.getSuccessors(IGraphMLNode vertex)
Returns a
Collection view of the successors of vertex in this graph. |
boolean |
AbstractGraphMLDiagram.isDest(IGraphMLNode vertex,
GraphMLEdge edge)
Returns
true if vertex is the destination of edge . |
boolean |
AbstractGraphMLDiagram.isSource(IGraphMLNode vertex,
GraphMLEdge edge)
Returns
true if vertex is the source of edge . |
boolean |
AbstractGraphMLDiagram.removeVertex(IGraphMLNode vertex)
Removes
vertex from this graph. |
void |
GraphMLEdge.setSource(IGraphMLNode source)
Return the edge source.
|
void |
GraphMLEdge.setTarget(IGraphMLNode target)
Set the edge target.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractGraphMLDiagram.addEdgeWithEndpoints(GraphMLEdge edge,
Pair<? extends IGraphMLNode> endpoints,
EdgeType edgeType)
Add an edgeto this graph with the specified endpoints and EdgeType.
|
Modifier and Type | Class and Description |
---|---|
class |
GraphMLGroupNodeTemplate
A graphml node group template.
|
class |
GraphMLNodeTemplate
A graphml node template.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.geom.Rectangle2D |
LayoutUtilities.getRectangle(IGraphMLNode node)
Return a rectangle corresponding to the position and dimension of the node.
|
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence