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