Creates a new canvas, and initializes all settings, namely the scrollable picture and background colors
Also there are some methods defined within method:
void mousedPressed( MouseEvent )
void mouseReleased( MouseEvent )
void mouseDragged( MouseEvent )
void mouseMoved( MouseEvent )
These methods define the behavior concerning mouse events on the canvas and the currentTool
It should work with all operating systems and hardware.
Represents which of the 3 ways the ellipse will be drawn: a left color
border with white background, left color border with left background or a
left color border with right color background.
This function initializes the GUI components of the Layer class and is
only called by the Layer constructor
It should work with all operating systems and hardware.
Initalizes all the components constructing Text's GUI and registers
event handling methods to relating components
Called from within the constructor to initialize the form.
This function will execute if you click on the brush icon and
then another icon which is at row 4 column 1 at the
style icon which is right above the color icon.
This function will execute if you click on the brush icon and
then another icon which is at row 4 column 2 at the
style icon which is right above the color icon.
Creates a letterTool and initializes a newly created java.awt.Frame object
so that it represents a copy of the argument java.awt.Frame
There are no OS/Hardware dependencies and no variances.
The class main_canvas represents a blank rectangular area of the screen onto
which the application can draw or from which the application can trap input
events from the user.
Allows the user to release the mouse, and the method dragAction was
called (and therefore dragged was set to true), it sets the curX and curY
and adds a point to curPolygon with those coordinates.
This function operates when GUI user clicks on ok
The function stores new name of the layer and changes the label to correct
name
It should work with all operating systems and hardware.
removes a TerpPaint object and returns true if there is only one left
also if you remove the last one creates a new one and again returns true
This method closes Terp Paint main program.
Sets the fillType of ellipse, specified by the int passed in: a left
color border with white background, a left color border with left
background or a left color border with right color background.
Stretch class is used to either stretch out the
image without affecting the size of the canvas (the image might disappear over
the borders) or you can stretch the image out by prolonging the borders.