Class TerpPaint

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by TerpPaint
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class TerpPaint
extends javax.swing.JFrame

This class basically controls every aspect of TerpPaint. It controls the drawing, position, image, paint, and text. The state is enable. OS is windows. Implementation variances is allowed. There are no security constraints. There are no external secifications.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 AutoBackup a
          AutoBackup object.
 javax.swing.JMenuItem About
          Java swing GUI depicting the menu item called About.
 java.util.LinkedList action_list
          This is the list indicating action history (actions that can be undone now) for every layer separately.
static boolean active
          This is a boolean value that is initialize to true, used in presentation() which is never called.
 javax.swing.JMenuItem Add
          Java swing GUI depicting the JMenuItem called Add.
(package private)  java.awt.Image airbrushImg
          This is an Image value that is initialize by getImage() for cursor.
 AllLayers alllayers
          This is for the Layer Box.
 javax.swing.JMenuItem Animation
          Java swing GUI depicting the menu item called Animation.
 javax.swing.JMenuItem Attributes
          Java swing GUI depicting the menu item called Attributes.
 javax.swing.JButton black
          Java swing GUI depicting the black button.
 javax.swing.JButton blue
          Java swing GUI depicting the blue button.
 javax.swing.JMenuItem Blur
          Java swing GUI depicting the menu item called Blur.
 javax.swing.JMenuItem Brightness
          Java swing GUI depicting the menu item called Brightness.
 javax.swing.JButton brown
          Java swing GUI depicting the brown button.
 javax.swing.JButton brush
          Java swing GUI depicting the button called brush.
 javax.swing.JPanel brush_properties
          Java swing GUI depicting the panel for brush properties.
(package private)  java.awt.Image brushImg
          This is an Image value that is initialize by getImage() for cursor.
(package private)  java.awt.Image bucketImg
          This is an Image value that is initialize by getImage(), for cursor.
 main_canvas center
          This is a main_canvas value, which holds the painting.
 boolean CHANGED
          This is a boolean value that is initialize to false, never used.
 javax.swing.JMenuItem ClearImage
          Java swing GUI depicting the menu item called ClearImage.
 javax.swing.JMenuItem ClearSelection
          Java swing GUI depicting the menu item called ClearSelection.
 int clipBoardHeight
          The height of the image in the clipboard, initialized to 0.
 int clipBoardWidth
          The width of image in the clipboard, initialized to 0.
 javax.swing.JMenuItem Close
          Java swing GUI depicting the menu item called Close.
 javax.swing.JPanel color_menu
          Java swing GUI depicting the panel for the color menu.
 javax.swing.JButton color1
          Java swing GUI depicting the color1 button.
 javax.swing.JButton color2
          Java swing GUI depicting the color2 button.
 javax.swing.JButton color3
          Java swing GUI depicting the color3 button.
 javax.swing.JButton color4
          Java swing GUI depicting the color4 button.
 javax.swing.JButton color5
          Java swing GUI depicting the color5 button.
 javax.swing.JButton color6
          Java swing GUI depicting the color6 button.
 javax.swing.JButton color7
          Java swing GUI depicting the color7 button.
 javax.swing.JCheckBoxMenuItem ColorBox
          Java swing GUI depicting the check box menu item called ColorBox.
 javax.swing.JPanel colors
          Java swing GUI depicting the panel called colors.
 javax.swing.JMenu Colors
          Java swing GUI depicting the menu called Colors.
 java.util.Vector colorTable
          This vector holds all the current colors in the color toolbox.
 javax.swing.JMenuItem Copy
          Java swing GUI depicting the menu item called Copy.
 javax.swing.JMenuItem CopyTo
          Java swing GUI depicting the menu item called CopyTo.
 javax.swing.JLabel cordinates
          Java swing GUI depicting the panel for the coordinates.
 javax.swing.JButton curBrush
          The variable for the current selected button for brush.
 javax.swing.JButton curButton
          This is the currently selected button variable.
 javax.swing.JButton curCurve
          The variable for the current selected button for curve.
 javax.swing.JButton curEllipse
          The variable for the current selected button for elipse.
 javax.swing.JButton curLine
          The variable for the current selected button for line.
 javax.swing.JButton curPolygon
          The variable for the current selected button for polygon.
 javax.swing.JPanel current_colors
          Java swing GUI depicting the panel for the current colors.
 java.lang.String CURRENT_FILE
          This is a string value that is initialize to "untitled", and is the name used in the title of window.
 javax.swing.JButton currentColor
          this Jbutton holds the button of the current right-color.
(package private)  java.awt.Cursor currentCursor
          This is a Cursor value that is initialize defaultCursor.
 ourTool currentTool
          This creates a new tool from ourTool which holds the current tool.
 javax.swing.JButton curRoundRect
          The variable for the current selected button for round rectangle.
 javax.swing.JButton curSpray
          The variable for the current selected button for spray.
 javax.swing.JButton curSquare
          The variable for the current selected button for square.
 javax.swing.JButton curve
          Java swing GUI depicting the button called curve.
 javax.swing.JButton curZoom
          The variable for the current selected button for zoom.
 javax.swing.JMenuItem Custom
          Java swing GUI depicting the menu item called Custom.
 javax.swing.JMenuItem Cut
          Java swing GUI depicting the menu item Cut.
 javax.swing.JButton cyan
          Java swing GUI depicting the cyan button.
(package private)  java.awt.Cursor defaultCursor
          This is a Cursor value that is created by the constructor.
 javax.swing.JButton dot1
          Java swing GUI depicting the brush dot width smallest.
 javax.swing.JButton dot2
          Java swing GUI depicting the brush dot width medium.
 javax.swing.JButton dot3
          Java swing GUI depicting the brush dot width biggest.
 javax.swing.JCheckBoxMenuItem DrawOpaque
          Java swing GUI depicting the check box menu item called DrawOpaque.
 javax.swing.JButton drk_gray
          Java swing GUI depicting the dark gray button.
(package private)  java.awt.Image dropperImg
          This is an Image value that is initialize by getImage(), for cursor.
 javax.swing.JMenuItem Edge
          Java swing GUI depicting the menu item called Edge.
 javax.swing.JMenu Edit
          Java swing GUI depicting the menu called Edit.
 javax.swing.JMenuItem EditColors
          Java swing GUI depicting the menu item called EditColors.
 javax.swing.JButton elipse
          Java swing GUI depicting the button called elipse.
 javax.swing.JMenuItem Emboss
          Java swing GUI depicting the menu item called Emboss.
 javax.swing.JButton eraser
          Java swing GUI depicting the button called eraser.
(package private)  java.awt.Image eraserImg
          This is an Image value that is initialize by getImage(), for cursor.
(package private)  java.awt.Image eraserImg2
          This is an Image value that is initialize by getImage(), for cursor.
(package private)  java.awt.Image eraserImg3
          This is an Image value that is initialize by getImage(), for cursor.
(package private)  java.awt.Image eraserImg4
          This is an Image value that is initialize by getImage(), for cursor.
(package private)  java.awt.Image eraserNormalImg
          image of eraser cursor in normal zoom.
 javax.swing.JMenuItem Exit
          Java swing GUI depicting the menu item called Exit.
 javax.swing.JMenuItem Export
          Java swing GUI depicting the menu item called Export.
 javax.swing.JMenu File1
          Java swing GUI depicting the menu called File1.
(package private)  java.lang.String filename
          String for filename of current open file.
 javax.swing.JMenuItem FileName1
          The JMenuItem that corresponds to opening the first recent file.
 javax.swing.JMenuItem FileName2
          The JMenuItem that corresponds to opening the second recent file.
 javax.swing.JMenuItem FileName3
          The JMenuItem that corresponds to opening the third recent file.
 javax.swing.JMenuItem FileName4
          The JMenuItem that corresponds to opening the fourth recent file.
 javax.swing.JMenu Filter
          Java swing GUI depicting the menu called Filter.
 javax.swing.JMenuItem Flatten
          Java swing GUI depicting the JMenuItem called Flatten.
 javax.swing.JMenuItem FlipRotate
          Java swing GUI depicting the menu item FlipRotate.
(package private)  GarbageCollect gc
          garbage collection thread.
 javax.swing.JButton gray
          Java swing GUI depicting the gray button.
static int grayscaleFlag
          this is a int value that is initialize to 0, is 1 when grayscale is selected.
 javax.swing.JButton green
          Java swing GUI depicting the green button.
 javax.swing.JMenu Help
          Java swing GUI depicting the menu called Help.
 javax.swing.JMenuItem HelpTopics
          Java swing GUI depicting the menu item called HelpTopics.
 javax.swing.JMenu Image
          Java swing GUI depicting the menu called Image.
 javax.swing.JMenuItem Import
          Java swing GUI depicting the menu item called Import.
 javax.swing.JMenuItem InvertColors
          Java swing GUI depicting the menu item called InvertColors.
 javax.swing.JSeparator jSeparator1
          Java swing GUI depicting the separator called jSeparator1.
 javax.swing.JSeparator jSeparator2
          Java swing GUI depicting the separator called jSeparator2.
 javax.swing.JSeparator jSeparator3
          Java swing GUI depicting the separator called jSeparator3.
 javax.swing.JSeparator jSeparator4
          Java swing GUI depicting the separator called jSeparator4.
 javax.swing.JSeparator jSeparator5
          Java swing GUI depicting the separator called jSeparator5.
 javax.swing.JSeparator jSeparator6
          Another separator in GUI.
 javax.swing.JSeparator jSeparator7
          Java swing GUI depicting the separator called jSeparator7.
 javax.swing.JSeparator jSeparator8
          Java swing GUI depicting the separator called jSeparator8.
 javax.swing.JSeparator jSeparator9
          Java swing GUI depicting a JSeperator.
 javax.swing.JMenuItem Large
          Java swing GUI depicting the menu item called Large.
(package private)  java.awt.Image lassoImg
          This is an Image value that is initialize by getImage() for cursor.
 javax.swing.JMenu Layer
          Java swing GUI depicting the menu item called Layer.
 javax.swing.JCheckBoxMenuItem LayerBox
          Java swing GUI depicting the Layer box menu item called LayerBox.
 javax.swing.JButton left
          Java swing GUI depicting the current left colorh.
 javax.swing.JButton left1
          Java swing GUI depicting the brush left-hand width smallest.
 javax.swing.JButton left2
          Java swing GUI depicting the brush left-hand width medium.
 javax.swing.JButton left3
          Java swing GUI depicting the brush left-hand width largest.
 javax.swing.JButton letter
          Java swing GUI depicting the button called letter.
 javax.swing.JButton lgt_gray
          Java swing GUI depicting the light gray button.
 javax.swing.JButton line
          Java swing GUI depicting the button called line.
 javax.swing.JPanel line_properties
          Java swing GUI depicting the panel called line properties.
 javax.swing.JButton line1
          Java swing GUI depicting the button for line1 width.
 javax.swing.JButton line2
          Java swing GUI depicting the button for line2 width.
 javax.swing.JButton line3
          Java swing GUI depicting the button for line3 width.
 javax.swing.JButton line4
          Java swing GUI depicting the button for line4 width.
 javax.swing.JButton line5
          Java swing GUI depicting the button for line5 width.
 int locationHeight
          The y displacement of initial window opening, where 0 is the topmost of screen.
 int locationWidth
          The x displacement of initial window opening, where 0 is the left most of screen.
 int MacFlag
          This is a int value that is initialize to 0, = 1 when a mac computer.
 javax.swing.JButton magenta
          Java swing GUI depicting the magenta button.
 javax.swing.JButton magicSelect
          Java swing GUI depicting the button called magicSelect.
 javax.swing.JButton medicine
          Java swing GUI depicting the button called medicine.
 javax.swing.JMenuBar menu_container
          Java swing GUI depicting the menu bar called menu_container.
static java.awt.MediaTracker mt
          This is a MediaTracker value, used in presentation() which is never called.
 TerpPaintContainer myContainer
          This is the TerpPaintContainer that contains this TerpPaint object.
 javax.swing.JMenuItem MyPreferences
          Java swing GUI depicting the menu item Preferenes.
static prefsState myPrefs
          This is the current state of preferences.
 javax.swing.JMenuItem New
          Java swing GUI depicting the menu item called New.
 javax.swing.JPanel none
          Java swing GUI depicting the panel called none blank space, filler.
 boolean nonEmptyClipboard
          This boolean is true when some thing has been copied into the clipboard.
 javax.swing.JMenuItem Normal
          Java swing GUI depicting the menu item called Normal.
 javax.swing.JButton nothing
          Java swing GUI depicting the button called nothing for blank spavce, filler.
 javax.swing.JButton one
          Java swing GUI depicting the rectangle button type one.
 javax.swing.JMenuItem Open
          Java swing GUI depicting the menu item called Open.
 javax.swing.JButton orange
          Java swing GUI depicting the orange button.
 printer ourPrinter
          printer object used for printing.
 javax.swing.JMenuItem PageSetup
          Java swing GUI depicting the menu item called PageSetup.
 javax.swing.JButton paint
          Java swing GUI depicting the button called paint.
 javax.swing.JPanel paint_properties
          Java swing GUI depicting the panel paint properties.
 javax.swing.JButton paint1
          Java swing GUI depicting the paint brush width 1.
 javax.swing.JButton paint2
          Java swing GUI depicting the paint brush width 2.
 javax.swing.JButton paint3
          Java swing GUI depicting the paint brush width 3.
 javax.swing.JButton paint4
          Java swing GUI depicting the paint brush width 4.
 javax.swing.JMenuItem Paste
          Java swing GUI depicting the menu item called Paste.
 javax.swing.JMenuItem PasteFrom
          Java swing GUI depicting the menu item called PasteFrom.
 javax.swing.JButton pencil
          Java swing GUI depicting the button called pencil.
(package private)  java.awt.Image pencilImg
          This is an Image value that is initialize by getImage(), for cursor.
 javax.swing.JButton pink
          Java swing GUI depicting the pink button.
 javax.swing.JButton polygon
          Java swing GUI depicting the button called polygon.
 javax.swing.JPanel position
          Java swing GUI depicting the panel for position.
 javax.swing.JMenuItem Print
          Java swing GUI depicting the menu item called Print.
 javax.swing.JMenuItem PrintPreview
          Java swing GUI depicting the menu item called PrintPreview.
 java.awt.Color propColor
          The variable for the color that is used to highlight the tool property.
 javax.swing.JPanel properties
          Java swing GUI depicting the panel called properties.
 javax.swing.JMenuItem Recent
          Java swing GUI depicting the menu item called Recent File.
 java.util.Vector recentFiles
          This is a vector containing the 4 most recent Files.
 javax.swing.JPanel rect_properties
          Java swing GUI depicting the panel for rectangle properties.
 javax.swing.JButton red
          Java swing GUI depicting the red button.
 java.util.LinkedList redo_list
          This is the list indicating current undone history (actions that can be redone now) for every layer separately.
 javax.swing.JMenuItem Remove
          Java swing GUI depicting the JMenuItem called Remove.
 javax.swing.JMenuItem Repeat
          Java swing GUI depicting the menu item called Repeat.
 boolean resize
          This is a boolean value that is initialize to false, indicates whether cursor is in the resize area and should change to resizing arrows.
 javax.swing.JButton right
          Java swing GUI depicting the current right color.
 javax.swing.JButton right1
          Java swing GUI depicting the brush right-hand width smallest.
 javax.swing.JButton right2
          Java swing GUI depicting the brush right-hand width medium.
 javax.swing.JButton right3
          Java swing GUI depicting the brush right-hand width largest.
 javax.swing.JButton rounded_rectangle
          Java swing GUI depicting the button called rounded rectangle.
 javax.swing.JMenuItem Save
          Java swing GUI depicting the menu item called Save.
 javax.swing.JMenuItem SaveAs
          Java swing GUI depicting the menu item called SaveAs.
 javax.swing.JButton select
          Java swing GUI depicting the button called select.
 javax.swing.JButton selectall
          Java swing GUI depicting the button called selectall.
 javax.swing.JMenuItem SelectAll
          Java swing GUI depicting the menu item called SelectAll.
 javax.swing.JPanel shapes
          Java swing GUI depicting the panel called shapes.
 javax.swing.JMenuItem Sharpen
          Java swing GUI depicting the menu item called Sharpen.
 javax.swing.JMenuItem ShowGrid
          Java swing GUI depicting the menu item called ShowGrid.
 javax.swing.JMenuItem ShowThumbnail
          Java swing GUI depicting the menu item called ShowThumbnail.
 int sizeHeight
          The height of the TerpPaint window.
 int sizeWidth
          The width of the TerpPaint window.
 javax.swing.JMenuItem SlideShow
          Java swing GUI depicting the menu item called SlideShow.
 javax.swing.JPanel south
          Java swing GUI depicting the panel called south.
static java.awt.Image splashIm
          This is a Image value.
static java.awt.image.BufferedImage splashImBuff
          This is a BufferedImage used for the splash screen in presentation() which is never called.
 javax.swing.JButton spray
          Java swing GUI depicting the button called spray.
 javax.swing.JPanel spray_properties
          Java swing GUI depicting the panel for spray properties.
 javax.swing.JButton spray1
          Java swing GUI depicting the spray width 1.
 javax.swing.JButton spray2
          Java swing GUI depicting the spray width 3.
 javax.swing.JButton spray3
          Java swing GUI depicting the width 3.
 javax.swing.JButton square
          Java swing GUI depicting the button called square.
 javax.swing.JButton square1
          Java swing GUI depicting the brush square width smallest.
 javax.swing.JButton square2
          Java swing GUI depicting the brush square width medium.
 javax.swing.JButton square3
          Java swing GUI depicting the brush square width largest.
 javax.swing.JPanel status
          Java swing GUI depicting the panel for status.
 javax.swing.JCheckBoxMenuItem StatusBox
          Java swing GUI depicting the check box menu item called StatusBox.
 javax.swing.JMenuItem StretchSkew
          Java swing GUI depicting the menu item called StretchSkew.
static SplashWindow sw
          This is a SplashWindow value for the splashscreen.
 javax.swing.JMenuItem TextToolBox
          Java swing GUI depicting the menu item called TextToolBox.
 java.applet.AudioClip theSound
          This is a AudioClip value, not used.
 javax.swing.JButton three
          Java swing GUI depicting the rectangle button type three.
(package private)  java.awt.Toolkit tk
          This is a Toolkit value that is initialize by the function getDefaultToolkit().
 javax.swing.JCheckBoxMenuItem ToolBox
          Java swing GUI depicting the check box menu item called ToolBox.
 brushTool toolBrush
          Instantiates the tool brush.
 bucketTool toolBucket
          Instantiates the tool bucket.
 curveTool toolCurve
          Instantiates the tool curve.
 ellipseTool toolEllipse
          Instantiates the tool elipse.
 eraserTool toolEraser
          Instantiates the tool eraser.
 letterTool toolLetter
          Instantiates the tool letter.
 lineTool toolLine
          Instantiates the tool line.
 magicSelectTool toolMagicSelect
          Instantiates the tool magicSelect.
 medicineTool toolMedicine
          Instantiates the tool medicine.
 pencilTool toolPencil
          Instantiates the tool pencil.
 polygonTool toolPolygon
          Instantiates the tool polygon.
 rectTool toolRect
          Instantiates the tool rectangle.
 roundedRectTool toolRoundedRect
          Creates a rounded rectangle instantiation.
 selectTool toolSelect
          Instantiates the tool select.
 selectallTool toolSelectall
          Instantiates the tool selectall.
 sprayTool toolSpray
          Instantiates the tool spray.
 zoomTool toolZoom
          Instantiates the tool zoom.
 javax.swing.JButton two
          Java swing GUI depicting the rectangle button type two.
 javax.swing.JMenuItem Undo
          Java swing GUI depicting the menu item called Undo.
 javax.swing.JMenu UndoList
          Java swing GUI depicting the Undolist menu.
 java.util.LinkedList UndoList_items
          Linked List of items in undolist.
 javax.swing.JMenu View
          Java swing GUI depicting the menu View.
 javax.swing.JMenuItem ViewBitmap
          Java swing GUI depicting the menu item called ViewBitmap.
 javax.swing.JPanel west
          Java swing GUI depicting the panel called west.
 javax.swing.JButton white
          Java swing GUI depicting the white button.
 javax.swing.JButton yellow
          Java swing GUI depicting the yellow button.
 javax.swing.JButton zoom
          Java swing GUI depicting the button called zoom.
 javax.swing.JMenu Zoom
          Java swing GUI depicting the menu called Zoom.
 javax.swing.JPanel zoom_properties
          Java swing GUI depicting the panel zoom properties.
 javax.swing.JButton zoom1
          Java swing GUI depicting the zoom level 1.
 javax.swing.JButton zoom2
          Java swing GUI depicting the zoom level 2.
 javax.swing.JButton zoom3
          Java swing GUI depicting the level 3 zoom.
 javax.swing.JButton zoom4
          Java swing GUI depicting the level 4 zoom.
(package private)  java.awt.Image zoomImg
          This is an Image value that is initialize by getImage() for cursor.
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TerpPaint(boolean alone, TerpPaintContainer inContainer)
          This is the constructor of the TerpPaint class.
 
Method Summary
 void AboutActionPerformed(java.awt.event.ActionEvent evt)
          AboutActionPerformed displays a window with info about terppaint It should work with all operating systems and hardware.
 void AddActionPerformed(java.awt.event.ActionEvent evt)
          This function adds a new layer ActionEvent object as a parameter.
 void addColorChooser()
          This method opens up the universal Color Chooser.
 void AnimationActionPerformed(java.awt.event.ActionEvent evt)
          This function is called if it wants to display a animation of layers.
 void AttributesActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to execute a maximize or minimize the painting window.
 void blackMouseClicked(java.awt.event.MouseEvent evt)
          Sets black as the active color by mouse click.
 void blueMouseClicked(java.awt.event.MouseEvent evt)
          Sets blue as the active color by mouse click.
 void BlurActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the blur capabilities of TerpPaint.
 void borderInits()
          This method basically creates the three dimensional look of the tools.
 void BrightnessActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the brightness change capabilities of TerpPaint.
 void brownMouseClicked(java.awt.event.MouseEvent evt)
          Sets brown as the active color by mouse click.
 void brushActionPerformed(java.awt.event.ActionEvent evt)
          Initializes brushTool 1.
 void canvasMouseMoved(java.awt.event.MouseEvent evt)
          Prints "CANVAS MOUSE MOVED".
 void canvasMousePressed(java.awt.event.MouseEvent evt)
          no code -- may be same as found in centerSetup().
 void canvasMouseReleased(java.awt.event.MouseEvent evt)
          no code -- may be same as code found in centerSetup().
 void centerSetup()
          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.
 void changeButtonGray(javax.swing.JButton in)
          This function turns a button gray It has a button object as a parameter, which is to be colored.
 void changeToGray(boolean toggle)
          This function changes all the colors to the buttons to grayscale if true, to color if false.
 void ClearImageActionPerformed(java.awt.event.ActionEvent evt)
          This method clears the screen and is called by actionPerformed.
 void clearLine()
          This method sets all sizes of the line tool to the default color of lightGray.
 void clearRect()
          This method initializes the rectangle tool to use the default color of lightGray.
 void ClearSelectionActionPerformed(java.awt.event.ActionEvent evt)
          This function is called when the user wants to clear the painting.
 void close()
          This method closes the window.
 void CloseActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the saving operation 1.
 void color1MouseClicked(java.awt.event.MouseEvent evt)
          Sets color1 as the active color by mouse click.
 void color2MouseClicked(java.awt.event.MouseEvent evt)
          Sets color2 as the active color by mouse click.
 void color3MouseClicked(java.awt.event.MouseEvent evt)
          Sets color3 as the active color by mouse click.
 void color4MouseClicked(java.awt.event.MouseEvent evt)
          Sets color4 as the active color by mouse click.
 void color5MouseClicked(java.awt.event.MouseEvent evt)
          Sets color5 as the active color by mouse click.
 void color6MouseClicked(java.awt.event.MouseEvent evt)
          Sets color6 as the active color by mouse click.
 void color7MouseClicked(java.awt.event.MouseEvent evt)
          Sets color7 as the active color by mouse click.
 void ColorBoxActionPerformed(java.awt.event.ActionEvent evt)
          Displays color_menu panel if not already visibile, closes panel if is visibile.
 void CopyActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to copy the drawing that you have.
 void curveActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and changes current tool to toolCurve.
 void CustomActionPerformed(java.awt.event.ActionEvent evt)
          This function will perform 2 operation.
 void CutActionPerformed(java.awt.event.ActionEvent evt)
          this function allows you to do the cut action.
 void cyanMouseClicked(java.awt.event.MouseEvent evt)
          Sets cyan as the active color by mouse click.
 void dot1ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the dot size of a brushTool to 1 and is called by actionPerformed.
 void dot2ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the dot size of a brushTool to 2 and is called by actionPerformed.
 void dot3ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the dot size of a brushTool to 3 and is called by actionPerformed.
 void DrawOpaqueActionPerformed(java.awt.event.ActionEvent evt)
          This function will draw an Opaque.
 void drk_grayMouseClicked(java.awt.event.MouseEvent evt)
          Sets dark gray as the active color by mouse click.
 void EdgeActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the edge detection capabilities of TerpPaint.
 void EditActionPerformed(java.awt.event.ActionEvent evt)
          There is no code in this one.
 void EditColorsActionPerformed(java.awt.event.ActionEvent evt, javax.swing.JButton in)
          This method resets the background color to that chosen by user and is called by actionPerformed.
 void elipseActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and changes current tool to toolEllipse.
 void EmbossActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the emboss capabilities of TerpPaint.
 void eraserActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and changes current tool to tool Changes current cursor to eraserCursor and changes current button to eraser button.
 void exit()
          This method exits the program.
 void ExitActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the saving operation 1.
 void exitForm(java.awt.event.WindowEvent evt)
          This method exits the Application entirely.
 void ExportActionPerformed(java.awt.event.ActionEvent evt)
          ExportActionPerformed performs "Copy To" It should work with all operating systems and hardware.
 void File1ActionPerformed(java.awt.event.ActionEvent evt)
          no codehere.
 void FileNameActionPerformed(java.awt.event.ActionEvent evt, int filenum)
          This function opens the appropriate recentfile, according to the param passed It should work with all operating systems and hardware.
 void FlattenActionPerformed(java.awt.event.ActionEvent evt)
          This function flatten all layers ActionEvent object as a parameter.
 void FlipRotateActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to flip and rotate your drawing.
 javax.swing.JButton getBrown()
          returns JButton brown It should work with all operating systems and hardware.
 java.awt.Color getCurrentColor()
          Returns left button background color.
static java.awt.image.BufferedImage getIcon(java.io.File f)
          This method is used to interact with TerpManager, It takes a File object which is an image and returns it in BufferedImage form.
 javax.swing.JButton getLine1()
          returns jbutton line1, width 1 It should work with all operating systems and hardware.
 javax.swing.JButton getLine2()
          returns jbutton line2, width 2 It should work with all operating systems and hardware.
 javax.swing.JButton getLine3()
          returns jbutton line3, width 3 It should work with all operating systems and hardware.
 javax.swing.JButton getLine4()
          returns jbutton line4, width 4 It should work with all operating systems and hardware.
 javax.swing.JButton getLine5()
          returns jbutton line5, width 5 It should work with all operating systems and hardware.
 javax.swing.JPanel getLineProperties()
          returns lineproperties jpanel It should work with all operating systems and hardware.
 javax.swing.JButton getOne()
          returns JButton one, for rectangle drawing mode 1 It should work with all operating systems and hardware.
 javax.swing.JPanel getPaintProperties()
          returns the paintproperties JPanel It should work with all operating systems and hardware.
 prefsState getPrefs()
          returns the current state of the preferences It should work with all operating systems and hardware.
 javax.swing.JButton getRed()
          returns red JButton It should work with all operating systems and hardware.
 java.awt.Color getRight()
          return right button Color It should work with all operating systems and hardware.
 javax.swing.JButton getThree()
          returns JButton three, for rectangle drawing mode 3 It should work with all operating systems and hardware.
 javax.swing.JButton getTwo()
          returns JButton two, for rectangle drawing mode 2 It should work with all operating systems and hardware.
 void grayMouseClicked(java.awt.event.MouseEvent evt)
          Sets gray as the active color by mouse click.
 void greenMouseClicked(java.awt.event.MouseEvent evt)
          Sets green as the active color by mouse click.
 void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt)
          HelpTopicsActionPerformed displays Help window It should work with all operating systems and hardware.
 void ImportActionPerformed(java.awt.event.ActionEvent evt)
          ImportActionPerformed performs "Paste From" It should work with all operating systems and hardware.
 void initComponents()
          This method is called from within the constructor to initialize the form.
 void InvertColorsActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the inverting colors operation.
 void LargeActionPerformed(java.awt.event.ActionEvent evt)
          This function will zoom you to the second largest available view and then set the background to light gray.
 void LayerBoxActionPerformed(java.awt.event.ActionEvent evt)
          If the layer box is visible, it makes it invisible.
 void left1ActionPerformed(java.awt.event.ActionEvent evt)
          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.
 void left2ActionPerformed(java.awt.event.ActionEvent evt)
          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.
 void left3ActionPerformed(java.awt.event.ActionEvent evt)
          This method is called by actionPerformed.
 void letterActionPerformed(java.awt.event.ActionEvent evt)
          Initializes textwriting 1.
 void lgt_grayActionPerformed(java.awt.event.ActionEvent evt)
          This method is called by actionPerformed.
 void lgt_grayMouseClicked(java.awt.event.MouseEvent evt)
          Sets light gray as the active color by mouse click.
 void line1ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the lineStroke of a lineTool to size of 1 and is called by actionPerformed.
 void line2ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the lineStroke of a lineTool to size of 2 and is called by actionPerformed.
 void line3ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the lineStroke of a lineTool to size of 3 and is called by actionPerformed.
 void line4ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the lineStroke of a lineTool to size of 4 and is called by actionPerformed.
 void line5ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the lineStroke of a lineTool to size of 5 and is called by actionPerformed.
 void lineActionPerformed(java.awt.event.ActionEvent evt)
          This method basically executes code when the user clicks on the LINE tool.
 void magentaMouseClicked(java.awt.event.MouseEvent evt)
          Sets magenta as the active color by mouse click.
 void magicSelectActionPerformed(java.awt.event.ActionEvent evt)
          Initializes magicSelectTool (magic wand selection tool) 1.
static void main(java.lang.String[] args)
          This method officially launches the Paint program.
 void medicineActionPerformed(java.awt.event.ActionEvent evt)
          Initializes medicineTool 1.
 void NewActionPerformed(java.awt.event.ActionEvent evt)
          This method creates a new workarea.
 void NormalActionPerformed(java.awt.event.ActionEvent evt)
          This function will zoom you to the smallest available view and then set the background to light gray.
 void oneActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the fill type to one, which sets the border and is called by actionPerformed.
 void OpenActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the saving operation 1.
 void orangeMouseClicked(java.awt.event.MouseEvent evt)
          Sets orange as the active color by mouse click.
 void PageSetupActionPerformed(java.awt.event.ActionEvent evt)
          PageSetupActionPerformed shows page setup window through use of printer object It should work with all operating systems and hardware.
 void paintActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and sets current tool to toolBucket.
 void PasteActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to do the pasting action.
 void pencilActionPerformed(java.awt.event.ActionEvent evt)
          Initializes pencilTool 1.
 void pinkMouseClicked(java.awt.event.MouseEvent evt)
          Sets pink as the active color by mouse click.
 void polygonActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and changes current tool to toolPolygon.
 void PreferencesActionPerformed(java.awt.event.ActionEvent evt)
          This function opens the preferences dialog box.
 void presentation(int time, boolean click)
          This method is code to display a presentation of the features of this PAINT program.
 void PrintActionPerformed(java.awt.event.ActionEvent evt)
          This method prints to the printer and is called by actionPerformed.
 void PrintPreviewActionPerformed(java.awt.event.ActionEvent evt)
          PrintPreviewActionPerformed shows print preview in new window It should work with all operating systems and hardware.
 void redMouseClicked(java.awt.event.MouseEvent evt)
          Sets red as the active color by mouse click.
 void RemoveActionPerformed(java.awt.event.ActionEvent evt)
          This function removes a layer ActionEvent object as a parameter.
 void RepeatActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the 'Edit -> Redo' capabilities of TerpPaint.
 void right1ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the brushTool onto the icon at row 3 column1 and is called by actionPerformed.
 void right2ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the brushTool onto the icon at row 3 column2 and is called by actionPerformed.
 void right3ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the brushTool onto the icon at row 3 column3 and is called by actionPerformed.
 void rounded_rectangleActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and changes current button to rounded-rectangle button.
 void save()
          This is a big method which saves the current image in the main canvas into a file.
 void SaveActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to save the painting that you have created.
 void SaveAsActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the saving operation 1.
 void saveFast()
          Allows saving without the dialog box, only called when a currently existing file is open.
 void saveImage(java.awt.image.BufferedImage img)
          Called by save().
 void selectActionPerformed(java.awt.event.ActionEvent evt)
          Initializes selectTool (polygonal selection tool) 1.
 void selectallActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and changes current tool to toolSelectall.
 void SelectionAllActionPerformed(java.awt.event.ActionEvent evt)
          This function selects the entire canvas.
 void setActiveColors(java.awt.event.MouseEvent evt, javax.swing.JButton in)
          Sets current active color.
 void setCanvasSize()
          This function creates the canvas_size dialog box, to set the size when requesting a new canvas It should work with all operating systems and hardware.
 void SharpenActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the sharpen capabilities of TerpPaint.
 void SlideShowActionPerformed(java.awt.event.ActionEvent evt)
          This function is called if it wants to display a slide show of different bitmaps or jpegs.
 void southMouseMoved(java.awt.event.MouseEvent evt)
          no code here.
 void southMousePressed(java.awt.event.MouseEvent evt)
          no code here.
 void splash()
          This method displays the beginning SPLASH screen image.
 void spray1ActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to spray like a can.
 void spray2ActionPerformed(java.awt.event.ActionEvent evt)
          Initializes sprayTool upon event It should work with all operating systems and hardware.
 void spray3ActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to spray like a can.
 void sprayActionPerformed(java.awt.event.ActionEvent evt)
          Initializes sprayTool 1.
 void square1ActionPerformed(java.awt.event.ActionEvent evt)
          This method is called by actionPerformed.
 void square2ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the square size of a brushTool to 2 and is called by actionPerformed.
 void square3ActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the square size of a brushTool to 3 and is called by actionPerformed.
 void squareActionPerformed(java.awt.event.ActionEvent evt)
          Deselects other tools and changes current tool to toolRect.
 void StatusBoxActionPerformed(java.awt.event.ActionEvent evt)
          If the status of the box is visible, it makes it invisible.
 void StretchSkewActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the stretching/skewing capabilities of TerpPaint.
 void threeActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the fill type to three, which sets the fill and is called by actionPerformed.
 void toggleProperties()
          Hides all JDialog dialog boxes It should work with all operating systems and hardware.
 void ToolBoxActionPerformed(java.awt.event.ActionEvent evt)
          Displays toolbox panel if not already visibile, closes panel if is visibile.
 void toolInits()
          This method instantiates all the tools and sets the default values of each tool.
 void twoActionPerformed(java.awt.event.ActionEvent evt)
          This method sets the fill type to two, which sets the border and the fill and is called by actionPerformed.
 void UndoActionPerformed(java.awt.event.ActionEvent evt)
          This function performs the 'Edit -> Undo' capabilities of TerpPaint.
 void UndoListActionPerformed(java.awt.event.ActionEvent evt, int i)
          This function performs the 'Edit -> UndoList->xxx' capabilities of TerpPaint.
 void updateFileMenu()
          This function is called to update the recentfiles in the 'file menu' It should work with all operating systems and hardware.
 void updateUndoList()
          This Method is called whenever an action is performed, it updates the Undo List with a new action.
 void ViewBitmapActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to see the drawing you have as a wallpaper on your computer.
 void whiteMouseClicked(java.awt.event.MouseEvent evt)
          Sets white as the active color by mouse click.
 void yellowMouseClicked(java.awt.event.MouseEvent evt)
          Sets yellow as the active color by mouse click.
 void zoom1ActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to zoom at 1X which is the normal rate.
 void zoom2ActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to zoom at 2X.
 void zoom3ActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to zoom at 4X.
 void zoom4ActionPerformed(java.awt.event.ActionEvent evt)
          This function allows you to zoom at 8X.
 void zoomActionPerformed(java.awt.event.ActionEvent evt)
          Initializes zoomTool 1.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

gc

GarbageCollect gc
garbage collection thread.


alllayers

public AllLayers alllayers
This is for the Layer Box.


myPrefs

public static prefsState myPrefs
This is the current state of preferences.


action_list

public java.util.LinkedList action_list
This is the list indicating action history (actions that can be undone now) for every layer separately.


redo_list

public java.util.LinkedList redo_list
This is the list indicating current undone history (actions that can be redone now) for every layer separately.


active

public static boolean active
This is a boolean value that is initialize to true, used in presentation() which is never called.


mt

public static java.awt.MediaTracker mt
This is a MediaTracker value, used in presentation() which is never called.


splashImBuff

public static java.awt.image.BufferedImage splashImBuff
This is a BufferedImage used for the splash screen in presentation() which is never called.


splashIm

public static java.awt.Image splashIm
This is a Image value.


resize

public boolean resize
This is a boolean value that is initialize to false, indicates whether cursor is in the resize area and should change to resizing arrows.


center

public main_canvas center
This is a main_canvas value, which holds the painting.


grayscaleFlag

public static int grayscaleFlag
this is a int value that is initialize to 0, is 1 when grayscale is selected.


CHANGED

public boolean CHANGED
This is a boolean value that is initialize to false, never used.


CURRENT_FILE

public java.lang.String CURRENT_FILE
This is a string value that is initialize to "untitled", and is the name used in the title of window.


theSound

public java.applet.AudioClip theSound
This is a AudioClip value, not used.


sw

public static SplashWindow sw
This is a SplashWindow value for the splashscreen.


tk

java.awt.Toolkit tk
This is a Toolkit value that is initialize by the function getDefaultToolkit().


pencilImg

java.awt.Image pencilImg
This is an Image value that is initialize by getImage(), for cursor.


bucketImg

java.awt.Image bucketImg
This is an Image value that is initialize by getImage(), for cursor.


dropperImg

java.awt.Image dropperImg
This is an Image value that is initialize by getImage(), for cursor.


eraserImg

java.awt.Image eraserImg
This is an Image value that is initialize by getImage(), for cursor.


eraserImg2

java.awt.Image eraserImg2
This is an Image value that is initialize by getImage(), for cursor.


eraserImg3

java.awt.Image eraserImg3
This is an Image value that is initialize by getImage(), for cursor.


eraserImg4

java.awt.Image eraserImg4
This is an Image value that is initialize by getImage(), for cursor.


eraserNormalImg

java.awt.Image eraserNormalImg
image of eraser cursor in normal zoom.


zoomImg

java.awt.Image zoomImg
This is an Image value that is initialize by getImage() for cursor.


airbrushImg

java.awt.Image airbrushImg
This is an Image value that is initialize by getImage() for cursor.


lassoImg

java.awt.Image lassoImg
This is an Image value that is initialize by getImage() for cursor.


brushImg

java.awt.Image brushImg
This is an Image value that is initialize by getImage() for cursor.


defaultCursor

java.awt.Cursor defaultCursor
This is a Cursor value that is created by the constructor.


currentCursor

java.awt.Cursor currentCursor
This is a Cursor value that is initialize defaultCursor.


MacFlag

public int MacFlag
This is a int value that is initialize to 0, = 1 when a mac computer.


locationWidth

public int locationWidth
The x displacement of initial window opening, where 0 is the left most of screen.


locationHeight

public int locationHeight
The y displacement of initial window opening, where 0 is the topmost of screen.


sizeWidth

public int sizeWidth
The width of the TerpPaint window.


sizeHeight

public int sizeHeight
The height of the TerpPaint window.


clipBoardWidth

public int clipBoardWidth
The width of image in the clipboard, initialized to 0.


clipBoardHeight

public int clipBoardHeight
The height of the image in the clipboard, initialized to 0.


nonEmptyClipboard

public boolean nonEmptyClipboard
This boolean is true when some thing has been copied into the clipboard.


recentFiles

public java.util.Vector recentFiles
This is a vector containing the 4 most recent Files.


FileName1

public javax.swing.JMenuItem FileName1
The JMenuItem that corresponds to opening the first recent file.


FileName2

public javax.swing.JMenuItem FileName2
The JMenuItem that corresponds to opening the second recent file.


FileName3

public javax.swing.JMenuItem FileName3
The JMenuItem that corresponds to opening the third recent file.


FileName4

public javax.swing.JMenuItem FileName4
The JMenuItem that corresponds to opening the fourth recent file.


myContainer

public TerpPaintContainer myContainer
This is the TerpPaintContainer that contains this TerpPaint object.


a

public AutoBackup a
AutoBackup object.


colorTable

public java.util.Vector colorTable
This vector holds all the current colors in the color toolbox.


currentColor

public javax.swing.JButton currentColor
this Jbutton holds the button of the current right-color.


filename

java.lang.String filename
String for filename of current open file.


menu_container

public javax.swing.JMenuBar menu_container
Java swing GUI depicting the menu bar called menu_container.


File1

public javax.swing.JMenu File1
Java swing GUI depicting the menu called File1.


Help

public javax.swing.JMenu Help
Java swing GUI depicting the menu called Help.


HelpTopics

public javax.swing.JMenuItem HelpTopics
Java swing GUI depicting the menu item called HelpTopics.


About

public javax.swing.JMenuItem About
Java swing GUI depicting the menu item called About.


New

public javax.swing.JMenuItem New
Java swing GUI depicting the menu item called New.


Open

public javax.swing.JMenuItem Open
Java swing GUI depicting the menu item called Open.


Save

public javax.swing.JMenuItem Save
Java swing GUI depicting the menu item called Save.


SaveAs

public javax.swing.JMenuItem SaveAs
Java swing GUI depicting the menu item called SaveAs.


jSeparator1

public javax.swing.JSeparator jSeparator1
Java swing GUI depicting the separator called jSeparator1.


PrintPreview

public javax.swing.JMenuItem PrintPreview
Java swing GUI depicting the menu item called PrintPreview.


PageSetup

public javax.swing.JMenuItem PageSetup
Java swing GUI depicting the menu item called PageSetup.


Print

public javax.swing.JMenuItem Print
Java swing GUI depicting the menu item called Print.


jSeparator7

public javax.swing.JSeparator jSeparator7
Java swing GUI depicting the separator called jSeparator7.


Recent

public javax.swing.JMenuItem Recent
Java swing GUI depicting the menu item called Recent File.


jSeparator2

public javax.swing.JSeparator jSeparator2
Java swing GUI depicting the separator called jSeparator2.


Close

public javax.swing.JMenuItem Close
Java swing GUI depicting the menu item called Close.


Exit

public javax.swing.JMenuItem Exit
Java swing GUI depicting the menu item called Exit.


Edit

public javax.swing.JMenu Edit
Java swing GUI depicting the menu called Edit.


Undo

public javax.swing.JMenuItem Undo
Java swing GUI depicting the menu item called Undo.


UndoList

public javax.swing.JMenu UndoList
Java swing GUI depicting the Undolist menu.


UndoList_items

public java.util.LinkedList UndoList_items
Linked List of items in undolist.


Layer

public javax.swing.JMenu Layer
Java swing GUI depicting the menu item called Layer.


Add

public javax.swing.JMenuItem Add
Java swing GUI depicting the JMenuItem called Add.


Remove

public javax.swing.JMenuItem Remove
Java swing GUI depicting the JMenuItem called Remove.


Flatten

public javax.swing.JMenuItem Flatten
Java swing GUI depicting the JMenuItem called Flatten.


jSeparator9

public javax.swing.JSeparator jSeparator9
Java swing GUI depicting a JSeperator.


Repeat

public javax.swing.JMenuItem Repeat
Java swing GUI depicting the menu item called Repeat.


jSeparator3

public javax.swing.JSeparator jSeparator3
Java swing GUI depicting the separator called jSeparator3.


Cut

public javax.swing.JMenuItem Cut
Java swing GUI depicting the menu item Cut.


Copy

public javax.swing.JMenuItem Copy
Java swing GUI depicting the menu item called Copy.


Paste

public javax.swing.JMenuItem Paste
Java swing GUI depicting the menu item called Paste.


ClearSelection

public javax.swing.JMenuItem ClearSelection
Java swing GUI depicting the menu item called ClearSelection.


SelectAll

public javax.swing.JMenuItem SelectAll
Java swing GUI depicting the menu item called SelectAll.


Import

public javax.swing.JMenuItem Import
Java swing GUI depicting the menu item called Import.


Export

public javax.swing.JMenuItem Export
Java swing GUI depicting the menu item called Export.


jSeparator4

public javax.swing.JSeparator jSeparator4
Java swing GUI depicting the separator called jSeparator4.


CopyTo

public javax.swing.JMenuItem CopyTo
Java swing GUI depicting the menu item called CopyTo.


PasteFrom

public javax.swing.JMenuItem PasteFrom
Java swing GUI depicting the menu item called PasteFrom.


MyPreferences

public javax.swing.JMenuItem MyPreferences
Java swing GUI depicting the menu item Preferenes.


jSeparator8

public javax.swing.JSeparator jSeparator8
Java swing GUI depicting the separator called jSeparator8.


View

public javax.swing.JMenu View
Java swing GUI depicting the menu View.


ToolBox

public javax.swing.JCheckBoxMenuItem ToolBox
Java swing GUI depicting the check box menu item called ToolBox.


ColorBox

public javax.swing.JCheckBoxMenuItem ColorBox
Java swing GUI depicting the check box menu item called ColorBox.


StatusBox

public javax.swing.JCheckBoxMenuItem StatusBox
Java swing GUI depicting the check box menu item called StatusBox.


LayerBox

public javax.swing.JCheckBoxMenuItem LayerBox
Java swing GUI depicting the Layer box menu item called LayerBox.


TextToolBox

public javax.swing.JMenuItem TextToolBox
Java swing GUI depicting the menu item called TextToolBox.


jSeparator5

public javax.swing.JSeparator jSeparator5
Java swing GUI depicting the separator called jSeparator5.


Zoom

public javax.swing.JMenu Zoom
Java swing GUI depicting the menu called Zoom.


Normal

public javax.swing.JMenuItem Normal
Java swing GUI depicting the menu item called Normal.


Large

public javax.swing.JMenuItem Large
Java swing GUI depicting the menu item called Large.


Custom

public javax.swing.JMenuItem Custom
Java swing GUI depicting the menu item called Custom.


jSeparator6

public javax.swing.JSeparator jSeparator6
Another separator in GUI.


ShowGrid

public javax.swing.JMenuItem ShowGrid
Java swing GUI depicting the menu item called ShowGrid.


ShowThumbnail

public javax.swing.JMenuItem ShowThumbnail
Java swing GUI depicting the menu item called ShowThumbnail.


ViewBitmap

public javax.swing.JMenuItem ViewBitmap
Java swing GUI depicting the menu item called ViewBitmap.


SlideShow

public javax.swing.JMenuItem SlideShow
Java swing GUI depicting the menu item called SlideShow.


Animation

public javax.swing.JMenuItem Animation
Java swing GUI depicting the menu item called Animation.


Image

public javax.swing.JMenu Image
Java swing GUI depicting the menu called Image.


Filter

public javax.swing.JMenu Filter
Java swing GUI depicting the menu called Filter.


FlipRotate

public javax.swing.JMenuItem FlipRotate
Java swing GUI depicting the menu item FlipRotate.


StretchSkew

public javax.swing.JMenuItem StretchSkew
Java swing GUI depicting the menu item called StretchSkew.


Brightness

public javax.swing.JMenuItem Brightness
Java swing GUI depicting the menu item called Brightness.


Blur

public javax.swing.JMenuItem Blur
Java swing GUI depicting the menu item called Blur.


Sharpen

public javax.swing.JMenuItem Sharpen
Java swing GUI depicting the menu item called Sharpen.


Emboss

public javax.swing.JMenuItem Emboss
Java swing GUI depicting the menu item called Emboss.


Edge

public javax.swing.JMenuItem Edge
Java swing GUI depicting the menu item called Edge.


InvertColors

public javax.swing.JMenuItem InvertColors
Java swing GUI depicting the menu item called InvertColors.


Attributes

public javax.swing.JMenuItem Attributes
Java swing GUI depicting the menu item called Attributes.


ClearImage

public javax.swing.JMenuItem ClearImage
Java swing GUI depicting the menu item called ClearImage.


DrawOpaque

public javax.swing.JCheckBoxMenuItem DrawOpaque
Java swing GUI depicting the check box menu item called DrawOpaque.


Colors

public javax.swing.JMenu Colors
Java swing GUI depicting the menu called Colors.


EditColors

public javax.swing.JMenuItem EditColors
Java swing GUI depicting the menu item called EditColors.


west

public javax.swing.JPanel west
Java swing GUI depicting the panel called west. will be on the left.


shapes

public javax.swing.JPanel shapes
Java swing GUI depicting the panel called shapes.


line

public javax.swing.JButton line
Java swing GUI depicting the button called line.


curve

public javax.swing.JButton curve
Java swing GUI depicting the button called curve.


rounded_rectangle

public javax.swing.JButton rounded_rectangle
Java swing GUI depicting the button called rounded rectangle.


square

public javax.swing.JButton square
Java swing GUI depicting the button called square.


polygon

public javax.swing.JButton polygon
Java swing GUI depicting the button called polygon.


elipse

public javax.swing.JButton elipse
Java swing GUI depicting the button called elipse.


selectall

public javax.swing.JButton selectall
Java swing GUI depicting the button called selectall.


eraser

public javax.swing.JButton eraser
Java swing GUI depicting the button called eraser.


paint

public javax.swing.JButton paint
Java swing GUI depicting the button called paint.


medicine

public javax.swing.JButton medicine
Java swing GUI depicting the button called medicine.


zoom

public javax.swing.JButton zoom
Java swing GUI depicting the button called zoom.


pencil

public javax.swing.JButton pencil
Java swing GUI depicting the button called pencil.


brush

public javax.swing.JButton brush
Java swing GUI depicting the button called brush.


spray

public javax.swing.JButton spray
Java swing GUI depicting the button called spray.


letter

public javax.swing.JButton letter
Java swing GUI depicting the button called letter.


select

public javax.swing.JButton select
Java swing GUI depicting the button called select.


magicSelect

public javax.swing.JButton magicSelect
Java swing GUI depicting the button called magicSelect.


properties

public javax.swing.JPanel properties
Java swing GUI depicting the panel called properties.


line_properties

public javax.swing.JPanel line_properties
Java swing GUI depicting the panel called line properties.


line1

public javax.swing.JButton line1
Java swing GUI depicting the button for line1 width.


line2

public javax.swing.JButton line2
Java swing GUI depicting the button for line2 width.


line3

public javax.swing.JButton line3
Java swing GUI depicting the button for line3 width.


line4

public javax.swing.JButton line4
Java swing GUI depicting the button for line4 width.


line5

public javax.swing.JButton line5
Java swing GUI depicting the button for line5 width.


rect_properties

public javax.swing.JPanel rect_properties
Java swing GUI depicting the panel for rectangle properties.


one

public javax.swing.JButton one
Java swing GUI depicting the rectangle button type one.


two

public javax.swing.JButton two
Java swing GUI depicting the rectangle button type two.


three

public javax.swing.JButton three
Java swing GUI depicting the rectangle button type three.


spray_properties

public javax.swing.JPanel spray_properties
Java swing GUI depicting the panel for spray properties.


spray1

public javax.swing.JButton spray1
Java swing GUI depicting the spray width 1.


spray2

public javax.swing.JButton spray2
Java swing GUI depicting the spray width 3.


spray3

public javax.swing.JButton spray3
Java swing GUI depicting the width 3.


brush_properties

public javax.swing.JPanel brush_properties
Java swing GUI depicting the panel for brush properties.


dot3

public javax.swing.JButton dot3
Java swing GUI depicting the brush dot width biggest.


dot2

public javax.swing.JButton dot2
Java swing GUI depicting the brush dot width medium.


dot1

public javax.swing.JButton dot1
Java swing GUI depicting the brush dot width smallest.


square3

public javax.swing.JButton square3
Java swing GUI depicting the brush square width largest.


square2

public javax.swing.JButton square2
Java swing GUI depicting the brush square width medium.


square1

public javax.swing.JButton square1
Java swing GUI depicting the brush square width smallest.


right3

public javax.swing.JButton right3
Java swing GUI depicting the brush right-hand width largest.


right2

public javax.swing.JButton right2
Java swing GUI depicting the brush right-hand width medium.


right1

public javax.swing.JButton right1
Java swing GUI depicting the brush right-hand width smallest.


left3

public javax.swing.JButton left3
Java swing GUI depicting the brush left-hand width largest.


left2

public javax.swing.JButton left2
Java swing GUI depicting the brush left-hand width medium.


left1

public javax.swing.JButton left1
Java swing GUI depicting the brush left-hand width smallest.


zoom_properties

public javax.swing.JPanel zoom_properties
Java swing GUI depicting the panel zoom properties.


zoom1

public javax.swing.JButton zoom1
Java swing GUI depicting the zoom level 1.


zoom2

public javax.swing.JButton zoom2
Java swing GUI depicting the zoom level 2.


zoom3

public javax.swing.JButton zoom3
Java swing GUI depicting the level 3 zoom.


zoom4

public javax.swing.JButton zoom4
Java swing GUI depicting the level 4 zoom.


paint_properties

public javax.swing.JPanel paint_properties
Java swing GUI depicting the panel paint properties.


paint1

public javax.swing.JButton paint1
Java swing GUI depicting the paint brush width 1.


paint2

public javax.swing.JButton paint2
Java swing GUI depicting the paint brush width 2.


paint3

public javax.swing.JButton paint3
Java swing GUI depicting the paint brush width 3.


paint4

public javax.swing.JButton paint4
Java swing GUI depicting the paint brush width 4.


none

public javax.swing.JPanel none
Java swing GUI depicting the panel called none blank space, filler.


nothing

public javax.swing.JButton nothing
Java swing GUI depicting the button called nothing for blank spavce, filler.


south

public javax.swing.JPanel south
Java swing GUI depicting the panel called south.


colors

public javax.swing.JPanel colors
Java swing GUI depicting the panel called colors.


color_menu

public javax.swing.JPanel color_menu
Java swing GUI depicting the panel for the color menu.


red

public javax.swing.JButton red
Java swing GUI depicting the red button.


green

public javax.swing.JButton green
Java swing GUI depicting the green button.


blue

public javax.swing.JButton blue
Java swing GUI depicting the blue button.


yellow

public javax.swing.JButton yellow
Java swing GUI depicting the yellow button.


magenta

public javax.swing.JButton magenta
Java swing GUI depicting the magenta button.


cyan

public javax.swing.JButton cyan
Java swing GUI depicting the cyan button.


pink

public javax.swing.JButton pink
Java swing GUI depicting the pink button.


white

public javax.swing.JButton white
Java swing GUI depicting the white button.


lgt_gray

public javax.swing.JButton lgt_gray
Java swing GUI depicting the light gray button.


gray

public javax.swing.JButton gray
Java swing GUI depicting the gray button.


drk_gray

public javax.swing.JButton drk_gray
Java swing GUI depicting the dark gray button.


black

public javax.swing.JButton black
Java swing GUI depicting the black button.


brown

public javax.swing.JButton brown
Java swing GUI depicting the brown button.


orange

public javax.swing.JButton orange
Java swing GUI depicting the orange button.


color1

public javax.swing.JButton color1
Java swing GUI depicting the color1 button.


color2

public javax.swing.JButton color2
Java swing GUI depicting the color2 button.


color3

public javax.swing.JButton color3
Java swing GUI depicting the color3 button.


color4

public javax.swing.JButton color4
Java swing GUI depicting the color4 button.


color5

public javax.swing.JButton color5
Java swing GUI depicting the color5 button.


color6

public javax.swing.JButton color6
Java swing GUI depicting the color6 button.


color7

public javax.swing.JButton color7
Java swing GUI depicting the color7 button.


current_colors

public javax.swing.JPanel current_colors
Java swing GUI depicting the panel for the current colors.


right

public javax.swing.JButton right
Java swing GUI depicting the current right color.


left

public javax.swing.JButton left
Java swing GUI depicting the current left colorh.


status

public javax.swing.JPanel status
Java swing GUI depicting the panel for status.


position

public javax.swing.JPanel position
Java swing GUI depicting the panel for position.


cordinates

public javax.swing.JLabel cordinates
Java swing GUI depicting the panel for the coordinates.


currentTool

public ourTool currentTool
This creates a new tool from ourTool which holds the current tool.


curButton

public javax.swing.JButton curButton
This is the currently selected button variable.


toolRoundedRect

public roundedRectTool toolRoundedRect
Creates a rounded rectangle instantiation.


toolRect

public rectTool toolRect
Instantiates the tool rectangle.


toolEllipse

public ellipseTool toolEllipse
Instantiates the tool elipse.


toolPolygon

public polygonTool toolPolygon
Instantiates the tool polygon.


toolLine

public lineTool toolLine
Instantiates the tool line.


toolPencil

public pencilTool toolPencil
Instantiates the tool pencil.


toolBrush

public brushTool toolBrush
Instantiates the tool brush.


toolEraser

public eraserTool toolEraser
Instantiates the tool eraser.


toolSelect

public selectTool toolSelect
Instantiates the tool select.


toolMagicSelect

public magicSelectTool toolMagicSelect
Instantiates the tool magicSelect.


toolSpray

public sprayTool toolSpray
Instantiates the tool spray.


toolMedicine

public medicineTool toolMedicine
Instantiates the tool medicine.


toolSelectall

public selectallTool toolSelectall
Instantiates the tool selectall.


toolBucket

public bucketTool toolBucket
Instantiates the tool bucket.


toolCurve

public curveTool toolCurve
Instantiates the tool curve.


toolLetter

public letterTool toolLetter
Instantiates the tool letter.


toolZoom

public zoomTool toolZoom
Instantiates the tool zoom.


curSpray

public javax.swing.JButton curSpray
The variable for the current selected button for spray.


curLine

public javax.swing.JButton curLine
The variable for the current selected button for line.


curCurve

public javax.swing.JButton curCurve
The variable for the current selected button for curve.


curBrush

public javax.swing.JButton curBrush
The variable for the current selected button for brush.


curZoom

public javax.swing.JButton curZoom
The variable for the current selected button for zoom.


curEllipse

public javax.swing.JButton curEllipse
The variable for the current selected button for elipse.


curPolygon

public javax.swing.JButton curPolygon
The variable for the current selected button for polygon.


curSquare

public javax.swing.JButton curSquare
The variable for the current selected button for square.


curRoundRect

public javax.swing.JButton curRoundRect
The variable for the current selected button for round rectangle.


propColor

public java.awt.Color propColor
The variable for the color that is used to highlight the tool property.


ourPrinter

public printer ourPrinter
printer object used for printing.

Constructor Detail

TerpPaint

public TerpPaint(boolean alone,
                 TerpPaintContainer inContainer)
This is the constructor of the TerpPaint class. It creates a new form TerpPaint. First, it display a picture showing who the authors who create TerpPaint are. Then, it initializes the components need and then set up the board for drawing. It then creates the back up thread and then, initializes the tools and borders. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
alone - a boolean value.
inContainer - a TerpPaintContainer object
Method Detail

updateUndoList

public void updateUndoList()
This Method is called whenever an action is performed, it updates the Undo List with a new action.


initComponents

public void initComponents()
This method is called from within the constructor to initialize the form.


HelpTopicsActionPerformed

public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt)
HelpTopicsActionPerformed displays Help window It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent object from mouseclick

AboutActionPerformed

public void AboutActionPerformed(java.awt.event.ActionEvent evt)
AboutActionPerformed displays a window with info about terppaint It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent object from mouseclick

PrintPreviewActionPerformed

public void PrintPreviewActionPerformed(java.awt.event.ActionEvent evt)
PrintPreviewActionPerformed shows print preview in new window It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent object from mouseclick

PageSetupActionPerformed

public void PageSetupActionPerformed(java.awt.event.ActionEvent evt)
PageSetupActionPerformed shows page setup window through use of printer object It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent object from mouseclick

ImportActionPerformed

public void ImportActionPerformed(java.awt.event.ActionEvent evt)
ImportActionPerformed performs "Paste From" It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent object from mouseclick

ExportActionPerformed

public void ExportActionPerformed(java.awt.event.ActionEvent evt)
ExportActionPerformed performs "Copy To" It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent object from mouseclick

AnimationActionPerformed

public void AnimationActionPerformed(java.awt.event.ActionEvent evt)
This function is called if it wants to display a animation of layers. It has a parameter of an ActionEvent. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent object.

SlideShowActionPerformed

public void SlideShowActionPerformed(java.awt.event.ActionEvent evt)
This function is called if it wants to display a slide show of different bitmaps or jpegs. It has a parameter of an ActionEvent. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent object.

CustomActionPerformed

public void CustomActionPerformed(java.awt.event.ActionEvent evt)
This function will perform 2 operation. It will do the clear action and draw opaque action. It takes in an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

ClearSelectionActionPerformed

public void ClearSelectionActionPerformed(java.awt.event.ActionEvent evt)
This function is called when the user wants to clear the painting. It has a parameter ActionEvent object. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

DrawOpaqueActionPerformed

public void DrawOpaqueActionPerformed(java.awt.event.ActionEvent evt)
This function will draw an Opaque. It has a parameter ActionEvent obj. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

NormalActionPerformed

public void NormalActionPerformed(java.awt.event.ActionEvent evt)
This function will zoom you to the smallest available view and then set the background to light gray. Then, the view of the zoom is kept and saved. It has a parameter ActionEvent object. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

LargeActionPerformed

public void LargeActionPerformed(java.awt.event.ActionEvent evt)
This function will zoom you to the second largest available view and then set the background to light gray. Then, the view of the zoom is kept and saved. It has a parameter ActionEvent object. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

SaveActionPerformed

public void SaveActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to save the painting that you have created. It calls the save function. It has a parameter of an ActionEvent object. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

spray3ActionPerformed

public void spray3ActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to spray like a can. This function set the spray size to 23. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

spray1ActionPerformed

public void spray1ActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to spray like a can. This function set the spray size to 8.It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

ViewBitmapActionPerformed

public void ViewBitmapActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to see the drawing you have as a wallpaper on your computer. The drawing will cover the whole screen of your computer. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

PasteActionPerformed

public void PasteActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to do the pasting action. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

changeToGray

public void changeToGray(boolean toggle)
This function changes all the colors to the buttons to grayscale if true, to color if false. It also initializes the big left and right button which we will use to paint. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
toggle - boolean

changeButtonGray

public void changeButtonGray(javax.swing.JButton in)
This function turns a button gray It has a button object as a parameter, which is to be colored. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
in - a JButton to be colored.

AttributesActionPerformed

public void AttributesActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to execute a maximize or minimize the painting window. It allows you to change the unit to cm, inches or pixels. You can also have a choice of color or just black and white. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

FlipRotateActionPerformed

public void FlipRotateActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to flip and rotate your drawing. You can flip horizontally, vertically or rotate by the degree of angle you want. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

CutActionPerformed

public void CutActionPerformed(java.awt.event.ActionEvent evt)
this function allows you to do the cut action. It has a parameter of an ActionEvent object. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

CopyActionPerformed

public void CopyActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to copy the drawing that you have. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

AddActionPerformed

public void AddActionPerformed(java.awt.event.ActionEvent evt)
This function adds a new layer ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

RemoveActionPerformed

public void RemoveActionPerformed(java.awt.event.ActionEvent evt)
This function removes a layer ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

FlattenActionPerformed

public void FlattenActionPerformed(java.awt.event.ActionEvent evt)
This function flatten all layers ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

zoom4ActionPerformed

public void zoom4ActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to zoom at 8X. This is the biggest zoom capability that this class has. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

zoom3ActionPerformed

public void zoom3ActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to zoom at 4X. This is the second biggest zoom capability that this class has. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

zoom2ActionPerformed

public void zoom2ActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to zoom at 2X. This is the second smallest zoom capability that this class has. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

zoom1ActionPerformed

public void zoom1ActionPerformed(java.awt.event.ActionEvent evt)
This function allows you to zoom at 1X which is the normal rate. This is the smallest zoom capability that this class has. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

left1ActionPerformed

public void left1ActionPerformed(java.awt.event.ActionEvent evt)
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. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

left2ActionPerformed

public void left2ActionPerformed(java.awt.event.ActionEvent evt)
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. It has an ActionEvent object as a parameter. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - an ActionEvent obj.

left3ActionPerformed

public void left3ActionPerformed(java.awt.event.ActionEvent evt)
This method is called by actionPerformed. This function will execute if you click on the brush icon and then another icon which is at row 4 column 3 at the style icon which is right above the color icon. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

right1ActionPerformed

public void right1ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the brushTool onto the icon at row 3 column1 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

right2ActionPerformed

public void right2ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the brushTool onto the icon at row 3 column2 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

right3ActionPerformed

public void right3ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the brushTool onto the icon at row 3 column3 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

square1ActionPerformed

public void square1ActionPerformed(java.awt.event.ActionEvent evt)
This method is called by actionPerformed. It sets the square size of a brushTool to 1. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

square2ActionPerformed

public void square2ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the square size of a brushTool to 2 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

square3ActionPerformed

public void square3ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the square size of a brushTool to 3 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

dot1ActionPerformed

public void dot1ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the dot size of a brushTool to 1 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

dot2ActionPerformed

public void dot2ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the dot size of a brushTool to 2 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

dot3ActionPerformed

public void dot3ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the dot size of a brushTool to 3 and is called by actionPerformed. It calls the methods: setBrushType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

line5ActionPerformed

public void line5ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the lineStroke of a lineTool to size of 5 and is called by actionPerformed. It calls the methods: setLineStroke(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

line4ActionPerformed

public void line4ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the lineStroke of a lineTool to size of 4 and is called by actionPerformed. It calls the methods: setLineStroke(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

line3ActionPerformed

public void line3ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the lineStroke of a lineTool to size of 3 and is called by actionPerformed. It calls the methods: setLineStroke(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

line2ActionPerformed

public void line2ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the lineStroke of a lineTool to size of 2 and is called by actionPerformed. It calls the methods: setLineStroke(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

line1ActionPerformed

public void line1ActionPerformed(java.awt.event.ActionEvent evt)
This method sets the lineStroke of a lineTool to size of 1 and is called by actionPerformed. It calls the methods: setLineStroke(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

threeActionPerformed

public void threeActionPerformed(java.awt.event.ActionEvent evt)
This method sets the fill type to three, which sets the fill and is called by actionPerformed. It calls the methods: setFillType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

twoActionPerformed

public void twoActionPerformed(java.awt.event.ActionEvent evt)
This method sets the fill type to two, which sets the border and the fill and is called by actionPerformed. It calls the methods: setFillType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

oneActionPerformed

public void oneActionPerformed(java.awt.event.ActionEvent evt)
This method sets the fill type to one, which sets the border and is called by actionPerformed. It calls the methods: setFillType(int) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

ClearImageActionPerformed

public void ClearImageActionPerformed(java.awt.event.ActionEvent evt)
This method clears the screen and is called by actionPerformed. It should clear according to the color chosen by the right click. It calls the methods: deSelect() clear() It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

lgt_grayActionPerformed

public void lgt_grayActionPerformed(java.awt.event.ActionEvent evt)
This method is called by actionPerformed. No code. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

EditColorsActionPerformed

public void EditColorsActionPerformed(java.awt.event.ActionEvent evt,
                                      javax.swing.JButton in)
This method resets the background color to that chosen by user and is called by actionPerformed. It calls the methods: setLeftColor(Color) setBackground(Color) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
in - The current right color button.
evt - ActionEvent

LayerBoxActionPerformed

public void LayerBoxActionPerformed(java.awt.event.ActionEvent evt)
If the layer box is visible, it makes it invisible. Otherwise if it is not visible, it will make it visible. It calls the methods: setVisible(boolean) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

StatusBoxActionPerformed

public void StatusBoxActionPerformed(java.awt.event.ActionEvent evt)
If the status of the box is visible, it makes it invisible. Otherwise if it is not visible, it will make it visible. It calls the methods: setVisible(boolean) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

PrintActionPerformed

public void PrintActionPerformed(java.awt.event.ActionEvent evt)
This method prints to the printer and is called by actionPerformed. It calls the methods: deSelect() setPrintable(printer) print() Has 2 states, open and closed. Attempting to write to a closed stream will result in a java.io.IOException being thrown. Some security constraints may exist.

Parameters:
evt - ActionEvent

NewActionPerformed

public void NewActionPerformed(java.awt.event.ActionEvent evt)
This method creates a new workarea. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

setCanvasSize

public void setCanvasSize()
This function creates the canvas_size dialog box, to set the size when requesting a new canvas It should work with all operating systems and hardware. There are no variances and no security constraints.


EditActionPerformed

public void EditActionPerformed(java.awt.event.ActionEvent evt)
There is no code in this one.

Parameters:
evt - ActionEvent

RepeatActionPerformed

public void RepeatActionPerformed(java.awt.event.ActionEvent evt)
This function performs the 'Edit -> Redo' capabilities of TerpPaint. 1. Deselect any selections 2. call redo(). 3. update canvas It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

UndoActionPerformed

public void UndoActionPerformed(java.awt.event.ActionEvent evt)
This function performs the 'Edit -> Undo' capabilities of TerpPaint. 1. Deselect any selections 2. call undo(). 3. update canvas It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

UndoListActionPerformed

public void UndoListActionPerformed(java.awt.event.ActionEvent evt,
                                    int i)
This function performs the 'Edit -> UndoList->xxx' capabilities of TerpPaint. 1. Deselect any selections 2. call undo() some times. 3. update canvas It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent
i - an int specifying which undo action in the list

SelectionAllActionPerformed

public void SelectionAllActionPerformed(java.awt.event.ActionEvent evt)
This function selects the entire canvas. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent Object

spray2ActionPerformed

public void spray2ActionPerformed(java.awt.event.ActionEvent evt)
Initializes sprayTool upon event It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

southMouseMoved

public void southMouseMoved(java.awt.event.MouseEvent evt)
no code here.

Parameters:
evt - MouseEvent

southMousePressed

public void southMousePressed(java.awt.event.MouseEvent evt)
no code here.

Parameters:
evt - MouseEvent

File1ActionPerformed

public void File1ActionPerformed(java.awt.event.ActionEvent evt)
no codehere.

Parameters:
evt - ActionEvent

toggleProperties

public void toggleProperties()
Hides all JDialog dialog boxes It should work with all operating systems and hardware. There are no variances and no security constraints.


centerSetup

public void centerSetup()
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. There are no variances and no security constraints.


StretchSkewActionPerformed

public void StretchSkewActionPerformed(java.awt.event.ActionEvent evt)
This function performs the stretching/skewing capabilities of TerpPaint. 1. Deselect any selections 2. create new stretch object (dialog box pops up) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

BrightnessActionPerformed

public void BrightnessActionPerformed(java.awt.event.ActionEvent evt)
This function performs the brightness change capabilities of TerpPaint. 1. Deselect any selections 2. create new brightness-changed object (dialog box pops up) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

BlurActionPerformed

public void BlurActionPerformed(java.awt.event.ActionEvent evt)
This function performs the blur capabilities of TerpPaint. 1. Deselect any selections 2. create new blurred object (dialog box pops up) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

SharpenActionPerformed

public void SharpenActionPerformed(java.awt.event.ActionEvent evt)
This function performs the sharpen capabilities of TerpPaint. 1. Deselect any selections 2. create new sharpenned object (dialog box pops up) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

EmbossActionPerformed

public void EmbossActionPerformed(java.awt.event.ActionEvent evt)
This function performs the emboss capabilities of TerpPaint. 1. Deselect any selections 2. create new embossed object (dialog box pops up) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

EdgeActionPerformed

public void EdgeActionPerformed(java.awt.event.ActionEvent evt)
This function performs the edge detection capabilities of TerpPaint. 1. Deselect any selections 2. create new edge image (dialog box pops up) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

PreferencesActionPerformed

public void PreferencesActionPerformed(java.awt.event.ActionEvent evt)
This function opens the preferences dialog box. 1. Deselect any selections 2. create new preferences object (dialog box pops up) It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

ColorBoxActionPerformed

public void ColorBoxActionPerformed(java.awt.event.ActionEvent evt)
Displays color_menu panel if not already visibile, closes panel if is visibile. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

ToolBoxActionPerformed

public void ToolBoxActionPerformed(java.awt.event.ActionEvent evt)
Displays toolbox panel if not already visibile, closes panel if is visibile. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

SaveAsActionPerformed

public void SaveAsActionPerformed(java.awt.event.ActionEvent evt)
This function performs the saving operation 1. Deselect any selections 2. calls save() It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

CloseActionPerformed

public void CloseActionPerformed(java.awt.event.ActionEvent evt)
This function performs the saving operation 1. Deselect any selections 2. calls close() It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

ExitActionPerformed

public void ExitActionPerformed(java.awt.event.ActionEvent evt)
This function performs the saving operation 1. Deselect any selections 2. calls exit() It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

OpenActionPerformed

public void OpenActionPerformed(java.awt.event.ActionEvent evt)
This function performs the saving operation 1. Deselect any selections 2. if there is something open, offer option to save it. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

getIcon

public static java.awt.image.BufferedImage getIcon(java.io.File f)
This method is used to interact with TerpManager, It takes a File object which is an image and returns it in BufferedImage form.

Parameters:
f - File object to convert
Returns:
image as a BufferedImage

InvertColorsActionPerformed

public void InvertColorsActionPerformed(java.awt.event.ActionEvent evt)
This function performs the inverting colors operation. 1. Deselect any selections 2. call invertColors(). 3. update canvas It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

canvasMouseReleased

public void canvasMouseReleased(java.awt.event.MouseEvent evt)
no code -- may be same as code found in centerSetup().

Parameters:
evt - MosueEvent

canvasMousePressed

public void canvasMousePressed(java.awt.event.MouseEvent evt)
no code -- may be same as found in centerSetup().

Parameters:
evt - MouseEvent

selectActionPerformed

public void selectActionPerformed(java.awt.event.ActionEvent evt)
Initializes selectTool (polygonal selection tool) 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent panel button press

magicSelectActionPerformed

public void magicSelectActionPerformed(java.awt.event.ActionEvent evt)
Initializes magicSelectTool (magic wand selection tool) 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent panel button press

letterActionPerformed

public void letterActionPerformed(java.awt.event.ActionEvent evt)
Initializes textwriting 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent panel button press

sprayActionPerformed

public void sprayActionPerformed(java.awt.event.ActionEvent evt)
Initializes sprayTool 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent panel button press

brushActionPerformed

public void brushActionPerformed(java.awt.event.ActionEvent evt)
Initializes brushTool 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent panel button press

pencilActionPerformed

public void pencilActionPerformed(java.awt.event.ActionEvent evt)
Initializes pencilTool 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent panel button press

zoomActionPerformed

public void zoomActionPerformed(java.awt.event.ActionEvent evt)
Initializes zoomTool 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent panel button press

medicineActionPerformed

public void medicineActionPerformed(java.awt.event.ActionEvent evt)
Initializes medicineTool 1. Deselect everything 2. Press in button 3. Initialize tool and mouse cursor It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent

paintActionPerformed

public void paintActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and sets current tool to toolBucket. Sets current button to paint button and sets current cursor to bucketCursor. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

eraserActionPerformed

public void eraserActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and changes current tool to tool Changes current cursor to eraserCursor and changes current button to eraser button. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

selectallActionPerformed

public void selectallActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and changes current tool to toolSelectall. Changes current button to selectall button and changes current cursor to defaultCursor. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

elipseActionPerformed

public void elipseActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and changes current tool to toolEllipse. Changes current button to elipse button and changes current cursor to defaultCursor. Also sets current elippse button background color. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

polygonActionPerformed

public void polygonActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and changes current tool to toolPolygon. Changes current button to polygon button and changes current cursor to defaultCursor. Also sets current polygon button background color. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

squareActionPerformed

public void squareActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and changes current tool to toolRect. Changes current button to square button and changes current cursor to default cursor. Also sets current square button background color. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

curveActionPerformed

public void curveActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and changes current tool to toolCurve. Changes current button to curve button and changes current cursor to defaultCursor. Also sets current curve button background color. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

canvasMouseMoved

public void canvasMouseMoved(java.awt.event.MouseEvent evt)
Prints "CANVAS MOUSE MOVED". It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

orangeMouseClicked

public void orangeMouseClicked(java.awt.event.MouseEvent evt)
Sets orange as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

color1MouseClicked

public void color1MouseClicked(java.awt.event.MouseEvent evt)
Sets color1 as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

color2MouseClicked

public void color2MouseClicked(java.awt.event.MouseEvent evt)
Sets color2 as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

color3MouseClicked

public void color3MouseClicked(java.awt.event.MouseEvent evt)
Sets color3 as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

color4MouseClicked

public void color4MouseClicked(java.awt.event.MouseEvent evt)
Sets color4 as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

color5MouseClicked

public void color5MouseClicked(java.awt.event.MouseEvent evt)
Sets color5 as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

color6MouseClicked

public void color6MouseClicked(java.awt.event.MouseEvent evt)
Sets color6 as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

color7MouseClicked

public void color7MouseClicked(java.awt.event.MouseEvent evt)
Sets color7 as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

brownMouseClicked

public void brownMouseClicked(java.awt.event.MouseEvent evt)
Sets brown as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

blackMouseClicked

public void blackMouseClicked(java.awt.event.MouseEvent evt)
Sets black as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

drk_grayMouseClicked

public void drk_grayMouseClicked(java.awt.event.MouseEvent evt)
Sets dark gray as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

grayMouseClicked

public void grayMouseClicked(java.awt.event.MouseEvent evt)
Sets gray as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

lgt_grayMouseClicked

public void lgt_grayMouseClicked(java.awt.event.MouseEvent evt)
Sets light gray as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

whiteMouseClicked

public void whiteMouseClicked(java.awt.event.MouseEvent evt)
Sets white as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

pinkMouseClicked

public void pinkMouseClicked(java.awt.event.MouseEvent evt)
Sets pink as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

cyanMouseClicked

public void cyanMouseClicked(java.awt.event.MouseEvent evt)
Sets cyan as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

magentaMouseClicked

public void magentaMouseClicked(java.awt.event.MouseEvent evt)
Sets magenta as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

yellowMouseClicked

public void yellowMouseClicked(java.awt.event.MouseEvent evt)
Sets yellow as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

blueMouseClicked

public void blueMouseClicked(java.awt.event.MouseEvent evt)
Sets blue as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

greenMouseClicked

public void greenMouseClicked(java.awt.event.MouseEvent evt)
Sets green as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

redMouseClicked

public void redMouseClicked(java.awt.event.MouseEvent evt)
Sets red as the active color by mouse click. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference

getCurrentColor

public java.awt.Color getCurrentColor()
Returns left button background color. It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
Color object

setActiveColors

public void setActiveColors(java.awt.event.MouseEvent evt,
                            javax.swing.JButton in)
Sets current active color. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - MouseEvent reference
in - JButton reference

rounded_rectangleActionPerformed

public void rounded_rectangleActionPerformed(java.awt.event.ActionEvent evt)
Deselects other tools and changes current button to rounded-rectangle button. Sets current tool to toolRoundedRect. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent reference

lineActionPerformed

public void lineActionPerformed(java.awt.event.ActionEvent evt)
This method basically executes code when the user clicks on the LINE tool. toggleProperties() basically hides the properties of whatever tool was previously on the small part of the GUI right below the buttons on the left side. line_properties.setVisible( true ) shows the line properties. In this case, it shows the five types of lines (narrow to wide) the line tool has on the left border of the GUI. There are no OS/Hardware dependencies. No variances and no security constraints. There are also no references to external specifications.

Parameters:
evt - This is the parameter for the action event.

exitForm

public void exitForm(java.awt.event.WindowEvent evt)
This method exits the Application entirely. All it does is calls exit(). NOTE: THIS MIGHT BE WHERE THE MEMORY LEAK IS! BEWARE! No variances and no security constraints. There are also no references to external specifications. As for OS/Hardware dependencies, it depends on how the operating system handles the exit code.

Parameters:
evt - This is the parameter for the window event.

save

public void save()
This is a big method which saves the current image in the main canvas into a file. This method can save the image in the following three formats: JPEG, GIF, and Monochrome BMP. This method also adds an extension while saving if the filename the user inputed does not have an extension. For example, if a user saves a jpeg as "Image", the following code will rename it to "Image.jpg". As for OS/Hardware dependencies, saving relies heavily on the current computer's media. If there is no hard drive, it must save to other media. There are no known variances in the saving process unless it is of an entirely different filesystem. This is usually handled by the operating system anyways. As for security constraints, this save code might allow public users to save onto public directories. But that is a big MIGHT. There are no references to any external specifications at this time.


saveImage

public void saveImage(java.awt.image.BufferedImage img)
Called by save().

Parameters:
img - BufferedImage object that is to be saved
See Also:
save()

saveFast

public void saveFast()
Allows saving without the dialog box, only called when a currently existing file is open. As long as the file has write permissions, there are no OS/Hardware dependencies. No variances and no security constraints. There are also no references to external specifications.


close

public void close()
This method closes the window. If the user made changes after saving or did not even save at all, it will display a dialog asking if the user wishes to save the image before exiting. No variances and no security constraints. There are also no references to external specifications. As for OS/Hardware dependencies, it depends on how the operating system handles the exit code.


exit

public void exit()
This method exits the program. If the user made changes after saving or did not even save at all, it will display a dialog asking if the user wishes to save the image before exiting. No variances and no security constraints. There are also no references to external specifications. As for OS/Hardware dependencies, it depends on how the operating system handles the exit code.


addColorChooser

public void addColorChooser()
This method opens up the universal Color Chooser. The color chooser is basically a way of choosing which color you want specifically. This is probably a 16-bit color configuration. The color chooser opens via swing. Once the user selects which color, it will set the foreground color to that new color. The colors available might be OS dependent. Variances depend on how the monitor and videocard chooses to display ASCII values of color. One color usually looks different from one computer to another. There are no known security constraints. There are no known references to any external specification except for the operating system.


updateFileMenu

public void updateFileMenu()
This function is called to update the recentfiles in the 'file menu' It should work with all operating systems and hardware. There are no variances and no security constraints.


FileNameActionPerformed

public void FileNameActionPerformed(java.awt.event.ActionEvent evt,
                                    int filenum)
This function opens the appropriate recentfile, according to the param passed It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
evt - ActionEvent object
filenum - int for which recent file is to be opened

main

public static void main(java.lang.String[] args)
This method officially launches the Paint program. It first creates a new "TerpPaintContainer" class. Then it launches it by passing a NULL pointer. It should work with all operating systems and hardware. There are no variances and no security constraints.

Parameters:
args - This is the the command line arguments parameter

presentation

public void presentation(int time,
                         boolean click)
This method is code to display a presentation of the features of this PAINT program. It looks inside the directory of ./presentation first. There are no known OS/Hardware dependencies. There are no known variances. Security constraints may include potentially hazardous files inside the ./presentation folder. There are no references to any external specifications. This function is never called.

Parameters:
time - This is the parameter for the amount of time the images are presented. Basically a counter.
click - This is a boolean value of whether or not the mouse has been clicked.

toolInits

public void toolInits()
This method instantiates all the tools and sets the default values of each tool. It also sets the default color of the tools. There are no OS/Hardware dependencies or variances. There are no security constraints. There are no references to any external specifications.


clearRect

public void clearRect()
This method initializes the rectangle tool to use the default color of lightGray. one prints an outline of a rectangle. two prints a solid rectangle. three prints a solid rectangle with a border of the other color. There are no OS/Hardware dependencies or variances. There are no security constraints. There are no references to any external specifications.


clearLine

public void clearLine()
This method sets all sizes of the line tool to the default color of lightGray. There are no OS/Hardware dependencies or variances. There are no security constraints. There are no references to any external specifications.


splash

public void splash()
This method displays the beginning SPLASH screen image. The filename is "./images/paint_splash_4.jpg" so whatever you make paint_splash_4.jpg, it will display it. As you can see, there is a thread.sleep(10000) which waits TEN SECONDS before the splash screen closes. Do note that this method calls yet another method called SplashWindow which actually creates a window of size X, Y. There are no OS/Hardware dependencies or variances. There are no security constraints. There are no references to any external specifications.


borderInits

public void borderInits()
This method basically creates the three dimensional look of the tools. It makes them look really like buttons! This is due to the fact that javax.swing.JButton contains a function called setBorder. Then it calls .createLoweredBevelBorder for the overall 3d-Effect. Neato! There are no OS/Hardware dependencies or variances. There are no security constraints. There are no references to any external specifications.


getRed

public javax.swing.JButton getRed()
returns red JButton It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
red JButton

getBrown

public javax.swing.JButton getBrown()
returns JButton brown It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
brown JButton

getPaintProperties

public javax.swing.JPanel getPaintProperties()
returns the paintproperties JPanel It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
paintproperties Jpanel

getLineProperties

public javax.swing.JPanel getLineProperties()
returns lineproperties jpanel It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
lineproperties JPanel

getRight

public java.awt.Color getRight()
return right button Color It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
Color right button

getOne

public javax.swing.JButton getOne()
returns JButton one, for rectangle drawing mode 1 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton one

getTwo

public javax.swing.JButton getTwo()
returns JButton two, for rectangle drawing mode 2 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton two

getThree

public javax.swing.JButton getThree()
returns JButton three, for rectangle drawing mode 3 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton three

getLine1

public javax.swing.JButton getLine1()
returns jbutton line1, width 1 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton line1, width 1

getLine2

public javax.swing.JButton getLine2()
returns jbutton line2, width 2 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton line2, width 2

getLine3

public javax.swing.JButton getLine3()
returns jbutton line3, width 3 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton line3, width 3

getLine4

public javax.swing.JButton getLine4()
returns jbutton line4, width 4 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton line4, width 4

getLine5

public javax.swing.JButton getLine5()
returns jbutton line5, width 5 It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
JButton line5, width 5

getPrefs

public prefsState getPrefs()
returns the current state of the preferences It should work with all operating systems and hardware. There are no variances and no security constraints.

Returns:
prefsState myPrefs