A B C D E F G H I L M N O P Q R S T U V W X Y

A

accept(File, String) - Method in class GBXFilter
Test to see whether a file should be included in the file list or not.
actionPerformed(ActionEvent) - Method in class CircuitDiagram.MenuListener
Action listener method that handles the command dispatching
actionPerformed(ActionEvent) - Method in class ToolPalette
Executes the corresponding command for a tool selection.
actionPerformed(ActionEvent) - Method in class HelpCloser
 
actionPerformed(ActionEvent) - Method in class AlertListener
Executed when one of the buttons is clicked.
addActionListener(ActionListener) - Method in class IButton
Adds an object that implements the ActionListener interface to this IButton's listener list
addInput(LogicGate) - Method in class LogicGate
Add an input to the gate
addObject(int, int, int, int, Object, int) - Method in class Workspace
Adds an object to the workspace (gate, input, or macro), by giving the location the object should be placed at, what kind of object it is, and that objects id
addObject(int, int, int, Macro, int) - Method in class CircuitDiagram
Top-level call for adding an object to the CircuitDiagram.
addObject(Object) - Method in class Logic
target is a graphical gate - check it's type, then make a new logic gate of the equivalent type and add it to the apropriate vectors.
addObject(Object) - Method in class Macro
Use this method to add an object to this macro
addOutput(LogicGate) - Method in class LogicGate
add a reference to a gate to output to
addOutputGate(GraphicGate) - Method in class GraphicGate
adds gate to the Vector of output gates
afn - Variable in class GBXFilter
The alternate filter name
alert(String, String, String, Frame) - Static method in class AlertListener
Creates a single message two button alert dialog box, and returns true if the first button is selected, false if the second is.
AlertListener - class AlertListener.
Implements a listener that works specifically for the alert dialog generated by AlertListener.alert() Just a handy way of making a standard application alert and receiving the info about which button was clicked.
AlertListener(Dialog) - Constructor for class AlertListener
Standard constructor, takes the dialog box to listen to.
allGates - Variable in class Logic
 
AND - Static variable in class defs
 
AndGraphicGate - class AndGraphicGate.
AndGraphicGate extends GraphicGate, and adds an image of an and gate to it.
AndGraphicGate(int, int, int, Macro, Graphics) - Constructor for class AndGraphicGate
constructor, calls GraphicGate constructor, and gets image
answer() - Method in class AlertListener
Returns the result of the dialog box.

B

bgcolor - Variable in class GBXFileDialog
Default background color.
BOTTOM_OFFSET - Static variable in class defs
 
buffer - Variable in class Workspace
 
buffer() - Method in class Workspace
Creates the image buffer - must be called before Workspace can be used.

C

calcOutputs() - Method in class LogicGate
This is basically a helper function for the extended classes when they calculate.
calculate - Variable in class Workspace
 
calculate() - Method in class CircuitDiagram
Executed when calculate is selected from the macros menu
calculate() - Method in class Logic
calculate is the primary method in the logic class.
calculate() - Method in class LogicGate
defined in each extended class will calculate the gate's output value
calculated - Variable in class LogicGate
True if the gate has been calculated since the last time it was reset
calculateException - exception calculateException.
 
calculateException() - Constructor for class calculateException
 
CancelException - exception CancelException.
This exception is thrown when when file dialog boxes such as open or save, are cancelled.
CancelException() - Constructor for class CancelException
Default constructor - makes an exception with no description
CancelException(String) - Constructor for class CancelException
Constructor that makes an exception with an associated description
cd - Variable in class CircuitDiagram.MenuListener
The CircuitDiagram this MenuListener belongs to
CD - Variable in class GBXGenerator
Our circuitDiagram
CD - Variable in class GBXFileDialog
CircuitDiagram.
CENTER - Static variable in class IButton
 
characters(char[], int, int) - Method in class GBXParser
The method that handles characters.
circuitdiagram - Variable in class FileIO
The Circuit Diagram/
CircuitDiagram - class CircuitDiagram.
This class implements the window for each circuit diagram that's open.
CircuitDiagram.CDCloser - class CircuitDiagram.CDCloser.
This class handles closing the CircuitDiagram window when it's done manually, instead of through a menu command
CircuitDiagram.CDCloser(CircuitDiagram, CircuitDiagram) - Constructor for class CircuitDiagram.CDCloser
Creates the CDCloser - takes the CircuitDiagram that it will control
CircuitDiagram.MenuListener - class CircuitDiagram.MenuListener.
This class handles the actions sent to the various CircuitDiagram menu commands.
CircuitDiagram.MenuListener(CircuitDiagram, CircuitDiagram) - Constructor for class CircuitDiagram.MenuListener
Constructor just creates the actionlistener
CircuitDiagram(GateBuilder, int, Point, boolean) - Constructor for class CircuitDiagram
This constructor creates a circuit diagram window and all the associated objects - workspace, logic, and fileio.
clear() - Method in class Logic
 
clear() - Method in class Workspace
 
clear(Graphics) - Method in class IButton
Clears the button's graphic before painting it
CLOSE_MENU - Static variable in class defs
 
close() - Method in class CircuitDiagram
Executed when close is selected from the file menu
close(int) - Method in class GateBuilder
Closes the specified workspace window, and if it's the last open workspace, quits the program
CONNECT - Static variable in class defs
 
connect(Object, Object) - Method in class Logic
 
connect(Object, Object, boolean) - Method in class Workspace
Connects two gates - First makes sure both objects are gates.
CONNECTION_XML - Static variable in class defs
 
connection2xml(GraphicGate, GraphicGate) - Method in class GBXGenerator
Takes two gates and generates an xml connection between them.
connectObjects(Object, Object, boolean) - Method in class CircuitDiagram
Top-level call for connecting two objects in the CircuitDiagram
contains(Object) - Method in class Macro
Checks to see if an object passed in is already in the macro
currentTool - Variable in class GateBuilder
The applications's currently selected tool

D

DEFAULT_OUTPUT_XML - Static variable in class defs
 
defs - class defs.
 
defs() - Constructor for class defs
 
DESTINATION_XML - Static variable in class defs
 
determineSequential(LogicGate) - Method in class LogicGate
This method determines whether the gate sent to it as checkGate is is part of an input output loop which would mean that it is a sequential gate.
DISCONNECT - Static variable in class defs
 
disconnect(Object, Object) - Method in class Logic
 
disconnect(Object, Object) - Method in class Workspace
Takes two gates, and makes sure there is a connection between them, if so removes that connection.
disconnectObjects(Object, Object) - Method in class CircuitDiagram
Top-level call for disconnecting two objects in the CircuitDiagram
doc - Variable in class GBXGenerator
The document that we will be creating.
drawCalculate() - Method in class Workspace
draws the output value of each gate
drawConnection(GraphicGate, GraphicGate, int) - Method in class Workspace
draws the connection between two gates
drawImage() - Method in class GraphicGate
draws the image at the gate location
drawMacroBox(Macro) - Method in class Workspace
draws a box around all the gates in a macro
drawOutput() - Method in class GraphicGate
draws the output value of the gate

E

EAST - Static variable in class IButton
 
elements() - Method in class Macro
This method is used to enumerate the objects in the macro
endElement(String, String, String) - Method in class GBXParser
This method handles the cleanup for new elements.
equals(Tool, Tool) - Static method in class Tool
Checks if two tools have equal type.
equivGate - Variable in class LogicGate
reference to the equivalent graphics gate
ERASE - Static variable in class defs
 
error(SAXParseException) - Method in class GBXParser
Handler of non-fatal errors.
evaluate() - Method in class LogicGate
 
evaluate() - Method in class LogicAnd
 
evaluate() - Method in class LogicOr
 
evaluate() - Method in class LogicNot
 
evaluate() - Method in class LogicNode
 
evaluate() - Method in class LogicNand
 
evaluate() - Method in class LogicNor
 
evaluate() - Method in class LogicXor
 
evaluate() - Method in class LogicXnor
 
evaluate() - Method in class LogicInput
calculate simply tells all the gates that the input gate outputs to to calculate, since it doesn't need to do any calculating itself
EXPORT_MENU - Static variable in class defs
 
exportMacro() - Method in class CircuitDiagram
Executed when exportmacro is selected from the macros menu
exportMacro() - Method in class FileIO
Saves a macro to a user specified file.

F

f - Variable in class HelpCloser
 
FALSE - Static variable in class defs
 
fatalError(SAXParseException) - Method in class GBXParser
Handler of fatal errors.
fileio - Variable in class CircuitDiagram
The associated fileio
FileIO - class FileIO.
This is the FileIO class it handles all the interaction between the user and the filesystem.
FileIO(CircuitDiagram, GateBuilder) - Constructor for class FileIO
Nominal Constructor for FileIO class.
FileIO(Logic, Workspace, CircuitDiagram) - Constructor for class FileIO
Deprecated.  
filename - Variable in class CircuitDiagram
This CircuitDiagram's default title
filter - Variable in class GBXFileDialog
Our gbx filter.
filter - Static variable in class GBXFilter
Default filter string.
focusGained(FocusEvent) - Method in class CircuitDiagram
Executed on focusGained.
focusGained(FocusEvent) - Method in class AlertListener
 
focusLost(FocusEvent) - Method in class CircuitDiagram
Executed on focusLost.
focusLost(FocusEvent) - Method in class AlertListener
 

G

g - Variable in class Workspace
 
g - Variable in class GraphicGate
 
GATE_XML - Static variable in class defs
 
gate2xml(GraphicGate) - Method in class GBXGenerator
Takes a gate and returns a dom object representing that gate.
gatebuilder - Variable in class FileIO
The GateBuilder
GateBuilder - class GateBuilder.
The top level GateBuilder application class.
GateBuilder() - Constructor for class GateBuilder
The default constructor, which does the same as GateBuilder(false)
GateBuilder(boolean) - Constructor for class GateBuilder
The GateBuilder object that contains the entire program.
gateMacro - Variable in class GraphicGate
 
gates - Variable in class Workspace
 
gateType - Variable in class LogicGate
Stores the type of Gate.
gateType - Variable in class GraphicGate
 
gb - Variable in class GBXGenerator
Our very own GateBulder
GB - Variable in class GBXFileDialog
Gatebuilder class
GB_DOC_SUFFIX - Static variable in class defs
 
GB_MACRO_SUFFIX - Static variable in class defs
 
GBApplet - class GBApplet.
This class is an applet implementation of GateBuilder - all it does is run GateBuilder from an applet window, instead of a standalone application.
GBApplet() - Constructor for class GBApplet
 
GBXFileDialog - class GBXFileDialog.
Class the contains filedialog options.
GBXFileDialog(CircuitDiagram, GateBuilder) - Constructor for class GBXFileDialog
Default constructor.
GBXFilter - class GBXFilter.
This is and implementation of the FilenameFilter interface used to filter all files other than *.gbx.
GBXFilter() - Constructor for class GBXFilter
Default constructor.
GBXFilter(String) - Constructor for class GBXFilter
This constructor sets the name of the filter.
GBXGenerator - class GBXGenerator.
The is a DOM-based GBX Generator.
GBXGenerator(CircuitDiagram, GateBuilder) - Constructor for class GBXGenerator
Nominal Constructor.
GBXParser - class GBXParser.
A SAX2 Parser for GBX Format.
GBXParser(CircuitDiagram, GateBuilder) - Constructor for class GBXParser
 
GENERAL_MENU - Static variable in class defs
 
general() - Static method in class Help
Creates the general help window
generalHelp() - Method in class CircuitDiagram
Executed when General is selected from the help menu
generate(boolean) - Method in class GBXGenerator
This method actually generates the String.
getActionCommand() - Method in class IButton
Gets the actionCommand used when an action event is triggered
getAlignment() - Method in class IButton
Gets the alignment
getApplication() - Method in class GateBuilder
Returns a boolean indicating if GateBuilder is being run as an application or an applet
getBorder() - Method in class IButton
Gets the border width
getBottom() - Method in class Macro
Gets the bottom variable
getButton(Tool) - Method in class ToolPalette
Returns the button in the palette that corresponds to the input tool type.
getCurrentWindow() - Method in class GateBuilder
Gets the window that currently has focus
getGates() - Method in class Workspace
returns the Vector used to store all gates on workspace
getGateType() - Method in class GraphicGate
returns the gateType
getHighlight() - Method in class IButton
Gets the current highlight status
getID() - Method in class GraphicGate
returns current gate id
getInput1() - Method in class GraphicGate
returns the gate connected to input1 of current gate
getInput2() - Method in class GraphicGate
returns the gate connected to input2 of current gate
getLabel() - Method in class IButton
Gets the IButton's current label
getLeftSide() - Method in class Macro
Gets the leftSide variable
getLogicGate() - Method in class GraphicGate
returns the LogicGate corresponding to current gate
getMacro() - Method in class GraphicGate
returns macro
getMacros() - Method in class CircuitDiagram
Returns the macro vector
getMacros() - Method in class Workspace
returns the Vector used to store all macros on workspace
getMaximumSize() - Method in class CircuitDiagram
Returns the max size of the CircuitDiagram.
getMaximumSize() - Method in class Workspace
Gets the maximum panel height and width
getMinimumSize() - Method in class Workspace
Gets the minimum panel height and width
getMinimumSize() - Method in class IButton
Gets the minimum dimensions of the button.
getName() - Method in class Tool
Returns a string containing the name for the tool type
getName() - Method in class Macro
Gets the name of the macro
getNextGateID() - Method in class CircuitDiagram
An accessor for the nextGateID variable
getObjectAtLoc(int, int) - Method in class Workspace
Takes in a location (x, y coordinates) and returns an object if an object was clicked on.
getObjects() - Method in class CircuitDiagram
Returns the object vector
getOutputGates() - Method in class GraphicGate
returns the vector of output gates
getOutputValue() - Method in class LogicGate
 
getOutputValue() - Method in class GraphicGate
returns the output value of a gate
getPreferredSize() - Method in class CircuitDiagram
Returns the preferred size of the CircuitDiagram.
getPreferredSize() - Method in class Workspace
Gets the preferred panel height and width
getPreferredSize() - Method in class IButton
Gets the preferred dimensions of the button.
getProperties() - Method in class GateBuilder
Gets the application's properties object for globalization of program properties like print settings.
getReady() - Method in class GateBuilder
Returns true if the GateBuilder is ready to make files, do shite.
getRightSide() - Method in class Macro
Gets the rightSide variable
getToolType() - Method in class GateBuilder
Returns the currently selected application-wide tool's type, which is an int specified in the Tool class.
getTop() - Method in class Macro
Gets the top variable
getType() - Method in class Tool
Gets the type int of the tool.
getXCoor() - Method in class GraphicGate
returns the x coordinate of the gate
getXML() - Method in class Macro
Gets the inputstream
getYCoor() - Method in class GraphicGate
returns the y coordinate of the gate
GID_XML - Static variable in class defs
 
GOUT_XML - Static variable in class defs
 
GPOS_XML - Static variable in class defs
 
GraphicGate - class GraphicGate.
GraphicGate is an abstract class that is extended by each of the different types of gates, as well as the input object.
GraphicGate(int, int, int, Macro, Graphics) - Constructor for class GraphicGate
GraphicGate constructor - takes location and id, initializes those values, as well as setting up Vector for storing output gates
GTYPE_XML - Static variable in class defs
 
GXPOS_XML - Static variable in class defs
 
GYPOS_XML - Static variable in class defs
 

H

h_size - Static variable in class GBXFileDialog
Default horizontal size of our dialog box.
height - Variable in class Workspace
 
Help - class Help.
This class stores the help texts and handles the creation and deletion of the help windows.
Help() - Constructor for class Help
 
HelpCloser - class HelpCloser.
 
HelpCloser(Frame) - Constructor for class HelpCloser
 

I

IButton - class IButton.
An image button class that creates buttons that can have a text label or an image for its representation.
IButton() - Constructor for class IButton
Creates a new IButton with a blank label, no image, an alignment of center and a border width of 1.
IButton(Image) - Constructor for class IButton
Creates a new IButton with a blank label, a specified image, an alignment of center and a border width of 1.
IButton(String) - Constructor for class IButton
Creates a new IButton with a specified label, no image, an alignment of center and a border width of 1.
IButton(String, Image) - Constructor for class IButton
Creates a new IButton with non-default label and image, an alignment of center and a border width of 1.
IButton(String, Image, int) - Constructor for class IButton
Creates a new IButton with non-default label, image, and alignment, and a border width of 1.
IButton(String, Image, int, int) - Constructor for class IButton
Creates a new IButton with non-default label, image, alignment, and border width
id - Variable in class CircuitDiagram
This CircuitDiagram's id
id - Variable in class LogicGate
the id number of the gate.
id - Variable in class GraphicGate
 
ignorableWhitespace(char[], int, int) - Method in class GBXParser
The method that handles ignorableWhiteSpace.
image - Variable in class IButton
The image for the IButton
image - Variable in class GraphicGate
 
IMAGE_HEIGHT - Static variable in class defs
 
IMAGE_WIDTH - Static variable in class defs
 
imageLocation - Variable in class GraphicGate
 
IMPORT_MENU - Static variable in class defs
 
importMacro() - Method in class CircuitDiagram
Executed when importmacro is selected from the macros menu
importMacro() - Method in class FileIO
Imports a macro from a user specified file.
importMacro(InputStream) - Method in class FileIO
Imports a macro from the specified inputstream.
importMacro(String) - Method in class CircuitDiagram
Executed when a builtin macro is loaded.
importMacro(String) - Method in class FileIO
Imports a macro from a given loactions.
incNextGateID() - Method in class CircuitDiagram
An accessor which increments nextGateID
init() - Method in class GBApplet
Called when the applet is created.
INPUT - Static variable in class defs
 
input1 - Variable in class GraphicGate
 
INPUT1_OFFSET - Static variable in class defs
 
input2 - Variable in class GraphicGate
 
INPUT2_OFFSET - Static variable in class defs
 
inputGates - Variable in class Logic
 
InputGraphicGate - class InputGraphicGate.
InputGraphicGate extends GraphicGate, and adds an image of an input to it.
InputGraphicGate(int, int, int, Macro, int, Graphics) - Constructor for class InputGraphicGate
constructor, calls GraphicGate constructor, and gets image
inputOne - Variable in class LogicGate
reference to gates providing input
inputTwo - Variable in class LogicGate
 

L

lastOutputValue - Variable in class LogicGate
 
LEFT_OFFSET - Static variable in class defs
 
loadImage() - Method in class GraphicGate
loads the image given by imageLocation into the gate image
loadImage(Component, String) - Static method in class GateBuilder
Loads an image from the jar file, caches it and returns it.
logic - Variable in class CircuitDiagram
The associated logic
logic - Variable in class FileIO
The logic space.
Logic - class Logic.
Logic is the main class for handling the logical portion of GateBuilder, it will handle all calculations done with the logic gate constructs
Logic() - Constructor for class Logic
 
LogicAnd - class LogicAnd.
ALL THE FOLLOWING GATES EXTEND THE ABSTRACT * LOGIC GATE CLASS *
LogicAnd(Object) - Constructor for class LogicAnd
 
logicGate - Variable in class GraphicGate
 
LogicGate - class LogicGate.
 
LogicGate() - Constructor for class LogicGate
basic constructor will not be used
LogicGate(Object) - Constructor for class LogicGate
Constructor that will always be used, it takes a graphical gate as its only argument which it will use as its equivalent gate
LogicInput - class LogicInput.
 
LogicInput(Object) - Constructor for class LogicInput
 
LogicNand - class LogicNand.
 
LogicNand(Object) - Constructor for class LogicNand
 
LogicNode - class LogicNode.
 
LogicNode(Object) - Constructor for class LogicNode
 
LogicNor - class LogicNor.
 
LogicNor(Object) - Constructor for class LogicNor
 
LogicNot - class LogicNot.
 
LogicNot(Object) - Constructor for class LogicNot
 
LogicOr - class LogicOr.
 
LogicOr(Object) - Constructor for class LogicOr
 
LogicXnor - class LogicXnor.
 
LogicXnor(Object) - Constructor for class LogicXnor
 
LogicXor - class LogicXor.
 
LogicXor(Object) - Constructor for class LogicXor
 

M

Macro - class Macro.
This class stores the objects in a macro that's been added to the circuit diagram, for structure handling
MACRO_XML - Static variable in class defs
 
Macro() - Constructor for class Macro
Null constructor, creates a macro with nothing in it.
Macro(String) - Constructor for class Macro
Creates a macro with a given name
macro2xml(Macro) - Method in class GBXGenerator
Takes a macro object and returns a DOM element representing the objec.
MACRONAME_XML - Static variable in class defs
 
macros - Variable in class Workspace
 
MACROS_MENU - Static variable in class defs
 
macros() - Static method in class Help
Creates the macros help window
macrosHelp() - Method in class CircuitDiagram
Executed when Macros is selected from the help menu
main(String[]) - Static method in class GateBuilder
Runs the GateBuilder application, starting with the tools palette and a blank workspace
main(String[]) - Static method in class FileIO
This is for testing the FileIO class directly.
mouseClicked(MouseEvent) - Method in class CircuitDiagram
Executed on a mouseClick.
mouseClicked(MouseEvent) - Method in class IButton
Removes the specified ActionListener from the IButton's listener list
mouseDragged(MouseEvent) - Method in class CircuitDiagram
Executed on a mouseDragged.
mouseEntered(MouseEvent) - Method in class CircuitDiagram
Executed on a mouseEntered.
mouseEntered(MouseEvent) - Method in class IButton
Default handling mouseEntered events
mouseExited(MouseEvent) - Method in class CircuitDiagram
Executed on a mouseExited.
mouseExited(MouseEvent) - Method in class IButton
Default handling mouseExited events
mouseMoved(MouseEvent) - Method in class CircuitDiagram
Executed on a mouseMoved.
mousePressed(MouseEvent) - Method in class CircuitDiagram
Executed on a mousePressed.
mousePressed(MouseEvent) - Method in class IButton
Default handling mousePressed events
mouseReleased(MouseEvent) - Method in class CircuitDiagram
Executed on a mouseReleased.
mouseReleased(MouseEvent) - Method in class IButton
Default handling mouseReleased events
moveGate(Object, int, int) - Method in class Workspace
Moves the gate to the new location
moveObject(Object, int, int) - Method in class CircuitDiagram
Top-level call for moving an object in the Workspace
moveObject(Object, int, int) - Method in class Workspace
Check that the target is of type gate first - then move it to the new location.

N

NAND - Static variable in class defs
 
NandGraphicGate - class NandGraphicGate.
NandGraphicGate extends GraphicGate, and adds an image of a nand gate to it.
NandGraphicGate(int, int, int, Macro, Graphics) - Constructor for class NandGraphicGate
constructor, calls GraphicGate constructor, and gets image
NEW_MENU - Static variable in class defs
 
newFile() - Method in class CircuitDiagram
Executed when new is selected from the file menu
newFile(boolean) - Method in class GateBuilder
Creates a new workspace window, cascading from the previous window.
NODE - Static variable in class defs
 
NodeGraphicGate - class NodeGraphicGate.
NodeGraphicGate extends GraphicGate, and adds an image of a node to it.
NodeGraphicGate(int, int, int, Macro, Graphics) - Constructor for class NodeGraphicGate
constructor, calls GraphicGate constructor, and gets image
NONE - Static variable in class defs
 
NOR - Static variable in class defs
 
NorGraphicGate - class NorGraphicGate.
NorGraphicGate extends GraphicGate, and adds an image of a nor gate to it.
NorGraphicGate(int, int, int, Macro, Graphics) - Constructor for class NorGraphicGate
constructor, calls GraphicGate constructor, and gets image
NORTH - Static variable in class IButton
 
NORTHEAST - Static variable in class IButton
 
NORTHWEST - Static variable in class IButton
 
NOT - Static variable in class defs
 
NotGraphicGate - class NotGraphicGate.
NotGraphicGate extends GraphicGate, and adds an image of a not gate to it.
NotGraphicGate(int, int, int, Macro, Graphics) - Constructor for class NotGraphicGate
constructor, calls GraphicGate constructor, and gets image

O

OPEN_MENU - Static variable in class defs
 
OPEN_URL_MENU - Static variable in class defs
 
open() - Method in class CircuitDiagram
Executed when open is selected from the file menu
open() - Method in class FileIO
This opens a file open dialog, gets the filename and then parses the file.
open() - Method in class GBXFileDialog
Default open dialog.
open(String) - Method in class GBXFileDialog
Opens an Open filedialog.
openFile() - Method in class GateBuilder
Creates a new workspace window, and loads a file into it.
openUrl() - Method in class GateBuilder
Crates a new workspace window and loads a URL into it.
openUrl() - Method in class CircuitDiagram
Executed when open url is selected from the file menu
openUrl() - Method in class FileIO
 
OR - Static variable in class defs
 
OrGraphicGate - class OrGraphicGate.
OrGraphicGate extends GraphicGate, and adds an image of an or gate to it.
OrGraphicGate(int, int, int, Macro, Graphics) - Constructor for class OrGraphicGate
constructor, calls GraphicGate constructor, and gets image
output - Variable in class GraphicGate
 
OUTPUT_OFFSET - Static variable in class defs
 
outputs - Variable in class LogicGate
vector of all the gates output to
outputValue - Variable in class LogicGate
holds the output of the gate
outputValue - Variable in class GraphicGate
 

P

paint(Graphics) - Method in class Workspace
Handles the buffered version of the paint method
paint(Graphics) - Method in class IButton
Draws the IButton on the specified graphics object
parent - Variable in class CircuitDiagram
The parent GateBuilder to make global calls on
parent - Variable in class ToolPalette
The parent GateBuilder
parse(InputSource) - Method in class GBXParser
This method does everything needed to parse a file and returns.
parse(String) - Method in class GBXParser
This method does everything needed to parse a file and returns.
PRINT_MENU - Static variable in class defs
 
print() - Method in class CircuitDiagram
Executed when print is selected from the file menu
print(String, InputSource, boolean) - Method in class GBXParser
This methods intializes our parser and prints any information that should be printed.
printInfo() - Method in class LogicGate
 

Q

QUIT_MENU - Static variable in class defs
 
quit() - Method in class GateBuilder
Closes all windows and quits the program
quit() - Method in class CircuitDiagram
Executed when quit is selected from the file menu

R

real_open(String, int) - Method in class GBXFileDialog
The real method for opening a filedialog box.
redrawWorkspace() - Method in class Workspace
redraws the entire workspace, to update all graphics objects locations
reinitialize() - Method in class Workspace
Remove everything from the workspace
remove() - Method in class GraphicGate
deletes a gate
removeGate(Object) - Method in class Workspace
Checks that target is of type gate first - then removes it, by setting pointers from other gates to it to null, and then removing it
removeInput(LogicGate) - Method in class LogicGate
removes oldIn from the gate
removeObject(Object) - Method in class CircuitDiagram
Top-level call for removing an object from the CircuitDiagram
removeObject(Object) - Method in class Logic
 
removeObject(Object, CircuitDiagram) - Method in class Workspace
Checks first to see if the object to be removed is a gate and then sees if it is in a macro or not.
removeOutput(LogicGate) - Method in class LogicGate
remove a gate from the outputs of a gate.
removeOutputGate(GraphicGate) - Method in class GraphicGate
removes the given gate from the Vector of output gates
repaint() - Method in class CircuitDiagram
Calls update as soon as possible.
repaint(int, int, int, int) - Method in class IButton
Overrides the call to repaint a specific rectangle to repaint the entire IButton
resetCalculated() - Method in class LogicGate
resets the calculated variable to false
returnOutput(LogicGate) - Method in class LogicGate
returns the last output the gate calculated.
revertCurrentWindow() - Method in class GateBuilder
Reverts the current window to its previous value
RIGHT_OFFSET - Static variable in class defs
 

S

SAVE_AS_MENU - Static variable in class defs
 
SAVE_MENU - Static variable in class defs
 
save() - Method in class CircuitDiagram
Executed when save is selected from the file menu
save() - Method in class GBXFileDialog
Default save dialog.
save(String) - Method in class FileIO
Opens a save dialog and saves the GBX file in the user specified location.
save(String) - Method in class GBXFileDialog
Opens a Save filedialog.
save(String, boolean) - Method in class FileIO
Opens a save dialog and saves the GBX file in the user specified locaiton.
save(String, boolean) - Method in class GBXFileDialog
Opens a Save filedialog.
saveAs() - Method in class CircuitDiagram
Executed when saveas is selected from the file menu
saveAs(String) - Method in class FileIO
Saves the current workspace as a user specified name and returns the name of the saved file.
saveChanges() - Method in class CircuitDiagram
Helper function that only saves if changes have been made
sequential - Variable in class LogicGate
If true the gate is sequential, that is that it is in a loop from its output to its input.
setActionCommand(String) - Method in class IButton
Sets the actionCommand specified by the IButton when an action event is triggered
setAlignment(int) - Method in class IButton
Sets the alignment to the input, which should be one of the constants defined in this class
setBorder(int) - Method in class IButton
Sets the border width to the input
setBottom(int) - Method in class Macro
Sets the bottom variable
setCurrentWindow(Window) - Method in class GateBuilder
Sets the current window to the specified frame
setFilename(String) - Method in class CircuitDiagram
Sets the filename for the current circuit diagram, and makes the title bar read the new name.
setGateLocation(int, int) - Method in class GraphicGate
sets the gate location - used to move gate as well
setHighlight(boolean) - Method in class IButton
 
setInput1(GraphicGate) - Method in class GraphicGate
sets input1 of the gate to the gate being connected
setInput2(GraphicGate) - Method in class GraphicGate
sets input2 of the gate to the gate being connected
setLabel(String) - Method in class IButton
Sets the IButton's label
setLeftSide(int) - Method in class Macro
Sets the leftSide variable
setLogicGate(LogicGate) - Method in class GraphicGate
sets the logicGate variable - should be called in LogicGate constructor
setMacro(Macro) - Method in class GraphicGate
sets macro
setName(String) - Method in class Macro
Sets the macro name
setOutputGates(Vector) - Method in class GraphicGate
takes a vector of gates and sets it to the output gates vector
setOutputValue(boolean) - Method in class LogicInput
 
setOutputValue(boolean) - Method in class GraphicGate
sets the output value of the gate - called by coresponding logic gate when calculate is run
setPersistentHighlight(boolean) - Method in class IButton
 
setProperties(Properties) - Method in class GateBuilder
Sets the application's properties object to the input object to allow other classes to modify the global properties settings.
setRightSide(int) - Method in class Macro
Sets the rightSide variable
setTool(Tool) - Method in class GateBuilder
Sets the application's current tool to the input tool object.
setTop(int) - Method in class Macro
Sets the top variable
setXML(InputStream) - Method in class Macro
Sets the macro outputstream
SOURCE_XML - Static variable in class defs
 
SOUTH - Static variable in class IButton
 
SOUTHEAST - Static variable in class IButton
 
SOUTHWEST - Static variable in class IButton
 
startDocument() - Method in class GBXParser
The method that gets called at the start of the gbx document.
startElement(String, String, String, Attributes) - Method in class GBXParser
The method that handles new elements.
stateChange - Variable in class Workspace
 
STRETCH - Static variable in class IButton
 

T

title - Static variable in class GBXFileDialog
Default title of dialog box.
toggleImage() - Method in class InputGraphicGate
toggles imageLocation string, so images with 1 and 0 can be displayed
toggleInput(Object) - Method in class CircuitDiagram
Top-level call for toggling the value of an input object
toggleInput(Object) - Method in class Logic
 
toggleInput(Object) - Method in class Workspace
Toggles the input value of an input object
Tool - class Tool.
An int wrapper class that specifies the type of tool currently in use.
Tool(int) - Constructor for class Tool
Makes a new tool obejct with a type corresponding to the int passed in, which should be one of the static ints defined in this class.
ToolPalette - class ToolPalette.
The ToolPalette class creates a window that contains the buttons for selecting the current tool to use in GateBuilder.
ToolPalette(Object, Point) - Constructor for class ToolPalette
The only constructor takes the parent object (which can only be a GateBuilder at the moment) and the location from the top left corner of the screen to display the window at.
tools - Variable in class GateBuilder
The application's ToolPalette
TOOLS_MENU - Static variable in class defs
 
tools() - Static method in class Help
Creates the tools help window
toolsHelp() - Method in class CircuitDiagram
Executed when Tools is selected from the help menu
TOP_OFFSET - Static variable in class defs
 
toString() - Method in class IButton
Returns a string representation of this IButton
TRUE - Static variable in class defs
 
type - Variable in class GBXGenerator
This tells us what we want to generate ( a workspace, a macro, or both)

U

unlinkGates() - Method in class LogicGate
unlinkGate takes all the gates that link to the gate as an input or an output and removes those links
update(Graphics) - Method in class Workspace
Handles the buffered version of the update method
update(Graphics) - Method in class IButton
Is called whenever the button's graphic representation needs to be updated.
updateMacros(String) - Method in class CircuitDiagram
Takes a path to a macro file and puts it in the macros menu if it's not already there, and adds it to the macro cache

V

v_size - Static variable in class GBXFileDialog
Default vertical size of our dialog box.
VALUE_X - Static variable in class defs
 
VALUE_Y - Static variable in class defs
 

W

w - Variable in class CircuitDiagram.CDCloser
 
warning(SAXParseException) - Method in class GBXParser
Handler of warnings.
WEST - Static variable in class IButton
 
width - Variable in class Workspace
 
WINDOW_HEIGHT - Static variable in class defs
 
WINDOW_WIDTH - Static variable in class defs
 
windowClosing(WindowEvent) - Method in class CircuitDiagram.CDCloser
Executed on WindowClosing - calls circuitdiagram.close()
workspace - Variable in class CircuitDiagram
The associated workspace
workspace - Variable in class FileIO
The Workspace.
Workspace - class Workspace.
The workspace class is the panel where all of the gates are drawn, this is basically what the user sees, adding gates, moving gates etc.
WORKSPACE_HEIGHT - Static variable in class defs
 
WORKSPACE_WIDTH - Static variable in class defs
 
WORKSPACE_XML - Static variable in class defs
 
Workspace(int, int) - Constructor for class Workspace
Workspace constructor - calls the awt.Panel constructor, and sets the szie of the workspace

X

x - Variable in class GraphicGate
 
xcoordinateNext - Variable in class GBXParser
Elements.
XNOR - Static variable in class defs
 
XnorGraphicGate - class XnorGraphicGate.
XnorGraphicGate extends GraphicGate, and adds an image of a xnor gate to it.
XnorGraphicGate(int, int, int, Macro, Graphics) - Constructor for class XnorGraphicGate
constructor, calls GraphicGate constructor, and gets image
XOR - Static variable in class defs
 
XorGraphicGate - class XorGraphicGate.
XorGraphicGate extends GraphicGate, and adds an image of a xor gate to it.
XorGraphicGate(int, int, int, Macro, Graphics) - Constructor for class XorGraphicGate
constructor, calls GraphicGate constructor, and gets image

Y

y - Variable in class GraphicGate
 
ycoordinateNext - Variable in class GBXParser
xcoordinate of current gate.

A B C D E F G H I L M N O P Q R S T U V W X Y