Tabnine Logo
TagModel.setColor
Code IndexAdd Tabnine to your IDE (free)

How to use
setColor
method
in
org.jboss.windup.reporting.model.TagModel

Best Java code snippets using org.jboss.windup.reporting.model.TagModel.setColor (Showing top 2 results out of 315)

origin: org.jboss.windup.reporting/windup-reporting-api

/**
 * Creates and returns the TagModel in a graph as per given Tag;
 * recursively creates the designated ("contained") tags.
 * <p>
 * If the Tag was already processed exists, returns the corresponding TagModel.
 * Doesn't check if the TagModel for given tag name already exists, assuming this method is only called once.
 */
private TagModel feedTagStructureToGraph(Tag tag, Set<Tag> visited, int level)
{
  if (visited.contains(tag))
    return this.getUniqueByProperty(TagModel.PROP_NAME, tag.getName(), true);
  visited.add(tag);
  LOG.fine(String.format("Creating TagModel for Tag: %s%s(%d)   '%s'  traits: %s", StringUtils.repeat(' ', level*2),
      tag.getName(), tag.getContainedTags().size(), tag.getTitle(), tag.getTraits()));
  TagModel tagModel = this.create();
  tagModel.setName(tag.getName());
  tagModel.setTitle(tag.getTitle());
  tagModel.setColor(tag.getColor());
  tagModel.setRoot(tag.isPrime());
  tagModel.setPseudo(tag.isPseudo());
  if (null != tag.getTraits())
    tagModel.putAllTraits(tag.getTraits());
  tag.getContainedTags().forEach(tag2 -> {
    TagModel tag2model = feedTagStructureToGraph(tag2, visited, level+1);
    tagModel.addDesignatedTag(tag2model);
  });
  return tagModel;
}
origin: windup/windup

/**
 * Creates and returns the TagModel in a graph as per given Tag;
 * recursively creates the designated ("contained") tags.
 * <p>
 * If the Tag was already processed exists, returns the corresponding TagModel.
 * Doesn't check if the TagModel for given tag name already exists, assuming this method is only called once.
 */
private TagModel feedTagStructureToGraph(Tag tag, Set<Tag> visited, int level)
{
  if (visited.contains(tag))
    return this.getUniqueByProperty(TagModel.PROP_NAME, tag.getName(), true);
  visited.add(tag);
  LOG.fine(String.format("Creating TagModel for Tag: %s%s(%d)   '%s'  traits: %s", StringUtils.repeat(' ', level*2),
      tag.getName(), tag.getContainedTags().size(), tag.getTitle(), tag.getTraits()));
  TagModel tagModel = this.create();
  tagModel.setName(tag.getName());
  tagModel.setTitle(tag.getTitle());
  tagModel.setColor(tag.getColor());
  tagModel.setRoot(tag.isPrime());
  tagModel.setPseudo(tag.isPseudo());
  if (null != tag.getTraits())
    tagModel.putAllTraits(tag.getTraits());
  tag.getContainedTags().forEach(tag2 -> {
    TagModel tag2model = feedTagStructureToGraph(tag2, visited, level+1);
    tagModel.addDesignatedTag(tag2model);
  });
  return tagModel;
}
org.jboss.windup.reporting.modelTagModelsetColor

Popular methods of TagModel

  • getDesignatedByTags
    Which tags is this tag designated by; for instance, "seam" is designated by "web" and "framework:".
  • getDesignatedTags
    Which tags this designates; for instance, "java-ee" designates "ejb" and "jms".
  • getName
    Tag name (ID), preferably kebab-style, e.g "java-ee-6".
  • addDesignatedTag
  • getTitle
    Human readable title of technology this tag represents, e.g "Java EE 6".
  • putAllTraits
    A map of traits - custom tag key-value pairs.
  • setName
  • setPseudo
  • setRoot
  • setTitle

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BoxLayout (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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