コード例 #1
0
  @Override
  public void onMessage(Message message) {
    super.onMessage(message);

    if (KMLAbstractObject.MSG_STYLE_CHANGED.equals(message.getName())) {
      this.normalAttributesResolved = false;
      this.highlightAttributesResolved = false;

      if (this.getAttributes() != null) this.getAttributes().setUnresolved(true);
      if (this.getHighlightAttributes() != null) this.getHighlightAttributes().setUnresolved(true);
    }
  }
コード例 #2
0
ファイル: SearchArea.java プロジェクト: metsci/worldwind
 protected SurfacePolygon createPolygon(List<? extends LatLon> positions) {
   SurfacePolygon polygon = new SurfacePolygon(positions);
   polygon.setAttributes(this.getActiveShapeAttributes());
   return polygon;
 }