public class FaceMaker
extends javafx.application.Application
Modifier and Type | Field and Description |
---|---|
static int |
GRID_INCREMENT
The number of pixels between each gridline
|
static int |
HEAD_SIZE
The size of the head to be drawn
|
static int |
WINDOW_SIZE
The dimensions of the window created
|
Constructor and Description |
---|
FaceMaker() |
Modifier and Type | Method and Description |
---|---|
private Shape |
createHead()
Creates and returns a shape representing the head
|
private Shape |
createLeftEye()
Creates and returns a shape representing the left eye
|
private Shape |
createMouth()
Creates and returns a shape representing the mouth
|
private Shape |
createNose()
Creates and returns a shape representing the nose
|
private Shape |
createRightEye()
Creates and returns a shape representing the right eye
|
static void |
main(java.lang.String[] args)
Launches the JavaFX application
|
void |
start(javafx.stage.Stage stage)
Use the Shape class and its descendants to draw a face.
|
public static final int WINDOW_SIZE
public static final int GRID_INCREMENT
public static final int HEAD_SIZE
public static void main(java.lang.String[] args)
args
- ignoredpublic void start(javafx.stage.Stage stage)
start
in class javafx.application.Application
stage
- Default stage given to a JavaFX program. Unused.private Shape createHead()
private Shape createRightEye()
private Shape createLeftEye()
private Shape createNose()
private Shape createMouth()