Protege 4.1.0

uk.ac.man.cs.mig.util.graph.layout.dotlayoutengine
Class DotGraphLayoutEngine

java.lang.Object
  extended by uk.ac.man.cs.mig.util.graph.layout.dotlayoutengine.DotGraphLayoutEngine
All Implemented Interfaces:
GraphLayoutEngine

public class DotGraphLayoutEngine
extends Object
implements GraphLayoutEngine

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Jan 16, 2004

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm


Field Summary
 
Fields inherited from interface uk.ac.man.cs.mig.util.graph.layout.GraphLayoutEngine
LAYOUT_LEFT_TO_RIGHT, LAYOUT_TOP_TO_BOTTOM
 
Constructor Summary
DotGraphLayoutEngine()
           
 
Method Summary
 int getLayoutDirection()
          Gets the layout direction.
 void layoutGraph(Graph g)
          Lays out the specified Graph
 void setGraphOutputRenderer(GraphOutputRenderer renderer)
           
 void setLayoutDirection(int layoutDirection)
          Sets the direction of the layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotGraphLayoutEngine

public DotGraphLayoutEngine()
Method Detail

setGraphOutputRenderer

public void setGraphOutputRenderer(GraphOutputRenderer renderer)

layoutGraph

public void layoutGraph(Graph g)
Lays out the specified Graph

Specified by:
layoutGraph in interface GraphLayoutEngine
Parameters:
g - The Graph

setLayoutDirection

public void setLayoutDirection(int layoutDirection)
Sets the direction of the layout.

Specified by:
setLayoutDirection in interface GraphLayoutEngine
Parameters:
layoutDirection - The layout direction. This should be one of the constants DotGraphLayoutEngine.LAYOUT_LEFT_TO_RIGHT or DotGraphLayoutEngine.LAYOUT_TOP_TO_BOTTOM.

getLayoutDirection

public int getLayoutDirection()
Gets the layout direction.

Specified by:
getLayoutDirection in interface GraphLayoutEngine
Returns:
The direction of the layout. DotGraphLayoutEngine.LAYOUT_LEFT_TO_RIGHT or DotGraphLayoutEngine.LAYOUT_TOP_TO_BOTTOM.

Protege 4.1.0

Submit a bug report or feature request

For further API reference and developer documentation, see Protege 4 Developer Documentation.

Copyright © 2010 Stanford Center for Biomedical Informatics Research