示例#1
0
  /** {@inheritDoc} */
  protected void doRenderGraphic(DrawContext dc) {
    for (Path path : this.paths) {
      path.render(dc);
    }

    this.arrowHead1.render(dc);
    this.arrowHead2.render(dc);
  }
示例#2
0
  /** {@inheritDoc} */
  protected void applyDelegateOwner(Object owner) {
    if (this.paths == null) return;

    for (Path path : this.paths) {
      path.setDelegateOwner(owner);
    }

    if (this.symbol != null) this.symbol.setDelegateOwner(owner);

    this.arrowHead1.setDelegateOwner(owner);
    this.arrowHead2.setDelegateOwner(owner);
  }
示例#3
0
 /**
  * Create and configure the Path used to render this graphic.
  *
  * @param positions Positions that define the path.
  * @return New path configured with defaults appropriate for this type of graphic.
  */
 protected Path createPath(List<Position> positions) {
   Path path = new Path(positions);
   path.setFollowTerrain(true);
   path.setPathType(AVKey.GREAT_CIRCLE);
   path.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
   path.setDelegateOwner(this.getActiveDelegateOwner());
   path.setAttributes(this.getActiveShapeAttributes());
   return path;
 }