code: private void paintArrows(Graphics2D g, JComponent c, int width, int height) {
          int xOffset = width / 2 - 5;
          int yOffset = height / 2 - 3;
  
          g.translate(xOffset, yOffset);
  
          Shape s = shapeGenerator.createArrowLeft(0.5, 0.5, 3, 4);
  
          g.setPaint(getCommonArrowPaint(s, type));
          g.fill(s);
  
          s = shapeGenerator.createArrowRight(6.5, 0.5, 3, 4);
          g.setPaint(getCommonArrowPaint(s, type));
          g.fill(s);
  
          g.translate(-xOffset, -yOffset);
      }
docs: Paint the arrows (both up and down, or left and right).
  
  @param g      the Graphics2D context to paint with.
  @param c      the component to paint.
  @param width  the width.
  @param height the height.