java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DotView
public DotView(org.embl.ebi.escience.scufl.ScuflModel model)
- Construct the view and attach it to the
given model.
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