Professional Documents
Culture Documents
_______________
A Thesis
Presented to the
Faculty of
_______________
In Partial Fulfillment
Master of Science
in
Computer Science
_______________
by
Fall 2012
iii
Copyright © 2012
by
Parita Maheshbhai Shah
All Rights Reserved
iv
DEDICATION
Cricket is an international sport, defined as bat and ball game, played between two
teams of 11 players each on a grassy field. Cricket is very well developed in many countries
and these countries are categorized as Full Members, Associate Members and Affiliate
Members. Each country is governed by its own Cricket Association and the International
Cricket Council (ICC) is the international governing body of cricket.
This thesis seeks to bring together the history of cricket that examines the dispersion
of cricket in the British Empire, its appropriation by the colonies and the subsequent
commercialization of the sport in countries all over the world.
This tool is a geographic tool that shows how cricket as a sport, which survived as
children’s game for centuries during Norman times, was increasingly taken up by adults
around the beginning of the 17th century. This tool brings together the history of cricket, by
country, and discusses how and why cricket, which was a popular game during the 18th
century lost ground in the United States and how and why baseball came to be known as
national pastime in the United States. This tool locates each country based on the member
group it belongs to in International Cricket.
This tool is developed in JAVA as the programming language and utilizes Map
Objects Java Edition (MOJO), provided by ESRI. ArcMap, a GIS component was used to
create the shapefiles and easily incorporate various features of GIS into this application.
vi
TABLE OF CONTENTS
PAGE
ABSTRACT ...............................................................................................................................v
LIST OF TABLES ................................................................................................................. viii
LIST OF FIGURES ................................................................................................................. ix
ACKNOWLEDGEMENTS ..................................................................................................... xi
CHAPTER
1 INTRODUCTION .........................................................................................................1
1.1 The Game - Basics .............................................................................................2
1.2 Types of Cricket .................................................................................................2
1.3 Equipment ..........................................................................................................3
1.4 Field ...................................................................................................................3
1.5 Toss ....................................................................................................................4
1.6 Run Scoring Types.............................................................................................4
1.7 Types of Wickets ...............................................................................................6
1.8 Match Officials ..................................................................................................8
1.9 Playing Teams ..................................................................................................10
2 HISTORY OF CRICKET ............................................................................................11
2.1 Globalization of Cricket ...................................................................................11
2.1.1 First Recognition .................................................................................... 12
2.1.2 17th Century Cricket .............................................................................. 12
2.1.3 18th Century Cricket .............................................................................. 13
2.1.4 19th Century Cricket .............................................................................. 14
2.1.5 20th Century Cricket .............................................................................. 17
2.2 History of Cricket in the US ............................................................................18
2.2.1 Diffusion of Cricket in the United States ............................................... 19
2.2.2 Decline of Popularity of Cricket over Baseball ..................................... 19
2.2.3 Modern Developments and Cricket Today in United States ................. 20
2.3 San Diego Cricket Club (SDCC) .....................................................................21
vii
LIST OF TABLES
PAGE
LIST OF FIGURES
PAGE
ACKNOWLEDGEMENTS
I am very grateful to Dr. Carl Eckberg for giving me an opportunity to work on this
project. He was very supportive throughout all the phases of the project.
I would also like to thank Dr. Gangaram Singh who helped me find a suitable focus
for the thesis.
I would like to thank Dr. Joseph Lewis for being my committee member and for his
help and co-operation.
1
CHAPTER 1
INTRODUCTION
technology of Geographic Information System (GIS) tool and JAVA programming language.
Chapter 5 provides a brief idea on the software development cycle, built-in libraries,
methods, functions and components used to develop this tool. Chapter 6 discusses about the
integration of MapObject components into the NetBeans IDE. Chapter 7 and Chapter 8
provide information on the MOJO Toolbars and custom tools used to develop the thesis tool,
and how the project layers are created and integrated into the tool. Chapters 9 describe the
future enhancements to the project.
number of over’s, no matter how many batsmen are out. If ten batsmen are out before
the full number of over’s bowled, the innings is also over. If the first team’s innings
ends in this manner, the second team still has its full number of over’s to score the
required runs. Whichever team scores the most runs wins.
3. Twenty-20 Cricket: Recently, a reduced form of the games has been developed called
Twenty20, with a maximum of 20 over’s per inning. Everything remains the same as
One-day cricket except the reduced number of over’s.
1.3 EQUIPMENT
Cricket Ball: The ball is a hard string ball covered with leather. The circumference is
between 224 and 229 millimeters (8.81 to 9.00 inches), and the ball weighs between
156 and 163 grams (5.5 to 5.75 ounces).
Cricket Bat: The bat is flat on one side and curved on the other for strength which is
attached to a sturdy handle. The blade of the bat is made of willow. The blade has a
maximum width of 108 millimeters (4.25 inches) and the maximum length of whole
bat is 965 millimeters (38 inches).
Wickets: These are wooden structures made up of a set of three stumps topped by a
pair of bails. These are described below.
Stumps: Three wooden posts, 25 millimeters (1 inch) in diameter and 813 millimeters
(32 inches) high. Spikes are extending from the bottom end which is hammered into
the ground in an evenly spaced row, with the outside edges of the outermost stumps
228 millimeters (9 inches) apart, close enough together that a cricket ball cannot pass
between them without disturbance.
Bails: Two wooden crosspieces that sit in grooves atop the adjacent pairs of stumps.
Protective Gear: Helmet, pads, gloves etc. for batsmen to wear to prevent injury when
struck by the ball.
Figure 1.1 [7], [8], [9], [10] shows the necessary equipment for the game of cricket.
1.4 FIELD
It is a large circular or oval-shaped grassy ground on which the game of cricket is
played. There is no fixed size for the field but its diameter usually varies between 450 feet
(137 m) to 500 feet (150 m). The cricket ground can be an almost a perfect circle, or an
extremely elongated oval. A rope demarcates the perimeter of the field which is known as
the boundary. Figure 1.2 [11] represents a cricket field along with the fielding positions. The
rectangular section in the middle of the field is known as Pitch, on which the batsman plays
and the bowler bowls.
Sticky wicket is a term that is used in sport of cricket to describe difficult situation,
referring to the pitch, also known as wicket. The pitch that is affected by rain or sun, wet or
4
a b c
Figure 1.1. Equipment used to play cricket. (a) Cricket ball. Source: Wikipedia.
Cricket Ball, 2012. http://en.wikipedia.org/wiki/Cricket_ball, accessed Jun. 2012.
(b) Cricket bat. Source: World Cup 2011. Cricket Bats, 2011. http://t20-worldcup-
2010.blogspot.com/2011/04/cricket-bats.html, accessed Jun. 2012. (c) Stumps and
bails. Sources: Kingsgrove Sports Centre. Cricket Accessories-Cricket Stumps,
2012. http://www.kingsgrovesports.com.au/Products.aspx?ProductCategoryID=32,
accessed Jun. 2012; Get Price. Kanga Cricket Bails, 2009. http://www.getprice.
com.au/Kanga-Cricket-Bails-Gpnc_522--57697828.htm, accessed Jun. 2012.
dried out, behaves unpredictable and make circumstances difficult for the batsman to bat
facing uneven bounce of the ball.
1.5 TOSS
Captains of both the teams meet on the field along with an official, in order to decide
who will bat or bowl first. The official tosses a coin in the air and one of the captains either
says head or tail. The winning captain decides whether his team wants to bat or bowl first and
the other team follows the vice-versa of it. This is a lot like American football.
Four Runs: It can be achieved by two ways. Either the batsman runs for four times on
the pitch or the batsman hits the ball to the rope situated at the periphery/boundary of
the ground. The ball may make contact with the ground before touching the rope at
the boundary. Figure 1.3 [12] shows the boundary region known as rope.
Five Runs: The batsman can either run for five times, which is very rarely possible.
Else, there is a helmet kept behind the wicket keeper sometimes by wicket keeper and
if the ball hits that helmet by any means the batting team gets 5 runs.
Six Runs: The batsman hits the ball in the air and if the ball drops behind the rope at
the boundary without making any contact with the ground before the rope region than
it is granted as six runs.
Extras: These types of runs are granted to the batting side usually due to the mistake
of the bowling/fielding side. These types of runs are categorized into extras. Types of
extra runs are:
No-ball
Wide-ball
6
Handled the ball: When the batsman willfully touches the ball while in play with a
hand or hands not holding the bat.
Timed out: After the dismissal of a batsman, when the incoming batsman is not ready
within 3 minutes of dismissal, the incoming batsman is out, timed out.
Obstructing the field: When the batsman willfully obstructs or distracts the fielding
side by word or action.
8
on the leg side. Both the umpires stand at their respective ends of the pitch swapping their
positions with each other at the end of every over.
Sometimes, decisions are tough to make and at that time if the technology is available
for the match another umpire called the third umpire comes into action. He remains off the
field in a cabin with a television replay monitor technology. If the on-field umpire is not sure
about a decision he can signal for the third umpire and the third umpire watches the replay of
a particular event on the television monitor in a slow motion until he is clear about the
decision. He then signals his decision by out or not out. Whatever decision is made should be
obeyed by both the teams. If sometimes the third umpire is also not sure about the decision
than batsman is given the benefit of doubt. The technology of the third umpire is mostly
related to decisions like run outs and stumping’s.
The match is also supervised over by a match referee from outside the field. The
referee makes no decisions of importance to the outcome of the match, but decides penalties
for breaches of various match rules and misbehavior.
CHAPTER 2
HISTORY OF CRICKET
The game of cricket has a known history from the 16th century to the present day.
Cricket grew in England in the 18th century. It is believed that it evolved due to the interest
of great landowners who tried their skills on a field of play against their tenants and the local
peasantry. Past records indicate that teams from London and Kent played each other in 1719,
and that Kent and Sussex met in 1728.
A different number of words are thought to be possible sources for the term “cricket.”
In the earliest known reference to the sport in 1598, it is called “Creckett.”
many gamblers throughout England. A newspaper report of a “great match” played in Sussex
in 1697 which described having 11 players in each side and played for high stakes of
50 guineas a side [21].Press attained its freedom in 1696 and that was the first time when
cricket was reported in the newspapers. As discussed earlier gambling also made its mark in
the field of Cricket and during the initial period of 18th century, cricket was introduced in the
press but with a different reason which focused more on betting rather than cricket [22].
are overloaded by high taxes imposed by their rulers. They attempt to convince the British
officers to reduce the taxes because of poor agricultural produce. Instead, a gamble was
offered to them by the British officer. If their village team beats a British team in a game
of cricket, their taxes would be cancelled for the next 3 years. After accepting this offer, the
villagers face the difficult task of learning an alien game and playing for a result that will
change their village’s destiny. This whole incident took place in 1893. The film received
awards at various international film festivals, as well as many Indian film awards and was
critically acclaimed [23]. This film was the best example of awareness of cricket in India.
Cricket arrived in Australia during the early rise of the colonization in 1788. Other
countries like South Africa and New Zealand followed Cricket in the early years of the 19th
century [21].
In 1744, the Laws of Cricket were coded for the first time and then modified in 1774,
with ideas such as leg before wicket (LBW), middle stump and maximum bat width were
added. The laws stated that “the principals shall choose from amongst the gentlemen present
two umpires who shall absolutely decide all disputes.” These codes were drawn up by the
“Star and Garter Club.” The members of the same club founded MCC at Lord’s, England in
1787. MCC instantly became the guardian of the Laws and from time to time has made
revisions and recodifications subsequently [24].
The game of cricket continued to grow throughout England and, in 1751, Yorkshire is
first mentioned as a venue [25]. Scorecards to keep a record of the game were kept on a
regular basis from 1772 and thereafter a constant improvement has been noticed in the field
of cricket. Figure 2.1 [26] represents continuous improvement in the game by examples of
bat (old to new – left to right).
Figure 2.2. Match at Darnall, Sheffield during 1820. Source: Cricket South Africa. A
Brief History Overview, 2012. http://www.south-africa-tours-and-travel.com/cricket-
south-africa.html, accessed Jun. 2012.
16
Even people willing to watch the match traveled long distance which brought more crowds to
the match. In 1864, a bowling revolution resulted in the legalization of a different style of
bowling known as over arm bowling.
The first international cricket game was between the USA and Canada in 1844. The
match was played in New York at St George’s Cricket Club ground in New York [27]. Also
English team traveled overseas to Northern America which was the first ever overseas tour
during 1859, Figure 2.3 [25] represents the same. Later in 1862 English team travelled
Australia.
Also in 1868 during May through October, a team of Australian players toured
England which was the first Australian cricket team to travel overseas, pictured in Figure 2.4
[25].
In 1877, the first ever test match was played between England and Australia which
are now regarded as the inaugural Test matches. The succeeding year, the Australians visited
England for the first time and were a remarkable success. No Tests were played on that tour.
During 1882 at the Oval, perhaps the most legendary match of all time gave rise to The
17
Figure 2.4. First Australian overseas travelling team at Niagara Falls. Source:
Wikipedia. Cricket History, 2012. http://en.wikipedia.org/wiki/History_of_cricket,
accessed Jun. 2012.
Ashes. The Ashes is the test cricket series played between England and Australia. Later on
South Africa was added to the league and it became the third Test nation in 1889.
During 1890 national cricket developed, within the respective countries. During that
period England constituted County Cricket Championship. Australia gave rise to Sheffield
Shield during 1892-1893. Also New Zealand established Plunkett Shield and India
established Ranji trophy.
Rules regarding balls per over were also revised during 1889 from 4 balls to 5 balls
per over which ultimately was changed to 6 balls per over during 1900. Some countries did
not follow the 6 balls per over regulation and rather followed 8 balls per over regulation.
However, in 1947 Laws of Cricket allowed 6 or 8 balls per over depending on the play
conditions, but since 1979 6 balls per over has been used worldwide.
War. Pakistan became a test nation after the Second World War. By the end of 20th century
several affiliate nations like Zimbabwe, Sri Lanka and Bangladesh became Test playing
nations.
MCG (Melbourne cricket ground) hosted the first limited overs international match in
1971 as a timer after a Test match had been cancelled due to extreme weather conditions. It
was a trial and error method carried out for the players just to give them some exercise but it
resulted in immense popularity. One Day Internationals (ODIs) have since grown to become
a tremendously popular form of the game. The International Cricket Council (ICC) organized
the first cricket World Cup in England in 1975, with all the Test playing nations taking part
in it.
ODI’s increased television market. Due to the immense interest of the people there
was development in the technology of the game like placing the cameras in the stumps,
different angled camera views all over the ground, statistical and graphical analysis, etc.
Same technologies were even used for the Test Cricket. In 1992, a new regulation of the third
umpire was introduced during the match between South Africa and India for run-out appeals,
watching the replay of the incident in a slow version and taking the decision. Since then the
duties of third umpires have been increased to stumping, catches, boundaries and are not
limited to run outs.
21st Century Cricket brought a new set of ideas in the game of cricket like twenty-20
cricket, which made entry of most famous private championship title of the cricket, which is
known as IPL (Indian Premier League).Since then there has been no stopping to the
globalization of cricket. ICC has expanded its development program and development efforts
are focused on Test as well as One Day Cricket.
organized cricket almost vanished in the United States. The game is still played, although
primarily by informal clubs composed of immigrant members, foreign students visiting the
United States for study. This slow resurgence did not have a great impact on the American
population.
of baseball was more appealing to the American than the slower game of cricket. Thus
baseball made its place as the “people’s game” and on the other side Cricket became an
amateur game for gentleman. Cricket grew into in amateur sport though, and formed many
clubs merging with tennis clubs. This became more popular in Philadelphia and the young
people of the city founded the cricket clubs. Many efforts were made to convert these clubs
for baseball but the decision to sell the baseball equipment’s was made to serve the purpose
of these clubs [29].
Philadelphian cricket team was formed and was represented in the first class cricket.
It played many matches and gained popularity, at the initial phase defeating England. But
later because of their many poor performances and the professionals spending their leisure
time playing tennis and golf, many matches were dropped off, waning its popularity. College
students continued playing the game as long as a number of students from the English
schools visited to study [29].
The second blow to cricket in United States was the formation of the Imperial Cricket
Conference (now known as International Cricket Council), which served as the organization
to cricket nations in British Empire. Countries now known as the Full Members of ICC
continued playing cricket whereas the United States could not make it as its member nation
[29].
of the competition. It gained its position again later in 2007 but due to the same
administration reasons it was suspended again in 2008 and later in 2010 it was recognized
again.
The IBAF currently oversees and organizes IBAF Baseball World Cup, IBAF
Women’s Baseball World Cup, IBAF 18U Baseball World Championship, IBAF 16U
23
Baseball World Championship, and IBAF12U Baseball World Championship. IBAF is the
sanctioning body for the World Baseball Classic (WBC) hosted by the Major League
Baseball and Major League Baseball Players Association [31]. 2006 Classic and 2009
Classic were organized by the WBC. The tournaments organized by the WBC bring together
national baseball teams feature professional players from the major leagues around the world
including the Major League Baseball, Summer Olympic and Baseball World Cup.
The 2006 and 2009 tournaments each had the same 16 team field. These countries
were Australia, Canada, China, Chinese Taipei, Cuba, Dominic Republic, Italy, Japan –
champions both the year, Mexico, Netherlands, Panama, Puerto Rico, South Africa, South
Korea, United States, and Venezuela.
Plans for the third installment of the Classic to occur in 2013 include expanding the
number of competing teams through the use of a qualifying tournament to maintain the same
numbers in the main tournament.
24
CHAPTER 3
GIS integrates hardware, software and data for displaying all form of geographically
referenced information into information system framework. GIS introduces a new way to
look at the world and map where things are, which lets us find places that have features we
are looking for based on the requirements to meet our criteria.
This GIS tool has been developed using Esri MapObjects and Java. MapObjects is a
collection of GIS components and maps that enables interaction between a user and the
application so as to analyze spatial data. MapObjects along with Java, a programming
language incorporating these GIS components creates a client or server side mapping and
GIS application. The map tool is MapObjects, Java Edition, and NetBeans is used as an IDE
for Java to compile and run Java code.
The history of cricket by country is depicted on a GIS tool making this application
a useful source to find the evolution of the cricket game. This application is divided into
six different layers, each layer on cricket, contains a webpage describing the history of
the game for different countries, based on the category to which they belong. These
countries are categorized as full members, associate members and affiliate members. Each
member includes many countries but in this thesis the top 20 countries where cricket is
grown internationally from the 16th century to the present era are introduced. This tool is
designed to easily navigate and access the information about the country we are
interested in. Also there is a layer showing the United States with the history of cricket
in the United States and the decline of popularity in cricket. In the later phase of the
project a layer showing the countries playing the World Baseball Classic was added to
the map. Figure 3.1 shows the main page when the application is first launched and
Figure 3.2 shows the world map with all the six layers projected on it to describe this thesis
project.
25
CHAPTER 4
OVERVIEW ON TECHNOLOGY
This chapter describes a brief introduction about the programming language, IDE and
the technologies used to build this software tool.
4.1 JAVA
The JAVA programming language is a high level class based object oriented
programming language which allows a programmer to write the program once and run it
elsewhere on the Internet. Hence one of its feature is distributed and platform independent
language. It looks very similar to C/C++ but stands out with many unique features of its own.
Java bytecode is output by a compiler such as Sun’s javac which transforms the Java
language source code to bytecode that runs in Java Virtual Machine (JVM) which is a
program such as Sun’s java that runs on a given platform and takes the bytecode programs as
input and interprets them just as if it were a physical processor executing machine code.
Java is used in a wide variety of computing platforms from low-end embedded
devices and mobile phones to high-end enterprise server and supercomputers. These and
many other features described below makes Java very strong programming language and the
developers chose it to make the future enhancement work very easy.
Features and advantages of java over other languages include [33]:
Java is easy to learn and is therefore easy to write, compile and debug the code.
Java is an object-oriented programming language and its development model results
in frequent releases of newer and improved versions. Data is treated as objects to
which methods are applied. Its execution unit is Class. Advantages of object oriented
programming include reusability of code, extensibility and dynamic applications. No
code is written outside the main () class and an extensive class library is available in
core language package.
Java is machine independent (portable) because the code can be moved from one
platform to another and can be executed. Once the Java source file .java is compiled
to .class files, these files can be used on any Java supported platform. And as the .java
is compiled to byte code and not machine code, it can be executed on any platform.
28
Java is secure and therefore used in many networking environments. Java compiler
catches more errors because other languages compile program to machine code that
results in unpredictable errors. There are no memory pointers and the program runs
inside the virtual machine sandbox.
The features that make the Java language robust are strong memory allocation,
automatic garbage collection, powerful exception handling, and type checking
mechanism (compiler checks for program error and interpreter checks for run time
errors).
Multithreading is a very interesting and important concept in Java. Execution of
different threads in a single program takes place independently at same time. In
JAVA, multithreaded programming has been smoothly integrated into it, while in
other languages, operating system specific procedures have to be called in order to
enable multithreading. Multithreading is a necessity in visual and network
programming.
Java is an interpreted language, where the program runs directly from source code.
Errors are traced in the program and have advantage of better error debugging. The
Java source code (in .java files) is compiled into the Bytecode (.class files). The
Bytecode is a pre-compiled, platform independent version of the program and the
.class file can be used on any other Operating System. When the Java application is
started, the Bytecode is interpreted by the Java Virtual Machine.
Java can be easily deployed using jar files.
4.2.1 ESRI
ESRI (Environmental Systems Research Institute) is the foremost software
developers of Geographic Information Systems (GIS) software. GIS software enables easy
integration of database information and mapping services.
applications. These components expose pure Java Application Programming Interface (API)
distributed within JAR (Java archive) files.
We can start the application from scratch or work with already built applications and
add functionality to them. Everything can be seamlessly added into a single application
(Figure 4.1a). As the application grows or becomes more streamlined components can be
added or removed as well. When the application is complete the final result may seem to
appear something like as shown in Figure 4.1b. It could be accessed through a web browser
or any standalone desktop application or may be an application running on a server that
doesn’t require any user interface [34].
a b
Figure 4.1. Java components into a single application. Represents any swing
components or downloadable java components that may satisfy the business needs.
Various components of toolbars such as zoom, pan, identify, attribute tables and map
layers are supported by MapObjects Java. Capabilities such as distance
measurements, attributes data display, different selection tools, labeling tools, create
queries for attribute data other geometric operation are supported [35].
Customized map can be created by combining locally stored data with Internet data.
Standard data formats such as shapefiles, ArcSDE layers, ArcIMS image and feature
services, Image formats such as BMP, PNG, JPG, GIF, TIFF and CAD are supported
by MapObjects Java [35].
MapObjects Java is a helpful tool for building a user interface. It includes rich swing
components with the help of which one can easily and quickly build applications that
include functional toolbars, dynamic symbol control, query dialogs, overview and
insert maps, and intelligent legends [35].
Dr. Carl Eckberg’s notes [36] and online forums on ESRI website were very helpful
to build this application.
Any Java IDE can be used to build a MapObject Java based application. This
application uses NetBeans as IDE to edit, compile and run the java application [35].
CHAPTER 5
5.1 PROTOTYPING
This thesis contains different phases such as requirements gathering, designing,
implementation, review, revise and enhance the prototype. Prototyping was performed in the
manner shown in Figure 5.1.
THE PURPOSE
REQUIREMENT GATHERING
DESIGNING
IMPLEMENTATION
REVIEW
REVISE
ENHANCEMENT
FINAL PROJECT
Figure 5.1. Prototyping process.
32
Obtaining feedback from Prof. Gangaram on the requirement needed to highlight all
the necessary information on the project helped me gather the entire specification professor
wanted to implement. Based on the requirements we decided the software specifications
concerning to Dr. Carl Eckberg according to which the corresponding changes were made
and the software was developed. Initial project estimates to whether the deadlines and
milestones proposed could be successfully met were projected during the initial phase (see
Figure 5.2).
We decided keeping the world map with the layer of countries as the home page as
this project provides information about the history of cricket by country. At this point no
other layers such as full members, associate members and affiliate members are shown. As
we go further these points show the history of cricket in different countries.
In the review stage the application was viewed by both the professors and based on
the feedback further changes were taken into consideration like creating the webpage specific
to the governing bodies of each country and adding the layer to show the history of cricket in
United States of America and the reasons it became less popular in later centuries. These
33
features were implemented in a span of a week or two. Adding the layer of countries that are
qualified for the World Baseball Classic was added at the later phase of the thesis.
5.2 DESIGNING
Designing is a very important phase for any project before the actual development
begins. Once the requirements were gathered an initial design as to how the project would
look like was created. This helped a lot to easily develop the tool during each cycle of
development. This tool design consists of a high level architectural diagram described in
Figure 5.3.
CHAPTER 6
7. Select all the available components on the Install Components to Palette window and
select Next> as shown in Figure 6.8.
8. Select Beans as shown in Figure 6.9 and then select Finish.
9. Upon selecting finish, a Palette window containing all the swing and bean design
components as shown in Figure 6.10 are displayed that can be dragged and dropped
into the application.
36
Figure 6.10. Palette window displaying all swing and beans design components.
42
CHAPTER 7
As seen in the Chapter 6, once the Beans is selected as the palette, all the design
objects can be selected and drag-dropped in the application. Various toolbars such as map,
selection, layer, zoompan are available from the MOJO Java Edition and some of them such
as Layer Properties tool, XY Display tool, Hint Display tool, Print, Arrow, and Identify are
custom made and implemented in this application. Table 7.1 shows all the MOJO toolbars
and the custom tools used in this application. This chapter discusses on how these toolbars
have been integrated into the GIS tool. This can be achieved by writing code but this can be
done using drag-drop too.
CUSTOM
Number Tools Class Name
1 Print com.esri.mo2.ui.bean.Print
2 Deselect com.esri.mo2.ui.bean.Tool
3 Identify com.esri.mo2.ui.bean.Identify
Figure 7.1 shows all the available toolbars when we load the application. Now we
will differentiate each of them as MapObjects toolbars and Custom tools and also explain the
functionality of each of the available toolbar in the application.
43
1 2 3 4 5 6 7 8 9
Figure 7.2. Zoom pan toolbar.
Here we explain the functionality of each of the tools provided by Zoom Pan toolbar
[36]:
1. Previous Extent: Active layer in this application. It zooms to previous extent stored in
extent history. This allow user to go back to the old display of map.
2. Next Extent: Inactive in this application. It zooms to next extent stored in extend
history. This allow user to view the next display of the map.
3. Zoom to Active Layer: Inactive in this application. It allow user to Zoom the map to
all selected features in selected layer.
4. Zoom to Full Extent: Active in this application. It zooms to fullest extent of all layers
within the map and help user to return to original view of map.
5. Zoom In: Active in this application. It helps user zooming in to any area of the map.
6. Zoom Out: Active in this application. It helps user zooming out of any previously
zoomed in area till the original view.
7. Pan: Active in this application. It helps to move the map in any direction to cover any
uncovering area of map without the zooming functionality.
44
8. Pan One Direction: Active in this application. It helps user to move the map in any
one particular direction.
9. Identify: Active in this application. It is also known as information tool as it provides
user with more information on any layer of the map. This tool is also customized
which is described in the Section 7.2 in brief.
Zoompan toolbar action class: com.esri.mo2.ui.tb.ZoomPanToolBar.
Call the setMap() function before using any of these actions. Below is the code to integrate
the Zoom Pan Toolbar with the GIS tool:
private com.esri.mo2.ui.bean.Map map1;
private com.esri.mo2.ui.tb.ZoomPanToolBar zoomPanToolBar1;
map1 = new com.esri.mo2.ui.bean.Map();
zoomPanToolBar1.setMap(map1);
getContentPane().add(zoomPanToolBar1, BorderLayout.NORTH);
1 2
Figure 7.3. Layer
toolbar.
Here we explain the functionality of add and delete tools provided by Layer toolbar
[36]:
1. Add Layer: Active in this application. It allows user to add new layer to the table of
content (TOC).
2. Delete Layer: Inactive in this application. It allows user to delete any selected later
from the table of contents.
Layer toolbar action class: com.esri.mo2.ui.tb.layertoolbar.
Call the setMap() function before using any of these actions. Below is the code to integrate
the Layer Toolbar with the GIS tool:
private com.esri.mo2.ui.bean.Map map1;
private com.esri.mo2.ui.tb.LayerToolBar layerToolBar1;
layerToolBar1 = new com.esri.mo2.ui.tb.LayerToolBar();
45
1 2 3 4 5 6 7
Figure 7.4. Selection
toolbar.
Here we explain the functionality of each of these tools provided by Selection toolbar
[36]:
1. Search: Opens a dialog for locating features based on a predefined “stored query.”
2. Find: Opens a dialog for locating features whose attributes contain an end-user
provided string. It also allows user to search information related to the selected layer.
3. Query Builder: Opens a dialog for locating features based on a query that an end-user
constructs. It allows user to write query and based on it the resulted feature or layer
can be easily highlighted on the map.
4. Select Features by Rectangle: It allows user to select any area on the map and once
these areas are highlighted, a separate layer can be created which contains these
selected areas by selection the option Create layer from selected features menu item.
5. Clear Selected Features: It allows user to clear any previously made selections on the
map.
6. Buffer: Opens a dialog for constructing a buffer polygon around currently selected
features and allows user to specify the buffer distance radius in miles.
7. Attributes: Opens an attribute table which contains the corresponding information of
the selected features on the map.
Selection toolbar action class: com.esri.mo2.ui.tb.SelectionToolBar.
Call the setMap() function before using any of these actions. Below is the code to
integrate the Selection Toolbar with the GIS tool.
private com.esri.mo2.ui.bean.Map map1;
46
privatecom.esri.mo2.ui.tb.SelectionToolBarselectionToolBar1;
selectionToolBar1= new com.esri.mo2.ui.tb.SelectionToolBar ();
map1 = new com.esri.mo2.ui.bean.Map();
selectionToolBar1.setMap(map1);
getContentPane().add(selectionToolBar1, BorderLayout.NORTH);
1 2 3
Figure 7.5. Measure
geocode toolbar.
as Layer property tool, XY button, Print, Deselect and Identify tool as shown in Figure 7.6.
They are just the enhancement to the toolbar provided by the MapObjects.
Figure 7.9. More information when identify tool selected for the United States.
50
CHAPTER 8
PROJECT LAYERS
To show and view any particular data on the map such as routes, great monuments
around the world or country or state, mountain ranges, rivers, different cultures of the
countries, or any data from past centuries to modern era, can be depicted on the map by
creating layers within layers on the map. GIS provides user to create these layers and play
with them. Layer is the slice of geographic data in a certain area.
This project mainly contains the feature layer. Feature layer references a set of feature
data which comprises of geographic entities in form of lines, polygon and points. Feature
layer files reference geographic data stored locally on the disk. It references many data
sources supported in CAD datasets, Arc Catalog, CAD drawing datasets, coverage datasets,
shape file datasets, raster datasets [39].
This project has 6 feature layers:
1. Country layer – Shows all the countries of the world. Figure 8.1 is the main layer. All
the other layers are featured on this layer.
2. Export_finalFM – Figure 8.2 shows all the countries playing cricket as Full Members
of the International Cricket Council. There are 10 countries qualified as Full
Members of the International Cricket Council. They are Australia, Bangladesh,
England, India, New Zealand, Pakistan, South Africa, Sri Lanka, West Indies, and
Zimbabwe. A web page is displayed for each country with the history of cricket in
that country upon selecting the country with the identify tool and selecting “Click
here for more Details.”
3. Export_finalAM – Figure 8.3 shows all the countries playing cricket as
Affiliate/Associate Members of the International Cricket Council. There are actually
60 nations qualified as Affiliate Members and 36 nations qualified as Associate
Members of ICC. Out of these nations, this layer includes the top
6 Affiliate/Associate member nations. They are Afghanistan, Canada, Ireland, Kenya,
Netherlands, and Scotland. A web page is displayed for each country with the history
of cricket in that country upon selecting the country with the identify tool and
selecting “Click here for more Details.”
4. Export_finalNCM – Figure 8.4 shows all the countries playing cricket as Non-
Commonwealth Members. The Non Commonwealth countries shown in this layer are
Indonesia, Italy, Thailand, Japan, Argentina, Denmark, and Chile. A web page is
52
displayed for each country with the history of cricket in that country upon selecting
the country with the identify tool and selecting “Click here for more Details.”
5. Export_UnitedStatesofAmerica – Figure 8.5 shows its place in cricket as Associate
member of International Cricket Council. A web page is displayed for the United
States with the history of cricket in that country upon selecting the country with the
identify tool and selecting “Click here for more Details.”
6. Export_Baseball – Figure 8.6 shows the countries that were qualified for the World
Baseball Classic 2006 and 2009. The World Baseball Classic 2006 and 2009
tournaments had the same 16 team field. They are Australia, Canada, China, Cuba,
Chinese Taipei, Dominican Republic, Italy, Japan, Mexico, Netherlands, Panama,
Puerto Rico, South Africa, South Korea, United States, and Venezuela.
Figure 8.6. Layer – countries in World Baseball Classic 2006 and 2009 tournaments.
56
CHAPTER 9
FUTURE ENHANCEMENTS
There are almost over 100 countries playing cricket. This thesis provides information
on the history of cricket for the top 20 countries. So this thesis has a great scope to cover the
rest of the countries which was impossible to show in the first version of the software. Also
the information provided to discuss the history was mainly to show the globalization of
cricket through the British Empire and narrowing it down to its decline of the popularity over
baseball in the United States. More information on the cricket grounds worldwide, legendary
people who contributed growing this sport into their country, statistics of the game etc. can
be shown on the map creating more layers. The data can be more interactive and entertaining
by creating a small version of the cricket game and integrating to the project which can help
people learn the game. Also more videos can be uploaded to compare cricket with the
baseball. As this thesis was focused on evolution of cricket, these future enhancements could
not be implemented.
One more innovative and very interesting future enhancement to this project is to
gather information on each of these countries popular sport and compare it to the cricket like
it was shown for United States in this thesis project.
This thesis project was developed in Java which is platform independent; it can be
easily reused for the future development of the project. In future it can be used as a Web
based application where this information is accessible through internet to everyone interested
in learning the history of cricket.
57
BIBLIOGRAPHY
[1] Tom Melville. Cricket for Americans: Playing and understanding the game. Bowling
Green States University Popular Press, Bowling Green, Ohio, 1993.
[2] Antony Hosking. An Explanation of Cricket, 2009.
http://www.cs.purdue.edu/homes/hosking/cricket/explanation.htm, accessed
Jun. 2012.
[3] Scyld Berry. Lifeless pitches should not be accepted, 2009. The Telegraph.
http://www.telegraph.co.uk/sport/cricket/international/theashes/5789583/The-Ashes-
Lifeless-pitches-should-not-be-accepted.html, accessed Jun. 2012.
[4] Wikipedia. Knight’s return to proving ground, 2009.
http://en.wikipedia.org/wiki/Test_cricket, accessed Jun. 2012.
[5] Adam Gilchrist. Cowdrey Lecture, 2009.
http://www.espncricinfo.com/ci/content/story/410365.html, accessed Jun. 2012.
[6] Michael Rundell. Dictionary of cricket. A&C Black Publishers Ltd, London, 2006.
[7] Wikipedia. Cricket Ball, 2012. http://en.wikipedia.org/wiki/Cricket_ball, accessed
Jun. 2012.
[8] World Cup 2011. Cricket Bats, 2011. http://t20-worldcup-
2010.blogspot.com/2011/04/cricket-bats.html, accessed Jun. 2012.
[9] Kingsgrove Sports Centre. Cricket Accessories-Cricket Stumps, 2012.
http://www.kingsgrovesports.com.au/Products.aspx?ProductCategoryID=32,
accessed Jun. 2012.
[10] Get Price. Kanga Cricket Bails, 2009. http://www.getprice.com.au/Kanga-Cricket-
Bails-Gpnc_522--57697828.htm, accessed Jun. 2012.
[11] SportApex.com. Cricket Ground, 2011. http://www.sportapex.com/2011/05/cricket-
ground.html, accessed Jun. 2012.
[12] Peter Britton. Magazine-The Law of Sod?, 2010.
http://media.pitchcare.com/L/2Z88YVgyqHuPfb8bqlTg.jpg, accessed Jun. 2012.
[13] Lord’s Cricket Ground. Laws of Cricket, 2003.
http://www.lords.org/data/files/laws_of_cricket_2003-8685.pdf, accessed May 2012.
[14] Lemonlolly. Bowled Out, 2011.
http://en.wikipedia.org/wiki/File:Cricketer_bowled.jpg, accessed Jun. 2012.
[15] ABC News. Zaheer Goes for Caught-and-Bowled Chance, 2012.
http://www.abc.net.au/news/2012-01-03/zaheer-tries-for-caught-and-
bowled/3757154, accessed Jun. 2012.
58
[16] Mailonline. Is this the End of the Game of Cricket? Not Likely, 2009.
http://static.cricketnext.in.com/pix/slideshow/08-2011/in-pics-
zimbabwe/massa_450.jpg, accessed Jun. 2012.
[17] SuperSport. Sachin Tendulkar and Nitin Saini, 2012.
http://www.supersport.com/gallery.aspx?id=18931, accessed Jun. 2012.
[18] BBC Sport. Ways of Getting Out-Leg Before Wicket, 2012.
http://news.bbc.co.uk/sport2/hi/cricket/rules_and_equipment/4176136.stm, accessed
Jun. 2012.
[19] International Institute of Cricket Umpiring and Scoring. Hit Wicket, 2012.
http://www.umpires.tv/armchair/hit_wicket.html, accessed Jun. 2012.
[20] MR Globalization. Globalization – It’s not Cricket, 2009.
http://www.mrglobalization.com/culture/170-globalization-its-not-cricket, accessed
Jun. 2012.
[21] Cricket Live. History of Cricket, 2012. http://cricketaana.blogspot.com/p/history-of-
cricket.html, accessed Jun. 2012.
[22] John Leach. Stumpsite, Cricket Histories and Chronologies, 2007.
http://www.jl.sl.btinternet.co.uk/stampsite/cricket/main.html, accessed Jun. 2012.
[23] Wikipedia. Lagaan, 2012. http://en.wikipedia.org/wiki/Lagaan, accessed Jun. 2012.
[24] Lord’s. Laws: Laws of Cricket - Laws & Spirit, 2010. http://www.lords.org/laws-and-
spirit/laws-of-cricket/laws/, accessed Jun. 2012.
[25] Wikipedia. Cricket History, 2012. http://en.wikipedia.org/wiki/History_of_cricket,
accessed Jun. 2012.
[26] Cricket South Africa. A Brief History Overview, 2012. http://www.south-africa-
tours-and-travel.com/cricket-south-africa.html, accessed Jun. 2012.
[27] Wikipedia. Canadian Cricket Team in the United States in 1844, 2012.
http://en.wikipedia.org/wiki/Canadian_cricket_team_in_the_United_States_in_1844,
accessed Jun. 2012.
[28] Fahad Mustafa. Cricket and Globalization, 2009.
http://othes.univie.ac.at/6738/1/2009-09-17_0747207.pdf, accessed May 2012.
[29] Wikipedia. History of United States Cricket, 2012.
http://en.wikipedia.org/wiki/History_of_United_States_cricket, accessed May 2012.
[30] San Diego Cricket Club. Homepage, 2012. http://sdcricket.org/, accessed July 2012.
[31] International Baseball Federation. The History of IBAF, 2010.
http://www.ibaf.org/en/infopage-detail.aspx?id=30072a6b-f11a-4e16-97b7-
f223a28c993d , accessed Jul. 2012.
[32] Wikipedia. International Baseball Federation, 2011.
http://en.wikipedia.org/wiki/International_Baseball_Federation, accessed Jul. 2012.
[33] Web-Dot-Dev. Java Advantages and Disadvantages, 2007.
http://www.webdotdev.com/nvd/content/view/1042/204/ , accessed Mar. 2012.
59