Search in sources :

Example 1 with CGlobalEdgeCommentWrapper

use of com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalEdgeCommentWrapper 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 edge The clicked edge.
   * @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.
   */
public static void addCommentLines(final ZyLabelContent content, final INaviEdge edge, final List<IComment> localComment, final List<IComment> globalComment) {
    Preconditions.checkNotNull(content, "IE00914: Content argument can't be null");
    final ColorsConfigItem colors = ConfigManager.instance().getColorSettings();
    if (localComment != null) {
        addCommentLines(content, localComment, colors.getLocalCommentColor(), new CLocalEdgeCommentWrapper(edge));
    }
    if (globalComment != null) {
        addCommentLines(content, globalComment, colors.getGlobalCommentColor(), new CGlobalEdgeCommentWrapper(edge));
    }
}
Also used : ColorsConfigItem(com.google.security.zynamics.binnavi.config.ColorsConfigItem) CGlobalEdgeCommentWrapper(com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalEdgeCommentWrapper) CLocalEdgeCommentWrapper(com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CLocalEdgeCommentWrapper)

Aggregations

CGlobalEdgeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalEdgeCommentWrapper)1 CLocalEdgeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CLocalEdgeCommentWrapper)1 ColorsConfigItem (com.google.security.zynamics.binnavi.config.ColorsConfigItem)1