Example #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;
  }