public final class KielerGraphUtil
extends java.lang.Object
| Red (cxh) |
| Red (cxh) |
| Constructor and Description |
|---|
KielerGraphUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static de.cau.cs.kieler.core.kgraph.KNode |
_getParent(de.cau.cs.kieler.core.kgraph.KEdge edge)
Get the parent node of an KIELER KEdge.
|
protected static de.cau.cs.kieler.core.math.KVector |
_getUpperLeftCorner(de.cau.cs.kieler.core.kgraph.KNode parent)
Get the upper left corner of the real bounding box of the contents of a
given KIELER node.
|
protected static java.awt.geom.Point2D |
_shrinkCoordinates(java.awt.geom.Rectangle2D originalBounds,
java.awt.geom.Rectangle2D shrunkBounds,
int direction,
float offset)
Reposition a small object in a big object according to a given direction
(NORTH, EAST, SOUTH, WEST).
|
protected static java.lang.String |
_toString(de.cau.cs.kieler.core.kgraph.KEdge edge)
Debug output a KEdge to a String, i.e. will represent all bend points in
the String.
|
protected static java.lang.String |
_toString(de.cau.cs.kieler.core.kgraph.KNode knode)
Debug output a KNode to a String, i.e. will represent the whole subgraph
starting with this node recursively and also present all outgoing edges
of all nodes.
|
protected static java.lang.String |
_toString(de.cau.cs.kieler.core.kgraph.KNode knode,
int level)
Debug output a KNode to a String, i.e. will represent the whole subgraph
starting with this node recursively and also present all outgoing edges
of all nodes.
|
protected static void |
_writeToFile(de.cau.cs.kieler.core.kgraph.KNode kgraph)
Write a KGraph (KIELER graph data structure) to a file in its XMI
representation.
|
protected static de.cau.cs.kieler.core.kgraph.KNode _getParent(de.cau.cs.kieler.core.kgraph.KEdge edge)
edge - The KIELER edge to determine the parent node.protected static de.cau.cs.kieler.core.math.KVector _getUpperLeftCorner(de.cau.cs.kieler.core.kgraph.KNode parent)
parent - The composite KIELER node that contains other nodes.protected static java.awt.geom.Point2D _shrinkCoordinates(java.awt.geom.Rectangle2D originalBounds,
java.awt.geom.Rectangle2D shrunkBounds,
int direction,
float offset)
originalBounds - Big object's boundsshrunkBounds - Small object's boundsdirection - Direction of the small object within the big object
given by a SwingConstants direction constantoffset - Offset of the lower bound of the portprotected static java.lang.String _toString(de.cau.cs.kieler.core.kgraph.KEdge edge)
edge - The edge to be toStringedprotected static java.lang.String _toString(de.cau.cs.kieler.core.kgraph.KNode knode)
knode - The node to be toStringedprotected static java.lang.String _toString(de.cau.cs.kieler.core.kgraph.KNode knode,
int level)
knode - The node to be toStringedlevel - Tree level of the currently processed element. Used for
recursive operation.protected static void _writeToFile(de.cau.cs.kieler.core.kgraph.KNode kgraph)
kgraph - The KIELER graph data structure given by its root KNode.