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

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 ) ; }
paint the arrows ( both up and down , or left and right ) .
