|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.view.DotView
public class DotView
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 |
BLOB
|
static int |
BOUND
|
static int |
NAMEDBLOB
|
static int |
NONE
|
| Constructor Summary | |
|---|---|
DotView(ScuflModel model)
Construct the view and attach it to the given model. |
|
| Method Summary | |
|---|---|
boolean |
getAlignment()
Get the alignment, true is equivalent to left to right, false being top to bottom. |
java.lang.String |
getDot()
Return a dot representation of the underlying model. |
boolean |
getExpandWorkflow()
Are workflows expanded out inline? |
java.lang.String[] |
getFillColours()
Get the list of colours used to fill the backgrounds of nested workflows |
int |
getPortDisplay()
|
boolean |
getShowBoring()
Are we showing boring things? |
boolean |
getTypeLabelDisplay()
Are we displaying type labels? |
DotViewSettings |
getViewSettings()
|
void |
receiveModelEvent(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 |
setAlignment(boolean alignment)
Define whether the graph should be top to bottom (false) or left to right (true) |
void |
setBoring(boolean showBoring)
Define whether to show boring things in the diagram |
void |
setExpandWorkflow(boolean e)
Set whether subworkflows should be expanded out |
void |
setFillColours(java.lang.String[] colours)
Set the list of colours used for expanded workflow fills, defaults to 'white','yellow','goldenrod1'. |
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|BLOB constants. |
void |
setTypeLabelDisplay(boolean display)
Determine whether to show labels on edges for their types |
void |
setViewSettings(DotViewSettings settings)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ALL
public static final int BOUND
public static final int NONE
public static final int BLOB
public static final int NAMEDBLOB
| Constructor Detail |
|---|
public DotView(ScuflModel model)
| Method Detail |
|---|
public void setAlignment(boolean alignment)
public boolean getAlignment()
public void setBoring(boolean showBoring)
public boolean getShowBoring()
public void setPortDisplay(int policy)
public int getPortDisplay()
public void setTypeLabelDisplay(boolean display)
public boolean getTypeLabelDisplay()
public java.lang.String getDot()
public void receiveModelEvent(ScuflModelEvent event)
receiveModelEvent in interface ScuflModelEventListenerpublic void setExpandWorkflow(boolean e)
public boolean getExpandWorkflow()
public void setFillColours(java.lang.String[] colours)
If the system property 'taverna.scufldiagram.fillcolours' is set it is interpreted as a comma seperated list and overrides this default.
public java.lang.String[] getFillColours()
public DotViewSettings getViewSettings()
public void setViewSettings(DotViewSettings settings)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||