org.apache.commons.graph.visualize
Class TouchGraph

java.lang.Object
  extended byorg.apache.commons.graph.visualize.TouchGraph

public class TouchGraph
extends java.lang.Object

Description of the Class


Field Summary
private  double defaultLength
           
private  java.awt.Color edgeColor
           
private  int fontSize
           
private  double lengthFactor
           
private  java.util.Random random
           
private  java.awt.Color textColor
           
private  java.awt.Color vertexColor
           
 
Constructor Summary
TouchGraph()
          Constructor for the TouchGraph object
 
Method Summary
private  java.lang.String getColorText(java.awt.Color color)
          Gets the colorText attribute of the TouchGraph object
 double getDefaultEdgeLength()
          Gets the defaultEdgeLength attribute of the TouchGraph object
 java.awt.Color getEdgeColor()
          Gets the edgeColor attribute of the TouchGraph object
private  java.lang.String getEdgeColorText()
          Gets the edgeColorText attribute of the TouchGraph object
 int getFontSize()
          Gets the fontSize attribute of the TouchGraph object
 java.awt.Color getTextColor()
          Gets the textColor attribute of the TouchGraph object
private  java.lang.String getTextColorText()
          Gets the textColorText attribute of the TouchGraph object
 java.awt.Color getVertexColor()
          Gets the vertexColor attribute of the TouchGraph object
private  java.lang.String getVertexColorText()
          Gets the vertexColorText attribute of the TouchGraph object
 void setDefaultEdgeLength(int length)
          Sets the defaultEdgeLength attribute of the TouchGraph object
 void setEdgeColor(java.awt.Color edgeColor)
          Sets the edgeColor attribute of the TouchGraph object
 void setFontSize(int size)
          Sets the fontSize attribute of the TouchGraph object
 void setTextColor(java.awt.Color vertexColor)
          Sets the textColor attribute of the TouchGraph object
 void setVertexColor(java.awt.Color vertexColor)
          Sets the vertexColor attribute of the TouchGraph object
 void toXML(DirectedGraph graph, java.io.OutputStream os)
          Description of the Method
protected  void writeEdgeset(java.io.PrintWriter pw, DirectedGraph graph)
          Description of the Method
protected  void writeNodeset(java.io.PrintWriter pw, DirectedGraph graph)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertexColor

private java.awt.Color vertexColor

textColor

private java.awt.Color textColor

edgeColor

private java.awt.Color edgeColor

lengthFactor

private double lengthFactor

defaultLength

private double defaultLength

fontSize

private int fontSize

random

private java.util.Random random
Constructor Detail

TouchGraph

public TouchGraph()
Constructor for the TouchGraph object

Method Detail

getColorText

private java.lang.String getColorText(java.awt.Color color)
Gets the colorText attribute of the TouchGraph object


setVertexColor

public void setVertexColor(java.awt.Color vertexColor)
Sets the vertexColor attribute of the TouchGraph object


getVertexColor

public java.awt.Color getVertexColor()
Gets the vertexColor attribute of the TouchGraph object


getVertexColorText

private java.lang.String getVertexColorText()
Gets the vertexColorText attribute of the TouchGraph object


setTextColor

public void setTextColor(java.awt.Color vertexColor)
Sets the textColor attribute of the TouchGraph object


getTextColor

public java.awt.Color getTextColor()
Gets the textColor attribute of the TouchGraph object


getTextColorText

private java.lang.String getTextColorText()
Gets the textColorText attribute of the TouchGraph object


setEdgeColor

public void setEdgeColor(java.awt.Color edgeColor)
Sets the edgeColor attribute of the TouchGraph object


getEdgeColor

public java.awt.Color getEdgeColor()
Gets the edgeColor attribute of the TouchGraph object


getEdgeColorText

private java.lang.String getEdgeColorText()
Gets the edgeColorText attribute of the TouchGraph object


setFontSize

public void setFontSize(int size)
Sets the fontSize attribute of the TouchGraph object


getFontSize

public int getFontSize()
Gets the fontSize attribute of the TouchGraph object


setDefaultEdgeLength

public void setDefaultEdgeLength(int length)
Sets the defaultEdgeLength attribute of the TouchGraph object


getDefaultEdgeLength

public double getDefaultEdgeLength()
Gets the defaultEdgeLength attribute of the TouchGraph object


writeNodeset

protected void writeNodeset(java.io.PrintWriter pw,
                            DirectedGraph graph)
Description of the Method


writeEdgeset

protected void writeEdgeset(java.io.PrintWriter pw,
                            DirectedGraph graph)
Description of the Method


toXML

public void toXML(DirectedGraph graph,
                  java.io.OutputStream os)
Description of the Method