private int getX(final int viewWidth, final int objectWidth) {
    if (type == EGraph.SECONDARY_GRAPH) {
      int offset = OFFSET;

      if (graphView.getVerticalScrollBarPolicy() == ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS) {
        offset += 15;
      }

      return viewWidth - objectWidth - offset;
    }

    return OFFSET;
  }
Renders the graph view background with indicators for the type of graph being shown.
java/ui/src/main/java/com/google/security/zynamics/bindiff/graph/backgroundrendering/ImageBackgroundRenderer.java