Examples of EdgeDisplayProperty


Examples of com.google.devtools.depan.view.EdgeDisplayProperty

     */
    @Override
    public String getColumnText(Object element, int columnIndex) {
      if (element instanceof GraphEdge) {
        GraphEdge edge = (GraphEdge) element;
        EdgeDisplayProperty edgeProps = getDisplayProperty(edge);
        switch (columnIndex) {
        case 0:
          // return the displayName of the path matcher term, trim just in case
          return edge.getHead().friendlyString();
        case 1:
          return edge.getRelation().toString();
        case 2:
          return edge.getTail().friendlyString();
        case 3:
          return edgeProps.getLineStyle().getDisplayName().toLowerCase();
        case 4:
          return edgeProps.getArrowhead().getDisplayName().toLowerCase();
        case 5:
          if (edgeProps.getColor() != null) {
            return Tools.getRgb(edgeProps.getColor());
          }
        }
      }
      return "";
    }
View Full Code Here

Examples of com.google.devtools.depan.view.EdgeDisplayProperty

    // Build selection from list of visible relations.
    Collection<Relation> relations = getEditor().getDisplayRelations();
    List<Relation> result =
        Lists.newArrayListWithExpectedSize(relations.size());
    for (Relation relation : relations) {
      EdgeDisplayProperty edgeProp = getEditor().getRelationProperty(relation);
      if (edgeProp.isVisible()) {
        result.add(relation);
      }
    }
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.