Package | Description |
---|---|
com.ppetrie.paintfx | |
com.ppetrie.paintfx.events | |
com.ppetrie.paintfx.shapes | |
com.ppetrie.paintfx.tools | |
com.ppetrie.paintfx.util |
Modifier and Type | Field and Description |
---|---|
private Paint |
ImageHandler.paint
The main class of the program
|
Modifier and Type | Method and Description |
---|---|
void |
PaintController.init(Paint paint)
Initiate variables, listeners, tools, etc.
|
Constructor and Description |
---|
ImageHandler(Paint paint)
Create an ImageHandler
|
Modifier and Type | Field and Description |
---|---|
private Paint |
PastHandler.paint
The main class of the program
|
private Paint |
EventListener.paint |
private Paint |
Drawer.paint |
Constructor and Description |
---|
Drawer(Paint paint,
PaintController controller) |
EventListener(Paint paint) |
PastHandler(Paint paint)
Create a PastHandler
|
Modifier and Type | Field and Description |
---|---|
protected Paint |
Shape.paint
The main class of the program
|
Constructor and Description |
---|
Circle(Paint paint,
double[] tl,
double[] br)
Create a Circle
|
Circle(Paint paint,
int x,
int y,
int r)
Create a Circle
|
Oval(Paint paint,
double[] tl,
double[] br)
Create an Oval
|
Rectangle(Paint paint,
double[] tl,
double[] br)
Create a Rectangle
|
Square(Paint paint,
double[] tl,
double[] br)
Create a Square
|
Star(Paint paint,
double[] tl,
double[] br)
Create a Star
|
Tube(Paint paint,
double[] tl,
double[] br)
Create a Tube
|
Tube(Paint paint,
int x,
int y,
int r)
Create a Tube
|
Modifier and Type | Field and Description |
---|---|
private Paint |
ShapeTool.paint
The main class of the program
|
private Paint |
MoveTool.paint
The main class of the program
|
private Paint |
DropperTool.paint
The main class of the program
|
Constructor and Description |
---|
DropperTool(javafx.scene.control.Button button,
javafx.scene.control.CheckMenuItem menuItem,
Paint paint)
Create a DropperTool
|
MoveTool(javafx.scene.control.Button button,
javafx.scene.control.CheckMenuItem menuItem,
Paint paint)
Create a MoveTool
|
ShapeTool(javafx.scene.control.Button button,
javafx.scene.control.CheckMenuItem menuItem,
Paint paint)
Create a ShapeTool
|
Modifier and Type | Method and Description |
---|---|
static double[][] |
CanvasUtil.getCorners(Paint paint,
double x1,
double x2,
double y1,
double y2)
Takes a pair of coordinates and returns a pair of coordinates matching the same square where the first coordinate pair
is the top left corner and the second is the bottom right, and the box does not extend past the edge of the canvas
|
static int[][] |
CanvasUtil.getCorners(Paint paint,
int x1,
int x2,
int y1,
int y2)
An integer wrapper for the
getCorners function |