Package org.graphstream.stream.gephi.JSONEventConstants

Examples of org.graphstream.stream.gephi.JSONEventConstants.Types


     * @throws JSONException
     */
    private void parse(String type, JSONObject gObjs, String eventId, Double t)
      throws JSONException {

  Types eventType = Types.fromString(type);

  if (gObjs.has("filter")) {
      if (gObjs.getString("filter").equals("ALL")) {
    currentStream.graphCleared(sourceId, sourceTime.newEvent());
      }
      /*
       * Map<String, Object> attributes = null; if
       * (gObjs.has("attributes")) { JSONObject attrObj =
       * gObjs.getJSONObject("attributes"); attributes =
       * readAttributes(attrObj); }
       *
       * handler.handleGraphEvent( new FilterEvent(this,
       * eventType.getEventType(), eventType.getElementType(),
       * getFilter(eventType.getElementType(), gObjs), attributes));
       */
      return;
  }

  if (eventType.equals(Types.CG)) {
      Iterator<String> itrAttrs = gObjs.keys();
      while (itrAttrs.hasNext()) {
    String key = itrAttrs.next();
    Object value = gObjs.get(key);
    currentStream.graphAttributeChanged(sourceId,
View Full Code Here

TOP

Related Classes of org.graphstream.stream.gephi.JSONEventConstants.Types

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.