Ejemplo n.º 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);
  }
Ejemplo n.º 2
0
 public boolean getAlignBottom() {
   return alignBottom.getValue();
 }
Ejemplo n.º 3
0
 public boolean getAlignRight() {
   return alignRight.getValue();
 }