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));
}
}
Aggregations