|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectJGraphLayoutAlgorithm
ImprovedJGraphLayout
DomGraphLayout
public class DomGraphLayout
A layout algorithm for a dominance graph represented by a JDomGraph.
| Method Summary | ||
|---|---|---|
void |
addRelXtoParent(DefaultGraphCell node,
Integer x)
|
|
void |
addRelXtoRoot(DefaultGraphCell node,
Integer x)
|
|
void |
addRelYpos(DefaultGraphCell node,
Integer y)
|
|
static
|
addToMapList(Map<E,List<T>> map,
E key,
T nVal)
Generic method that handles maps from an Object to a list of objects and ads a new entry to the value list with the specified object key. |
|
Map<DefaultGraphCell,Shape> |
getNodesToShape()
|
|
Shape |
getNodesToShape(DefaultGraphCell node)
|
|
int |
getNodeWidth(DefaultGraphCell node)
Returns the node with computed by the JDomGraph. |
|
Integer |
getRelXtoParent(DefaultGraphCell node)
|
|
Map<DefaultGraphCell,Integer> |
getRelXtoRoot()
|
|
void |
putNodeToShape(DefaultGraphCell node,
Shape shape)
|
|
void |
run(JGraph gr,
Object[] cells,
int arg2)
Starts the layout algorithm. |
|
| Methods inherited from class JGraphLayoutAlgorithm |
|---|
createDialog, createDialog, createSettings, getHint, getMaximumProgress, getProgress, isAllowedToRun, populateDialog, run, setAllowedToRun, setMaximumProgress, setProgress |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <E,T> void addToMapList(Map<E,List<T>> map,
E key,
T nVal)
E - the key typeT - the type of the list elementsmap - the mapkey - the key to which list the new value shall be addednVal - the new value
public void putNodeToShape(DefaultGraphCell node,
Shape shape)
putNodeToShape in class ImprovedJGraphLayout
public void run(JGraph gr,
Object[] cells,
int arg2)
run in class ImprovedJGraphLayoutpublic Map<DefaultGraphCell,Shape> getNodesToShape()
public Integer getRelXtoParent(DefaultGraphCell node)
getRelXtoParent in class ImprovedJGraphLayout
public void addRelXtoParent(DefaultGraphCell node,
Integer x)
addRelXtoParent in class ImprovedJGraphLayout
public void addRelYpos(DefaultGraphCell node,
Integer y)
addRelYpos in class ImprovedJGraphLayoutpublic int getNodeWidth(DefaultGraphCell node)
ImprovedJGraphLayoutJDomGraph.
getNodeWidth in class ImprovedJGraphLayoutnode -
public Shape getNodesToShape(DefaultGraphCell node)
getNodesToShape in class ImprovedJGraphLayout
public void addRelXtoRoot(DefaultGraphCell node,
Integer x)
addRelXtoRoot in class ImprovedJGraphLayoutpublic Map<DefaultGraphCell,Integer> getRelXtoRoot()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||