|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPolyLine.PolyLineDrawing
public class PolyLineDrawing
An object which executes the polyline drawing.
This class takes weakstratification object which has all the nodes inCopyright: Copyright (c) 2008
Company: Bangladesh University of engineering and technology
Field Summary | |
---|---|
(package private) int[][] |
graph
Graph as a adjacency matrix . |
(package private) int[][] |
nodeList
nodeList is a n by 3 array. |
(package private) java.io.File |
output
File |
(package private) Realizer |
realizer
Realizer Object. |
(package private) int |
totalNodes
Contains total nodes in the graph including the dummy vertices. |
Constructor Summary | |
---|---|
PolyLineDrawing(WeakStratification wk,
java.io.File output)
Constructor for the class PolyLine Drawing |
Method Summary | |
---|---|
private void |
addEdge()
Adds edges towards parent of tree_1 , tree_2 and child of tree_0 Also creates bends in the graph array. |
private void |
assignX()
Assigns the abscissa ( x co ordinate) of each node |
private void |
assignXL_XR()
Assigns all nodes xL ( left most leaf of the node in subtree of tree_0) and xR ( right most leaf of the node in subtree of tree_0) |
java.lang.String |
toString()
Generates string value of this object |
private void |
writeToFile()
Writes to output file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Realizer realizer
int[][] graph
int[][] nodeList
int totalNodes
java.io.File output
Constructor Detail |
---|
public PolyLineDrawing(WeakStratification wk, java.io.File output)
Constructor for the class PolyLine Drawing
wk
- an WeakStratification object where layer value is
already computed.output
- Output File where the text file output to be given.Method Detail |
---|
private void writeToFile()
private void addEdge()
private void assignXL_XR()
private void assignX()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |