|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
TerpPaint
public class TerpPaint
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.
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 |
---|
GarbageCollect gc
public AllLayers alllayers
public static prefsState myPrefs
public java.util.LinkedList action_list
public java.util.LinkedList redo_list
public static boolean active
public static java.awt.MediaTracker mt
public static java.awt.image.BufferedImage splashImBuff
public static java.awt.Image splashIm
public boolean resize
public main_canvas center
public static int grayscaleFlag
public boolean CHANGED
public java.lang.String CURRENT_FILE
public java.applet.AudioClip theSound
public static SplashWindow sw
java.awt.Toolkit tk
java.awt.Image pencilImg
java.awt.Image bucketImg
java.awt.Image dropperImg
java.awt.Image eraserImg
java.awt.Image eraserImg2
java.awt.Image eraserImg3
java.awt.Image eraserImg4
java.awt.Image eraserNormalImg
java.awt.Image zoomImg
java.awt.Image airbrushImg
java.awt.Image lassoImg
java.awt.Image brushImg
java.awt.Cursor defaultCursor
java.awt.Cursor currentCursor
public int MacFlag
public int locationWidth
public int locationHeight
public int sizeWidth
public int sizeHeight
public int clipBoardWidth
public int clipBoardHeight
public boolean nonEmptyClipboard
public java.util.Vector recentFiles
public javax.swing.JMenuItem FileName1
public javax.swing.JMenuItem FileName2
public javax.swing.JMenuItem FileName3
public javax.swing.JMenuItem FileName4
public TerpPaintContainer myContainer
public AutoBackup a
public java.util.Vector colorTable
public javax.swing.JButton currentColor
java.lang.String filename
public javax.swing.JMenuBar menu_container
public javax.swing.JMenu File1
public javax.swing.JMenu Help
public javax.swing.JMenuItem HelpTopics
public javax.swing.JMenuItem About
public javax.swing.JMenuItem New
public javax.swing.JMenuItem Open
public javax.swing.JMenuItem Save
public javax.swing.JMenuItem SaveAs
public javax.swing.JSeparator jSeparator1
public javax.swing.JMenuItem PrintPreview
public javax.swing.JMenuItem PageSetup
public javax.swing.JMenuItem Print
public javax.swing.JSeparator jSeparator7
public javax.swing.JMenuItem Recent
public javax.swing.JSeparator jSeparator2
public javax.swing.JMenuItem Close
public javax.swing.JMenuItem Exit
public javax.swing.JMenu Edit
public javax.swing.JMenuItem Undo
public javax.swing.JMenu UndoList
public java.util.LinkedList UndoList_items
public javax.swing.JMenu Layer
public javax.swing.JMenuItem Add
public javax.swing.JMenuItem Remove
public javax.swing.JMenuItem Flatten
public javax.swing.JSeparator jSeparator9
public javax.swing.JMenuItem Repeat
public javax.swing.JSeparator jSeparator3
public javax.swing.JMenuItem Cut
public javax.swing.JMenuItem Copy
public javax.swing.JMenuItem Paste
public javax.swing.JMenuItem ClearSelection
public javax.swing.JMenuItem SelectAll
public javax.swing.JMenuItem Import
public javax.swing.JMenuItem Export
public javax.swing.JSeparator jSeparator4
public javax.swing.JMenuItem CopyTo
public javax.swing.JMenuItem PasteFrom
public javax.swing.JMenuItem MyPreferences
public javax.swing.JSeparator jSeparator8
public javax.swing.JMenu View
public javax.swing.JCheckBoxMenuItem ToolBox
public javax.swing.JCheckBoxMenuItem ColorBox
public javax.swing.JCheckBoxMenuItem StatusBox
public javax.swing.JCheckBoxMenuItem LayerBox
public javax.swing.JMenuItem TextToolBox
public javax.swing.JSeparator jSeparator5
public javax.swing.JMenu Zoom
public javax.swing.JMenuItem Normal
public javax.swing.JMenuItem Large
public javax.swing.JMenuItem Custom
public javax.swing.JSeparator jSeparator6
public javax.swing.JMenuItem ShowGrid
public javax.swing.JMenuItem ShowThumbnail
public javax.swing.JMenuItem ViewBitmap
public javax.swing.JMenuItem SlideShow
public javax.swing.JMenuItem Animation
public javax.swing.JMenu Image
public javax.swing.JMenu Filter
public javax.swing.JMenuItem FlipRotate
public javax.swing.JMenuItem StretchSkew
public javax.swing.JMenuItem Brightness
public javax.swing.JMenuItem Blur
public javax.swing.JMenuItem Sharpen
public javax.swing.JMenuItem Emboss
public javax.swing.JMenuItem Edge
public javax.swing.JMenuItem InvertColors
public javax.swing.JMenuItem Attributes
public javax.swing.JMenuItem ClearImage
public javax.swing.JCheckBoxMenuItem DrawOpaque
public javax.swing.JMenu Colors
public javax.swing.JMenuItem EditColors
public javax.swing.JPanel west
public javax.swing.JPanel shapes
public javax.swing.JButton line
public javax.swing.JButton curve
public javax.swing.JButton rounded_rectangle
public javax.swing.JButton square
public javax.swing.JButton polygon
public javax.swing.JButton elipse
public javax.swing.JButton selectall
public javax.swing.JButton eraser
public javax.swing.JButton paint
public javax.swing.JButton medicine
public javax.swing.JButton zoom
public javax.swing.JButton pencil
public javax.swing.JButton brush
public javax.swing.JButton spray
public javax.swing.JButton letter
public javax.swing.JButton select
public javax.swing.JButton magicSelect
public javax.swing.JPanel properties
public javax.swing.JPanel line_properties
public javax.swing.JButton line1
public javax.swing.JButton line2
public javax.swing.JButton line3
public javax.swing.JButton line4
public javax.swing.JButton line5
public javax.swing.JPanel rect_properties
public javax.swing.JButton one
public javax.swing.JButton two
public javax.swing.JButton three
public javax.swing.JPanel spray_properties
public javax.swing.JButton spray1
public javax.swing.JButton spray2
public javax.swing.JButton spray3
public javax.swing.JPanel brush_properties
public javax.swing.JButton dot3
public javax.swing.JButton dot2
public javax.swing.JButton dot1
public javax.swing.JButton square3
public javax.swing.JButton square2
public javax.swing.JButton square1
public javax.swing.JButton right3
public javax.swing.JButton right2
public javax.swing.JButton right1
public javax.swing.JButton left3
public javax.swing.JButton left2
public javax.swing.JButton left1
public javax.swing.JPanel zoom_properties
public javax.swing.JButton zoom1
public javax.swing.JButton zoom2
public javax.swing.JButton zoom3
public javax.swing.JButton zoom4
public javax.swing.JPanel paint_properties
public javax.swing.JButton paint1
public javax.swing.JButton paint2
public javax.swing.JButton paint3
public javax.swing.JButton paint4
public javax.swing.JPanel none
public javax.swing.JButton nothing
public javax.swing.JPanel south
public javax.swing.JPanel colors
public javax.swing.JPanel color_menu
public javax.swing.JButton red
public javax.swing.JButton green
public javax.swing.JButton blue
public javax.swing.JButton yellow
public javax.swing.JButton magenta
public javax.swing.JButton cyan
public javax.swing.JButton pink
public javax.swing.JButton white
public javax.swing.JButton lgt_gray
public javax.swing.JButton gray
public javax.swing.JButton drk_gray
public javax.swing.JButton black
public javax.swing.JButton brown
public javax.swing.JButton orange
public javax.swing.JButton color1
public javax.swing.JButton color2
public javax.swing.JButton color3
public javax.swing.JButton color4
public javax.swing.JButton color5
public javax.swing.JButton color6
public javax.swing.JButton color7
public javax.swing.JPanel current_colors
public javax.swing.JButton right
public javax.swing.JButton left
public javax.swing.JPanel status
public javax.swing.JPanel position
public javax.swing.JLabel cordinates
public ourTool currentTool
public javax.swing.JButton curButton
public roundedRectTool toolRoundedRect
public rectTool toolRect
public ellipseTool toolEllipse
public polygonTool toolPolygon
public lineTool toolLine
public pencilTool toolPencil
public brushTool toolBrush
public eraserTool toolEraser
public selectTool toolSelect
public magicSelectTool toolMagicSelect
public sprayTool toolSpray
public medicineTool toolMedicine
public selectallTool toolSelectall
public bucketTool toolBucket
public curveTool toolCurve
public letterTool toolLetter
public zoomTool toolZoom
public javax.swing.JButton curSpray
public javax.swing.JButton curLine
public javax.swing.JButton curCurve
public javax.swing.JButton curBrush
public javax.swing.JButton curZoom
public javax.swing.JButton curEllipse
public javax.swing.JButton curPolygon
public javax.swing.JButton curSquare
public javax.swing.JButton curRoundRect
public java.awt.Color propColor
public printer ourPrinter
Constructor Detail |
---|
public TerpPaint(boolean alone, TerpPaintContainer inContainer)
alone
- a boolean value.inContainer
- a TerpPaintContainer objectMethod Detail |
---|
public void updateUndoList()
public void initComponents()
public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent object from mouseclickpublic void AboutActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent object from mouseclickpublic void PrintPreviewActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent object from mouseclickpublic void PageSetupActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent object from mouseclickpublic void ImportActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent object from mouseclickpublic void ExportActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent object from mouseclickpublic void AnimationActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent object.public void SlideShowActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent object.public void CustomActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void ClearSelectionActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void DrawOpaqueActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void NormalActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void LargeActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void SaveActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void spray3ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void spray1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void ViewBitmapActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void PasteActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void changeToGray(boolean toggle)
toggle
- booleanpublic void changeButtonGray(javax.swing.JButton in)
in
- a JButton to be colored.public void AttributesActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void FlipRotateActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void CutActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void CopyActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void AddActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void RemoveActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void FlattenActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void zoom4ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void zoom3ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void zoom2ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void zoom1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void left1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void left2ActionPerformed(java.awt.event.ActionEvent evt)
evt
- an ActionEvent obj.public void left3ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void right1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void right2ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void right3ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void square1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void square2ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void square3ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void dot1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void dot2ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void dot3ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void line5ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void line4ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void line3ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void line2ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void line1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void threeActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void twoActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void oneActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void ClearImageActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void lgt_grayActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void EditColorsActionPerformed(java.awt.event.ActionEvent evt, javax.swing.JButton in)
in
- The current right color button.evt
- ActionEventpublic void LayerBoxActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void StatusBoxActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void PrintActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void NewActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void setCanvasSize()
public void EditActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void RepeatActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void UndoActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void UndoListActionPerformed(java.awt.event.ActionEvent evt, int i)
evt
- ActionEventi
- an int specifying which undo action in the listpublic void SelectionAllActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent Objectpublic void spray2ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void southMouseMoved(java.awt.event.MouseEvent evt)
evt
- MouseEventpublic void southMousePressed(java.awt.event.MouseEvent evt)
evt
- MouseEventpublic void File1ActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void toggleProperties()
public void centerSetup()
public void StretchSkewActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void BrightnessActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void BlurActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void SharpenActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void EmbossActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void EdgeActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void PreferencesActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void ColorBoxActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void ToolBoxActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void SaveAsActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void CloseActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void ExitActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void OpenActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic static java.awt.image.BufferedImage getIcon(java.io.File f)
f
- File object to convert
public void InvertColorsActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void canvasMouseReleased(java.awt.event.MouseEvent evt)
evt
- MosueEventpublic void canvasMousePressed(java.awt.event.MouseEvent evt)
evt
- MouseEventpublic void selectActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent panel button presspublic void magicSelectActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent panel button presspublic void letterActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent panel button presspublic void sprayActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent panel button presspublic void brushActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent panel button presspublic void pencilActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent panel button presspublic void zoomActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent panel button presspublic void medicineActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEventpublic void paintActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void eraserActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void selectallActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void elipseActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void polygonActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void squareActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void curveActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void canvasMouseMoved(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void orangeMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void color1MouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void color2MouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void color3MouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void color4MouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void color5MouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void color6MouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void color7MouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void brownMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void blackMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void drk_grayMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void grayMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void lgt_grayMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void whiteMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void pinkMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void cyanMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void magentaMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void yellowMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void blueMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void greenMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic void redMouseClicked(java.awt.event.MouseEvent evt)
evt
- MouseEvent referencepublic java.awt.Color getCurrentColor()
public void setActiveColors(java.awt.event.MouseEvent evt, javax.swing.JButton in)
evt
- MouseEvent referencein
- JButton referencepublic void rounded_rectangleActionPerformed(java.awt.event.ActionEvent evt)
evt
- ActionEvent referencepublic void lineActionPerformed(java.awt.event.ActionEvent evt)
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.
evt
- This is the parameter for the action event.public void exitForm(java.awt.event.WindowEvent evt)
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.
evt
- This is the parameter for the window event.public void save()
public void saveImage(java.awt.image.BufferedImage img)
img
- BufferedImage object that is to be savedsave()
public void saveFast()
public void close()
public void exit()
public void addColorChooser()
public void updateFileMenu()
public void FileNameActionPerformed(java.awt.event.ActionEvent evt, int filenum)
evt
- ActionEvent objectfilenum
- int for which recent file is to be openedpublic static void main(java.lang.String[] args)
args
- This is the the command line arguments parameterpublic void presentation(int time, boolean click)
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.public void toolInits()
public void clearRect()
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.
public void clearLine()
public void splash()
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.
public void borderInits()
public javax.swing.JButton getRed()
public javax.swing.JButton getBrown()
public javax.swing.JPanel getPaintProperties()
public javax.swing.JPanel getLineProperties()
public java.awt.Color getRight()
public javax.swing.JButton getOne()
public javax.swing.JButton getTwo()
public javax.swing.JButton getThree()
public javax.swing.JButton getLine1()
public javax.swing.JButton getLine2()
public javax.swing.JButton getLine3()
public javax.swing.JButton getLine4()
public javax.swing.JButton getLine5()
public prefsState getPrefs()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |