A small desktop drawing app writen in Java. A school project of CS349 University of Waterloo Summer 2019
The repository only shows the demo UI. The source code is set private to prevent plagiarism, please contact me if you want to see the code. :)
A drawing application using Java Swing that can allow a user to select drawing properties, and draw shapes on-screen.
|
----- New: Create a new drawing. Will create a blank new canvas and overwrite the drawing before. (key accelerator: ctrl + N)
|
----- Load: Load a drawing from a jsk file. (key accelerator: ctrl + L)
|
----- Save: Save the current drawing into a jsk file. (will pop up warning if saving same file name to a director) (key accelerator: ctrl + L)
|
----- Copy: Copy the current drawing in canvas as a png file into system clipboard.
|
----- Allows the user to select a shape that has been drawn (will have shadow to indicate which which shape is selected).
|
----- The selected shape will bring to the front. To select a shape, the user should click this tool, then click on an existing shape. Pressing ESC on the keyboard will clear shape selection. Selecting a shape will cause the "other colors" in the color palette to update and reflect the shape's color and line thickness palette to update and reflect the line thickness of that shape
|
----- Selected shape can be drageed with the mouse.
|
----- Changing color or line thickness when a shape is selected will update the shape colour and thickness to the new values.
|
----- Click on this tool and then click on a shape to delete it.
|
----- Select this to draw a line using the selected color and line thickness.
|
----- Select this to draw a circle at the point indicated using the selected line thickness and color. (black for stroke and selected color for filling)
|
----- Select this to draw a rectangle using the selected line thickness and shape color. (black for stroke and selected color for filling)
|
----- Select this tool, and click on a shape to change that shape to the currently selected color.
A graphical display of six colors and one other color chooser, which the user can use to select the current color.
|
----- The current drawing color will be used for any new shapes that are drawn.
|
----- If a shape is already selected when a color is chosen, the shape will change to that new color.
|
----- Pop up a color chooser dialogue that user can select a color, and the color button will change to that color.
A graphical display of four line widths that the user can select.
|
----- Selecting a line width will set the border thickness for any new shapes drawn.
|
----- Selecting a shape will change the border thickness to reflect the line thickness of that shape.
|
----- User ustomize color buttons in the palette by right-click a button and choose a new color for that button from a color-chooser dialog
|
----- User can paste the entire canvas an an image (using .png supported format) to an outside program (e.g. MS Paint, Photoshop, Pixelmator)
|
----- User can paste the canvas by clicking "Edit-Copy" in the Menubar, or using "Ctrl+C" (key accelerator) on the keyboard.
stated in the code when referred.
- selectButtonIcon.png
- eraseButtonIcon.png
- lineDrawButtonIcon.png
- circleDrawButtonIcon.png
- rectangleDrawButtonIcon.png
- fillButtonIcon.png
