Protege 4.1.0

uk.ac.man.cs.mig.util.graph.layout
Interface GraphLayoutEngine

All Known Implementing Classes:
DefaultGraphLayoutEngine, DotGraphLayoutEngine

public interface GraphLayoutEngine

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Dec 27, 2003

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


Field Summary
static int LAYOUT_LEFT_TO_RIGHT
           
static int LAYOUT_TOP_TO_BOTTOM
           
 
Method Summary
 int getLayoutDirection()
          Gets the layout direction.
 void layoutGraph(Graph g)
          Lays out the specified Graph
 void setLayoutDirection(int layoutDirection)
          Sets the direction of the layout.
 

Field Detail

LAYOUT_LEFT_TO_RIGHT

static final int LAYOUT_LEFT_TO_RIGHT
See Also:
Constant Field Values

LAYOUT_TOP_TO_BOTTOM

static final int LAYOUT_TOP_TO_BOTTOM
See Also:
Constant Field Values
Method Detail

layoutGraph

void layoutGraph(Graph g)
Lays out the specified Graph

Parameters:
g - The Graph

setLayoutDirection

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

Parameters:
layoutDirection - The layout direction. This should be one of the constants GraphLayoutEngine.LAYOUT_LEFT_TO_RIGHT or GraphLayoutEngine.LAYOUT_TOP_TO_BOTTOM.

getLayoutDirection

int getLayoutDirection()
Gets the layout direction.

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