DBVIEW
org.dbview.utils.dot.Node Class Reference

List of all members.

Public Member Functions

 Node (String in_name)
void setShape (String in_shape)
void setStyle (String in_style)
void setLabel (String in_label)
void setColor (String in_color)
void setFillColor (String in_color)
String toString ()

Static Public Member Functions

static String generateName (String in_name)

Private Attributes

String __name = null
String __shape = null
String __style = null
String __label = null
String __color = null
String __bg_color = null

Detailed Description

This class represents a node.

Author:
Denis Beurive

Definition at line 31 of file Node.java.


Constructor & Destructor Documentation

org.dbview.utils.dot.Node.Node ( String  in_name)

Create a node.

Parameters:
in_nameName of the node to create.

Definition at line 83 of file Node.java.


Member Function Documentation

static String org.dbview.utils.dot.Node.generateName ( String  in_name) [static]

Create a unique, and valid (no spaces...), name for the node.

Parameters:
in_nameOriginal name.
Returns:
The method returns a unique name.
Exceptions:
Exception

Definition at line 74 of file Node.java.

Referenced by org.dbview.utils.dot.Node.Node(), org.dbview.utils.dot.Edge.setFrom(), and org.dbview.utils.dot.Edge.setTo().

void org.dbview.utils.dot.Node.setColor ( String  in_color)

Set the node's color.

Parameters:
in_colorThe color to set.

Definition at line 108 of file Node.java.

void org.dbview.utils.dot.Node.setFillColor ( String  in_color)

Set the background color of the node.

Parameters:
in_colorBackground color of the node.
Note:
This setting may not have any effect, depending on the node's style. See the GraphViz documentation.

Definition at line 115 of file Node.java.

void org.dbview.utils.dot.Node.setLabel ( String  in_label)

Set the node's label.

Parameters:
in_labelThe label to set.

Definition at line 102 of file Node.java.

void org.dbview.utils.dot.Node.setShape ( String  in_shape)

Set the node's shape.

Parameters:
in_shapeThe node's shape.

Definition at line 90 of file Node.java.

void org.dbview.utils.dot.Node.setStyle ( String  in_style)

Set the node's style.

Parameters:
in_styleThe style to set.

Definition at line 96 of file Node.java.

String org.dbview.utils.dot.Node.toString ( )

The method returns the DOT's representation of the node.

Returns:
The method returns the DOT's representation of the node.

Definition at line 121 of file Node.java.


Member Data Documentation

String org.dbview.utils.dot.Node.__bg_color = null [private]

Node's background color.

See also:
http://www.graphviz.org/doc/info/attrs.html

Definition at line 66 of file Node.java.

Referenced by org.dbview.utils.dot.Node.setFillColor(), and org.dbview.utils.dot.Node.toString().

String org.dbview.utils.dot.Node.__color = null [private]

Node's foreground color.

See also:
http://www.graphviz.org/doc/info/attrs.html

Definition at line 60 of file Node.java.

Referenced by org.dbview.utils.dot.Node.setColor(), and org.dbview.utils.dot.Node.toString().

String org.dbview.utils.dot.Node.__name = null [private]

Name of the node.

Definition at line 36 of file Node.java.

Referenced by org.dbview.utils.dot.Node.Node(), and org.dbview.utils.dot.Node.toString().

String org.dbview.utils.dot.Node.__shape = null [private]
String org.dbview.utils.dot.Node.__style = null [private]

The documentation for this class was generated from the following file: