private double calculateBarThickness(Rectangle2D plotArea,RectangleEdge edge){
  double result;
  if (RectangleEdge.isLeftOrRight(edge)) {
    result=plotArea.getWidth() * this.colorBarThicknessPercent;
  }
 else {
    result=plotArea.getHeight() * this.colorBarThicknessPercent;
  }
  return result;
}

private double calculateBarThickness ( Rectangle2D plotArea , RectangleEdge edge ) { double result ; if ( RectangleEdge . isLeftOrRight ( edge ) ) { result = plotArea . getWidth ( ) * this . colorBarThicknessPercent ; } else { result = plotArea . getHeight ( ) * this . colorBarThicknessPercent ; } return result ; }
calculates the bar thickness .
