Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.embl.ebi.escience.scufl.view
Class DotView  view DotView download DotView.java

java.lang.Object
  extended byorg.embl.ebi.escience.scufl.view.DotView
All Implemented Interfaces:
org.embl.ebi.escience.scufl.ScuflModelEventListener, java.io.Serializable

public class DotView
extends java.lang.Object
implements org.embl.ebi.escience.scufl.ScuflModelEventListener, java.io.Serializable

Represents a ScuflModel instance as a dot file which may then be rendered by standard graph rendering tools.


Field Summary
static int ALL
           
static int BOUND
           
private  java.lang.String cachedRepresentation
           
private  boolean cacheValid
           
private  org.embl.ebi.escience.scufl.ScuflModel model
           
static int NONE
           
private  int portDisplay
           
 
Constructor Summary
DotView(org.embl.ebi.escience.scufl.ScuflModel model)
          Construct the view and attach it to the given model.
 
Method Summary
(package private)  void generateDot()
          Generate the dot view
 java.lang.String getDot()
          Return a dot representation of the underlying model.
 void receiveModelEvent(org.embl.ebi.escience.scufl.ScuflModelEvent event)
          Implements ScuflModelEventListener, in this case is used to tell when our cached version of the dot representation may be out of date.
 void setPortDisplay(int policy)
          Define whether we are looking at all, none or only bound input output ports in the view, using the DotView.ALL|BOUND|NONE constants.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private org.embl.ebi.escience.scufl.ScuflModel model

cacheValid

private boolean cacheValid

cachedRepresentation

private java.lang.String cachedRepresentation

portDisplay

private int portDisplay

ALL

public static final int ALL
See Also:
Constant Field Values

BOUND

public static final int BOUND
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values
Constructor Detail

DotView

public DotView(org.embl.ebi.escience.scufl.ScuflModel model)
Construct the view and attach it to the given model.

Method Detail

setPortDisplay

public void setPortDisplay(int policy)
Define whether we are looking at all, none or only bound input output ports in the view, using the DotView.ALL|BOUND|NONE constants.


getDot

public java.lang.String getDot()
Return a dot representation of the underlying model.


generateDot

void generateDot()
Generate the dot view


receiveModelEvent

public void receiveModelEvent(org.embl.ebi.escience.scufl.ScuflModelEvent event)
Implements ScuflModelEventListener, in this case is used to tell when our cached version of the dot representation may be out of date.

Specified by:
receiveModelEvent in interface org.embl.ebi.escience.scufl.ScuflModelEventListener