net.sourceforge.schemaspy.view
Class DotConnector

java.lang.Object
  extended by net.sourceforge.schemaspy.view.DotConnector
All Implemented Interfaces:
Comparable

public class DotConnector
extends Object
implements Comparable

Represents GraphVis dot's concept of an edge. That is, a connector between two nodes.

Author:
John Currier

Constructor Summary
DotConnector(TableColumn parentColumn, TableColumn childColumn, boolean implied)
          Create an edge that logically connects a child column to a parent column.
 
Method Summary
 int compareTo(Object o)
           
 void connectToChildTitle()
           
 void connectToParentDetails()
          By default a parent edge connects to the column name...this lets you connect it the parent's type column instead (e.g.
 void connectToParentTitle()
           
 boolean equals(Object other)
           
 TableColumn getChildColumn()
           
 Table getChildTable()
           
 TableColumn getParentColumn()
           
 Table getParentTable()
           
 int hashCode()
           
 boolean isImplied()
           
 boolean pointsTo(Table possibleParentTable)
          Returns true if this edge logically "points to" the specified table
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DotConnector

public DotConnector(TableColumn parentColumn,
                    TableColumn childColumn,
                    boolean implied)
Create an edge that logically connects a child column to a parent column.

Parameters:
parentColumn - TableColumn
childColumn - TableColumn
implied - boolean
Method Detail

pointsTo

public boolean pointsTo(Table possibleParentTable)
Returns true if this edge logically "points to" the specified table

Parameters:
possibleParentTable - Table
Returns:
boolean

isImplied

public boolean isImplied()

connectToParentDetails

public void connectToParentDetails()
By default a parent edge connects to the column name...this lets you connect it the parent's type column instead (e.g. for detailed parents) Yes, I need to find a more appropriate name/metaphor for this method....


connectToParentTitle

public void connectToParentTitle()

connectToChildTitle

public void connectToChildTitle()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getParentColumn

public TableColumn getParentColumn()

getParentTable

public Table getParentTable()

getChildColumn

public TableColumn getChildColumn()

getChildTable

public Table getChildTable()


Copyright © 2007-2010. All Rights Reserved.