import javax.swing.*;
import java.awt.*;
/**
*
* @author
*/
public class DrawingBoard {
private Container drawingBoard;
private JFrame frame;
public DrawingBoard() {
frame = new JFrame("My Window!");
}
public void addShape() {
/**
* Adds shape to this DrawingBoard object.You can add an unlimited number
* DrawableShape objects.
*/
}
public void setBackground(Color color) {
/**
* Sets the background of this drawingBoard object to the designated
* color.The default background color is black
*/
drawingBoard = frame.getContentPane();
drawingBoard.setBackground(color);
}
public void setDelayTime() {
/**
* Sets the delay time between drawings to delay seconds.The smaller the
* delay time, the faster the shapes move.If the movement type is other
* than smooth, then setting the delay time has no visual effect.
*/
}
public void setMovement() {
/**
* Sets the movement type.Class constants for three types of motion are
* Movement.STATIONARY - draw shapes at fixed positions.
* Movement.RANDOM - draw shapes at random motion.
* Movement.SMOOTH - draw shapes in a smooth motion.
*/
}
public void setVisible(boolean state) {
/**
* Make this DrawingBoard object appear on or disappear from the screem.
* If "state" is "true" or "false" respectively. To simulate the screensaver,
* setting it visible will cause a maximized window to appear on the screen.
*/
frame.setVisible(state);
}
public void start () {
/**
* Starts the drawing.If the window is visible yet, it will be made visible
* before the drawing begins.
*/
frame.setLocation(300, 300);
frame.setSize(400, 400);
}
}