Пример #1
0
  @Override
  public void updateGraphics(double simTime) {
    super.updateGraphics(simTime);

    // Trap the pending cases
    if (!showPendingStates.getValue()) return;

    boolean threshOpen = super.isOpen();
    try {
      if (getOpenConditionValue(simTime) == threshOpen) return;
    } catch (Throwable t) {
      return;
    }

    // Select the colour
    Color4d col;
    if (threshOpen) col = pendingClosedColour.getValue();
    else col = pendingOpenColour.getValue();

    // Display the threshold icon
    setTagVisibility(ShapeModel.TAG_CONTENTS, true);
    setTagVisibility(ShapeModel.TAG_OUTLINES, true);
    setTagColour(ShapeModel.TAG_CONTENTS, col);
    setTagColour(ShapeModel.TAG_OUTLINES, ColourInput.BLACK);
  }
Пример #2
0
 public boolean getAlignBottom() {
   return alignBottom.getValue();
 }
Пример #3
0
 public boolean getAlignRight() {
   return alignRight.getValue();
 }