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