static Segment[] getBorders() { return canvas.getBorders(); }
/** * Sets the background color. * * @param backgroundColor the new background color. * @see #getBackgroundColor */ public static void setBackgroundColor(Color backgroundColor) { if (backgroundColor == null) { throw new IllegalArgumentException("backgroundColor must not be null."); } canvas.setBackground(backgroundColor); }
/** * Returns four points representing the corners of the window. * * @return the corners of the window. */ public static Point[] getCorners() { return canvas.getCorners(); }
/** * Returns the background color. * * @return the background color. * @see #setBackgroundColor */ public static Color getBackgroundColor() { return canvas.getBackground(); }