@Override
  public void paintNode(final Graphics2D gfx) {
    super.paintNode(gfx);

    final Rectangle2D contentBounds = getNodeContent().getBounds();
    final double xratio = getWidth() / contentBounds.getWidth();
    final double yratio = getHeight() / contentBounds.getHeight();

    gfx.scale(xratio, yratio);
    getNodeContent().draw(gfx, (getX() * 1) / xratio, (getY() * 1) / yratio);
    gfx.scale(1 / xratio, 1 / yratio);
  }
Creates a new node realizer.

@param content Content of the realizer.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/realizers/ZyNormalNodeRealizer.java