Пример #1
0
 static Segment[] getBorders() {
   return canvas.getBorders();
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * Returns four points representing the corners of the window.
  *
  * @return the corners of the window.
  */
 public static Point[] getCorners() {
   return canvas.getCorners();
 }
Пример #4
0
 /**
  * Returns the background color.
  *
  * @return the background color.
  * @see #setBackgroundColor
  */
 public static Color getBackgroundColor() {
   return canvas.getBackground();
 }