Tabnine Logo
GraphlibWriter.writeGraphNode
Code IndexAdd Tabnine to your IDE (free)

How to use
writeGraphNode
method
in
org.jboss.windup.graph.renderer.graphlib.GraphlibWriter

Best Java code snippets using org.jboss.windup.graph.renderer.graphlib.GraphlibWriter.writeGraphNode (Showing top 2 results out of 315)

origin: org.jboss.windup/windup-grapher

  private void writeGraphNodes(OutputStream os) throws IOException {

    //iterate the nodes.
    for(Vertex vertex : graph.getVertices()) {
      String id = ""+vertex.getId().hashCode();
      String label = vertex.getProperty(vertexLabelProperty);
      
      Set<String> clzSet = new HashSet<String>();
      Boolean blacklist = (Boolean)vertex.getProperty("blacklist");
      if(blacklist != null && blacklist) {
        clzSet.add("blacklisted");
      }
      
      if(StringUtils.isBlank(label)) {
        label = vertex.toString();
      }
      writeGraphNode(id, label, clzSet, os);
    }
    
  }
}
origin: org.jboss.windup.legacy.application/grapher

  private void writeGraphNodes(OutputStream os) throws IOException {

    //iterate the nodes.
    for(Vertex vertex : graph.getVertices()) {
      String id = ""+vertex.getId().hashCode();
      String label = vertex.getProperty(vertexLabelProperty);
      
      Set<String> clzSet = new HashSet<String>();
      Boolean blacklist = (Boolean)vertex.getProperty("blacklist");
      if(blacklist != null && blacklist) {
        clzSet.add("blacklisted");
      }
      
      if(StringUtils.isBlank(label)) {
        label = vertex.toString();
      }
      writeGraphNode(id, label, clzSet, os);
    }
    
  }
}
org.jboss.windup.graph.renderer.graphlibGraphlibWriterwriteGraphNode

Popular methods of GraphlibWriter

  • <init>
  • writeGraphEdge
  • writeGraphEdges
  • writeGraphNodes

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JOptionPane (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now