g.fillRect(0, 0, width, height);
if (matting != null) {
BasicStroke mattedStroke=new BasicStroke(((BasicStroke) stroke).getLineWidth() + 2f);
g.setStroke(mattedStroke);
g.setPaint(matting);
g.drawLine(0,height/2,width,height/2);
}
g.setPaint(color);
g.setStroke(stroke);
if (horizontalOrientation) {
g.drawLine(0, height / 2, width, height / 2);