@Override
  public void regenerate() {
    final ZyLabelContent content = getNodeContent();

    final double widthOld = content.getBounds().getWidth();
    final double heightOld = content.getBounds().getHeight();

    if (m_updater != null) {
      m_updater.generateContent(this, content);
    }

    final Rectangle2D bounds = content.getBounds();

    setSize(bounds.getWidth(), bounds.getHeight());

    scalePortCoordinates(getNode(), widthOld, bounds.getWidth(), heightOld, bounds.getHeight());

    notifyHasRegenerated();

    // TODO(jannewger): check if this method is redundant - it seems that client code often calls
    // regeneerate followe by a redraw operation. That would mean that we needlessly redraw two
    // times.
    repaint();
  }
Regenerates the content of the realizer.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/realizers/ZyNodeRealizer.java