Exemplo n.º 1
0
 protected Path createPath() {
   Path path = new Path();
   path.setFollowTerrain(true);
   path.setPathType(AVKey.GREAT_CIRCLE);
   path.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
   path.setDelegateOwner(this.getActiveDelegateOwner());
   return path;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
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);
  }