endrov.flowBasic.control
Class FlowUnitOutput

java.lang.Object
  extended by endrov.flow.FlowUnit
      extended by endrov.flowBasic.control.FlowUnitOutput

public class FlowUnitOutput
extends FlowUnit

Flow unit: output variable


Field Summary
 java.lang.String varName
           
 FlowUnit varUnit
           
 
Fields inherited from class endrov.flow.FlowUnit
fm, font, fonta, fonth, x, y
 
Constructor Summary
FlowUnitOutput()
           
 
Method Summary
 void editDialog()
           
 void evaluate(Flow flow, FlowExec exec)
          There is an invisible connector out.
 void fromXML(org.jdom.Element e)
           
 java.awt.Dimension getBoundingBox(java.awt.Component comp, Flow flow)
           
 java.awt.Component getGUIcomponent(FlowView p)
           
 int getGUIcomponentOffsetX(java.awt.Component comp, Flow flow)
           
 int getGUIcomponentOffsetY(java.awt.Component c, Flow f)
           
 java.lang.String getHelpArticle()
           
 java.util.Collection<FlowUnit> getSubUnits(Flow flow)
          Evaluate flow top-bottom with this component as the top
protected  void getTypesIn(java.util.Map<java.lang.String,FlowType> types, Flow flow)
          Get types of flows in
protected  void getTypesOut(java.util.Map<java.lang.String,FlowType> types, Flow flow)
          Get types of flows out
static void initPlugin()
          Plugin declaration
 boolean mouseHoverMoveRegion(int x, int y, java.awt.Component comp, Flow flow)
           
 void paint(java.awt.Graphics g, FlowView panel, java.awt.Component comp)
           
 java.lang.String toXML(org.jdom.Element e)
           
 
Methods inherited from class endrov.flow.FlowUnit
checkNotNull, errNullValues, errUnsupportedTypes, getBorderColor, getMidPos, getTextColor, getTypesIn, getTypesInCount, getTypesOut, getTypesOutCount, helperDrawConnectors, isSelected, toDouble
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

varName

public java.lang.String varName

varUnit

public FlowUnit varUnit
Constructor Detail

FlowUnitOutput

public FlowUnitOutput()
Method Detail

initPlugin

public static void initPlugin()
Plugin declaration


toXML

public java.lang.String toXML(org.jdom.Element e)
Specified by:
toXML in class FlowUnit

fromXML

public void fromXML(org.jdom.Element e)
Specified by:
fromXML in class FlowUnit

getBoundingBox

public java.awt.Dimension getBoundingBox(java.awt.Component comp,
                                         Flow flow)
Specified by:
getBoundingBox in class FlowUnit

paint

public void paint(java.awt.Graphics g,
                  FlowView panel,
                  java.awt.Component comp)
Specified by:
paint in class FlowUnit

mouseHoverMoveRegion

public boolean mouseHoverMoveRegion(int x,
                                    int y,
                                    java.awt.Component comp,
                                    Flow flow)
Specified by:
mouseHoverMoveRegion in class FlowUnit

getTypesIn

protected void getTypesIn(java.util.Map<java.lang.String,FlowType> types,
                          Flow flow)
Get types of flows in

Specified by:
getTypesIn in class FlowUnit
flow - TODO

getTypesOut

protected void getTypesOut(java.util.Map<java.lang.String,FlowType> types,
                           Flow flow)
Get types of flows out

Specified by:
getTypesOut in class FlowUnit
flow - TODO

editDialog

public void editDialog()
Specified by:
editDialog in class FlowUnit

getSubUnits

public java.util.Collection<FlowUnit> getSubUnits(Flow flow)
Description copied from class: FlowUnit
Evaluate flow top-bottom with this component as the top

Specified by:
getSubUnits in class FlowUnit

evaluate

public void evaluate(Flow flow,
                     FlowExec exec)
              throws java.lang.Exception
There is an invisible connector out. Whatever executes the flow can grab this output.

Specified by:
evaluate in class FlowUnit
Throws:
java.lang.Exception

getGUIcomponent

public java.awt.Component getGUIcomponent(FlowView p)
Specified by:
getGUIcomponent in class FlowUnit

getGUIcomponentOffsetX

public int getGUIcomponentOffsetX(java.awt.Component comp,
                                  Flow flow)
Specified by:
getGUIcomponentOffsetX in class FlowUnit

getGUIcomponentOffsetY

public int getGUIcomponentOffsetY(java.awt.Component c,
                                  Flow f)
Specified by:
getGUIcomponentOffsetY in class FlowUnit

getHelpArticle

public java.lang.String getHelpArticle()
Specified by:
getHelpArticle in class FlowUnit