Beispiel #1
0
  /**
   * Init at the end
   *
   * @return Success
   * @throws RemoteException On badness
   * @throws VisADException On badness
   */
  protected boolean initFinalInner() throws VisADException, RemoteException {
    if (!super.initFinalInner()) {
      return false;
    }

    maxDistanceBox = new LineDrawing("TransectGlyph_" + (typeCnt++));
    maxDistanceBox.setLineWidth(getLineWidth());
    maxDistanceBox.setColor(getColor());
    addDisplayable(maxDistanceBox);

    if (showText) {
      startTextType = TextType.getTextType("TransectGlyphText_" + (typeCnt++));
      startTextDisplayable = new TextDisplayable("start text_" + (typeCnt++), startTextType);
      startTextDisplayable.setTextSize(control.getDisplayScale() * 2.0f);
      endTextType = TextType.getTextType("TransectGlyphText_" + (typeCnt++));
      endTextDisplayable = new TextDisplayable("end text_" + (typeCnt++), endTextType);
      endTextDisplayable.setTextSize(control.getDisplayScale() * 2.0f);
      addDisplayable(startTextDisplayable);
      addDisplayable(endTextDisplayable);
    }
    return true;
  }
  /**
   * _more_
   *
   * @return _more_
   */
  protected Data getDisplayListData() {
    Data data = null;
    Data d = super.getDisplayListData();
    TextType tt = TextType.getTextType(DISPLAY_LIST_NAME);

    if (listlabel != null) {
      try {
        String label = "Skew-T ";
        data = new Text(tt, label + listlabel);
      } catch (Exception e) {
      }

      return data;
    } else {
      return d;
    }
  }