public class GTEntityUtils
extends java.lang.Object
GTEntity
).Constructor and Description |
---|
GTEntityUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
exportPortProperties(GTEntity entity,
java.io.Writer output,
int depth)
For each port of the given entity, if the port's derived level is
greater than 0 (i.e., it is created automatically by the entity), store
the persistent attributes of the port in a "port" XML element.
|
static void |
updateAppearance(GTEntity entity,
GTIngredientsAttribute attribute)
Update the appearance (icons and ports) of the entity with the change in
a GTIngredientAttribute, such as a criterion or an operation.
|
static void |
valueChanged(GTEntity entity,
Settable settable)
React to change of a settable contained in the entity and update the
entity's appearance.
|
public static void exportPortProperties(GTEntity entity, java.io.Writer output, int depth) throws java.io.IOException
entity
- The entity whose ports are looked at.output
- The output writer.depth
- The depth for the MoML output.java.io.IOException
- If the output writer cannot be written to.public static void updateAppearance(GTEntity entity, GTIngredientsAttribute attribute)
entity
- The entity.attribute
- The attribute whose recent change leads to an update of
the entity.public static void valueChanged(GTEntity entity, Settable settable)
entity
- The entity that contains the settable.settable
- The settable whose value is changed.ValueListener.valueChanged(Settable)