Search in sources :

Example 1 with CGlobalNodeCommentWrapper

use of com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalNodeCommentWrapper in project binnavi by google.

the class ZyNodeBuilder method addCommentLines.

/**
   * Adds the local and global comment strings to the label content.
   * 
   * @param content The label content the comment strings are added to.
   * @param node The clicked raw node.
   * @param localComment The local comment string that is added to the label content.
   * @param globalComment The global comment string that is added to the label content.
   */
private static void addCommentLines(final ZyLabelContent content, final INaviViewNode node, final List<IComment> localComment, final List<IComment> globalComment) {
    Preconditions.checkNotNull(content, "IE01530: Content argument can't be null");
    final ColorsConfigItem colorSettings = ConfigManager.instance().getColorSettings();
    if (localComment != null) {
        addCommentLines(content, localComment, colorSettings.getLocalCommentColor(), new CLocalNodeCommentWrapper(node));
    }
    if (globalComment != null) {
        addCommentLines(content, globalComment, colorSettings.getGlobalCommentColor(), new CGlobalNodeCommentWrapper(node));
    }
}
Also used : ColorsConfigItem(com.google.security.zynamics.binnavi.config.ColorsConfigItem) CGlobalNodeCommentWrapper(com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalNodeCommentWrapper) CLocalNodeCommentWrapper(com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CLocalNodeCommentWrapper)

Aggregations

CGlobalNodeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalNodeCommentWrapper)1 CLocalNodeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CLocalNodeCommentWrapper)1 ColorsConfigItem (com.google.security.zynamics.binnavi.config.ColorsConfigItem)1