Search in sources :

Example 6 with ColorsConfigItem

use of com.google.security.zynamics.binnavi.config.ColorsConfigItem 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

ColorsConfigItem (com.google.security.zynamics.binnavi.config.ColorsConfigItem)6 CStyleRunData (com.google.security.zynamics.zylib.gui.zygraph.realizers.CStyleRunData)3 CGlobalEdgeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalEdgeCommentWrapper)1 CGlobalNodeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CGlobalNodeCommentWrapper)1 CLocalEdgeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CLocalEdgeCommentWrapper)1 CLocalNodeCommentWrapper (com.google.security.zynamics.binnavi.ZyGraph.Builders.Wrappers.CLocalNodeCommentWrapper)1 DebugColorsConfigItem (com.google.security.zynamics.binnavi.config.DebugColorsConfigItem)1 CFunctionReplacement (com.google.security.zynamics.binnavi.disassembly.CFunctionReplacement)1 COperandTreeNode (com.google.security.zynamics.binnavi.disassembly.COperandTreeNode)1 IReplacement (com.google.security.zynamics.zylib.disassembly.IReplacement)1 OperandOrderIterator (com.google.security.zynamics.zylib.disassembly.OperandOrderIterator)1 Color (java.awt.Color)1