outputDevice.setStroke(new BasicStroke((int) border.top(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); outputDevice.drawBorderLine( bounds, BorderPainter.TOP, (int)border.top(), false); } else if (currentSide == BorderPainter.LEFT) { outputDevice.setColor(color.leftColor()); outputDevice.setStroke(new BasicStroke((int) border.left(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); outputDevice.drawBorderLine( bounds, BorderPainter.LEFT, (int)border.left(), false); } else if (currentSide == BorderPainter.RIGHT) { outputDevice.setColor(color.rightColor()); outputDevice.setStroke(new BasicStroke((int) border.right(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); outputDevice.drawBorderLine( bounds, BorderPainter.RIGHT, (int)border.right(), false); } else if (currentSide == BorderPainter.BOTTOM) { outputDevice.setColor(color.bottomColor()); outputDevice.setStroke(new BasicStroke((int) border.bottom(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); outputDevice.drawBorderLine( bounds, BorderPainter.BOTTOM, (int)border.bottom(), false); outputDevice.setStroke(old_stroke);
outputDevice.setStroke(new BasicStroke((int) border.top(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); outputDevice.drawBorderLine( bounds, BorderPainter.TOP, (int)border.top(), false); } else if (currentSide == BorderPainter.LEFT) { outputDevice.setColor(color.leftColor()); outputDevice.setStroke(new BasicStroke((int) border.left(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); outputDevice.drawBorderLine( bounds, BorderPainter.LEFT, (int)border.left(), false); } else if (currentSide == BorderPainter.RIGHT) { outputDevice.setColor(color.rightColor()); outputDevice.setStroke(new BasicStroke((int) border.right(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); outputDevice.drawBorderLine( bounds, BorderPainter.RIGHT, (int)border.right(), false); } else if (currentSide == BorderPainter.BOTTOM) { outputDevice.setColor(color.bottomColor()); outputDevice.setStroke(new BasicStroke((int) border.bottom(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); outputDevice.drawBorderLine( bounds, BorderPainter.BOTTOM, (int)border.bottom(), false); outputDevice.setStroke(old_stroke);