|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.vergil.basic.layout.kieler.KielerGraphUtil
public class KielerGraphUtil
Static helper class to work with KIELER graph datastructures.
Red (cxh) |
Red (cxh) |
Constructor Summary | |
---|---|
KielerGraphUtil()
|
Method Summary | |
---|---|
protected static de.cau.cs.kieler.kiml.layout.klayoutdata.KPoint |
_getAbsoluteKPoint(de.cau.cs.kieler.kiml.layout.klayoutdata.KPoint relativeKPoint,
de.cau.cs.kieler.core.kgraph.KNode parentNode)
Get the absolute position of a point, i.e. the absolute position instead of relative to the top left corner of the parent node. |
protected static de.cau.cs.kieler.kiml.layout.klayoutdata.KShapeLayout |
_getAbsoluteLayout(de.cau.cs.kieler.core.kgraph.KNode node)
Get the absolute layout of a Kieler KNode, i.e. a layout containing an absolute position of the top left corner of the node instead of something relative to only its parent node. |
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.kiml.layout.klayoutdata.KPoint |
_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 KNode. |
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 bendpoints 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 datastructure) to a file in its XMI representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KielerGraphUtil()
Method Detail |
---|
protected static de.cau.cs.kieler.kiml.layout.klayoutdata.KShapeLayout _getAbsoluteLayout(de.cau.cs.kieler.core.kgraph.KNode node)
node
- The KNode of which to retrieve the absolute layout.
protected static de.cau.cs.kieler.kiml.layout.klayoutdata.KPoint _getAbsoluteKPoint(de.cau.cs.kieler.kiml.layout.klayoutdata.KPoint relativeKPoint, de.cau.cs.kieler.core.kgraph.KNode parentNode)
relativeKPoint
- Point with coordinates relative to its parent node.parentNode
- Parent node of the point coordinates.
protected static de.cau.cs.kieler.core.kgraph.KNode _getParent(de.cau.cs.kieler.core.kgraph.KEdge edge)
edge
- The Kieler KEdge to determine the parent node.
protected static de.cau.cs.kieler.kiml.layout.klayoutdata.KPoint _getUpperLeftCorner(de.cau.cs.kieler.core.kgraph.KNode parent)
parent
- The composite Kieler KNode 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 port
protected static java.lang.String _toString(de.cau.cs.kieler.core.kgraph.KEdge edge)
edge
- The edge to be toStringed
protected static java.lang.String _toString(de.cau.cs.kieler.core.kgraph.KNode knode)
knode
- The node to be toStringed
protected 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 datastructure given by its root KNode.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |