public IOverlayStyle copy() { return new DefaultOverlayStyle() .borderThickness(borderThickness) .borderColor(borderColor) .boxColor(boxColor) .borderOffset(borderOffset) .location(leftX, rightX, topY, bottomY); }
int h = probeInfo.getHeight(); int offset = style.getBorderOffset(); int thick = style.getBorderThickness(); int margin = 0; if (thick > 0) { if (style.getLeftX() != -1) { x = style.getLeftX(); } else if (style.getRightX() != -1) { x = scaledWidth - w - style.getRightX(); } else { x = (scaledWidth - w) / 2; if (style.getTopY() != -1) { y = style.getTopY(); } else if (style.getBottomY() != -1) { y = scaledHeight - h - style.getBottomY(); } else { y = (scaledHeight - h) / 2; RenderHelper.drawThickBeveledBox(x, y, x + w-1, y + h-1, thick, style.getBoxColor(), style.getBoxColor(), style.getBoxColor()); RenderHelper.drawThickBeveledBox(x+offset, y+offset, x + w-1-offset, y + h-1-offset, thick, style.getBorderColor(), style.getBorderColor(), style.getBoxColor());
int h = probeInfo.getHeight(); int offset = style.getBorderOffset(); int thick = style.getBorderThickness(); int margin = 0; if (thick > 0) { if (style.getLeftX() != -1) { x = style.getLeftX(); } else if (style.getRightX() != -1) { x = WIDTH - w - style.getRightX(); } else { x = (WIDTH - w) / 2; if (style.getTopY() != -1) { y = style.getTopY(); } else if (style.getBottomY() != -1) { y = HEIGHT - h - style.getBottomY(); } else { y = (HEIGHT - h) / 2; int y2 = y + h - 1; if (offset > 0) { RenderHelper.drawThickBeveledBox(x, y, x2, y2, thick, style.getBoxColor(), style.getBoxColor(), style.getBoxColor()); RenderHelper.drawThickBeveledBox(x+offset, y+offset, x2-offset, y2-offset, thick, style.getBorderColor(), style.getBorderColor(), style.getBoxColor());
public static void updateDefaultOverlayStyle() { defaultOverlayStyle = new DefaultOverlayStyle() .borderThickness(boxThickness) .borderColor(boxBorderColor) .boxColor(boxFillColor) .borderOffset(boxOffset) .location(leftX, rightX, topY, bottomY); }