VennDrawing
Class GUIBuilder

java.lang.Object
  extended by VennDrawing.GUIBuilder

 class GUIBuilder
extends java.lang.Object

Builds a GUI to draw the venn diagram.

A simple class to creat a GUI for the venn diagram. The method is to depict
the Grid Array.

Copyright: Copyright (c) 2008

Company: Bangladesh University of engineering and technology


Field Summary
(package private)  DrawPane drawPanel
          The main Drawing panel where all graphics work to be done.
(package private)  javax.swing.JFrame frame
          A javax.swing.Component where Drawing panels are contained.
(package private)  int[][] Grid
          The grid array.
(package private)  javax.swing.JPanel mainPanel
          The main Contained to contain the drawing panel.
(package private)  int maxX
          The maximum value of x in the GUI frame
(package private)  int maxY
          The maximum value of y in the GUI frame
(package private)  int order
          The order of the venn diagram.
 
Constructor Summary
GUIBuilder(int maxX, int maxY, int[][] Grid, int order, RSet[] setArray)
          Constructor for the object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxX

int maxX
The maximum value of x in the GUI frame


maxY

int maxY
The maximum value of y in the GUI frame


order

int order
The order of the venn diagram. Initialized from the consturctor.


Grid

int[][] Grid
The grid array. Initially Null. But initialized from constructor to depict to GUI.


frame

javax.swing.JFrame frame
A javax.swing.Component where Drawing panels are contained.


mainPanel

javax.swing.JPanel mainPanel
The main Contained to contain the drawing panel.


drawPanel

DrawPane drawPanel
The main Drawing panel where all graphics work to be done.

Constructor Detail

GUIBuilder

public GUIBuilder(int maxX,
                  int maxY,
                  int[][] Grid,
                  int order,
                  RSet[] setArray)
Constructor for the object.

Parameters:
maxX - Maximum value of X of the GUI Draw Panel.
maxY - Maximum value of Y of the GUI Draw Panel.
Grid - the 2D array already initialized in VennDiagram object.
order - order of the venn diagram.
setArray - Array of possible all sets as RSet objects