예제 #1
0
 @Override
 public void updateGraphics(double time) {
   if (boolProp.getValue() == null) return;
   Boolean b = boolProp.getOutputValue(time);
   if (b.booleanValue()) {
     setTagColour(DisplayModelCompat.TAG_CONTENTS, trueColor.getValue());
   } else {
     setTagColour(DisplayModelCompat.TAG_CONTENTS, falseColor.getValue());
   }
 }
예제 #2
0
 @Output(
     name = "Text",
     description =
         "If the property is true, then return TrueText.  If the property is false, then return FalseText.",
     unitType = DimensionlessUnit.class)
 public String getText(double time) {
   if (boolProp.getValue() == null) return "";
   Boolean b = boolProp.getOutputValue(time);
   if (b.booleanValue()) {
     return trueText.getValue();
   } else {
     return falseText.getValue();
   }
 }