Search in sources :

Example 1 with ECommentPlacement

use of com.google.security.zynamics.zylib.gui.zygraph.realizers.ECommentPlacement in project binnavi by google.

the class ZyCodeNodeBuilder method buildContent.

/**
   * Builds the visible content of a code node.
   * 
   * @param node The code node that provides the raw data.
   * @param graphSettings Provides settings that influence node formatting.
   * @param modifier Calculates the address strings. This argument can be null.
   * 
   * @return The content that was built from the information from the raw node.
   */
public static ZyLabelContent buildContent(final INaviCodeNode node, final ZyGraphViewSettings graphSettings, final INodeModifier modifier) {
    Preconditions.checkNotNull(node, "IE00897: Node argument can not be null");
    final ZyLabelContent content = new ZyLabelContent(new IZyEditableObject() {

        @Override
        public int getEnd() {
            throw new IllegalStateException();
        }

        @Override
        public int getLength() {
            throw new IllegalStateException();
        }

        @Override
        public Object getPersistentModel() {
            throw new IllegalStateException();
        }

        @Override
        public int getStart() {
            throw new IllegalStateException();
        }

        @Override
        public boolean isCommentDelimiter() {
            throw new IllegalStateException();
        }

        @Override
        public boolean isPlaceholder() {
            throw new IllegalStateException();
        }

        @Override
        public boolean update(final String newContent) {
            throw new IllegalStateException();
        }

        @Override
        public boolean updateComment(final String newContent, final ECommentPlacement placement) {
            throw new IllegalStateException();
        }
    }, true, false);
    buildContent(content, node, graphSettings, modifier);
    return content;
}
Also used : ZyLabelContent(com.google.security.zynamics.zylib.gui.zygraph.realizers.ZyLabelContent) IZyEditableObject(com.google.security.zynamics.zylib.gui.zygraph.realizers.IZyEditableObject) IZyEditableObject(com.google.security.zynamics.zylib.gui.zygraph.realizers.IZyEditableObject) ECommentPlacement(com.google.security.zynamics.zylib.gui.zygraph.realizers.ECommentPlacement)

Aggregations

ECommentPlacement (com.google.security.zynamics.zylib.gui.zygraph.realizers.ECommentPlacement)1 IZyEditableObject (com.google.security.zynamics.zylib.gui.zygraph.realizers.IZyEditableObject)1 ZyLabelContent (com.google.security.zynamics.zylib.gui.zygraph.realizers.ZyLabelContent)1