![]()

![]()
There are a number of different types of functions associated with CPG Map. These can be grouped in to the following categories and are discussed below:
| Magnification | |
| Graphics Customisation | |
| Zooming |
The following diagram shows the names that have been given to some of the components that go to make up CPG Map, (n.b. not real data)!!

Please note, lines below in green are intended for programmers.
![]()
In the case of CPG Map, magnification refers to the length of each of the sausages. The reason it is called magnification is because the longer you stretch-out the sausages, the more detail you can see. This is different to zooming. Each sausage, including both sausages of a double map, is magnifiable independently of one another. So you could have one sausage on the left-hand side of a double map of 100 pixels long and the sausage on the other side of 2,000 pixels long. See programmers tips.
![]()
A large number of the graphical features of CPG Map can be customised. It is very easy to hook up menu and button components to these functions and this is described in the programming tips section.
The graphics functions can be subdivided as follows:
ColoursThe colours of the CPG Map elements can be changed as in the following image:
|
Mouse |
There are two options available with regards to locus highlighting: The CPG Map can be click-sensitive (whereby the loci highlight by clicking on the labels) and hover-sensitive (whereby the loci highlight by moving the mouse over the labels). Toggle between the two by calling toggleMouseMotionSensitive().
Error Sausages |
You can toggle the error sausages on and off. Call method toggleErrorSausages().
It is possible to zoom in and out of CPG Maps. Instead of just taking an image and 'blowing up' the pixels it actually scales up all of the CPG Map AWT component sizes at the same time. The following two images illustrate this:
The image above shows the default CPG Map zoomed by 130 percent. The next image shows the default CPG Map zoomed by a value of -50 percent:

Notice how the line width is the same in each case. This is because the whole image is redrawn with shorter or longer lines rather than magnifying the pixels.
Two zoom-undo functions are available:
Undo last zoomWhen you zoom in on a CPG Map the values of the AWT components are remembered. This means that you can return to the previous settings. This is useful if you have zoomed in a few times and want to get back to the previous settings. | |
Restore original |
Restores the original AWT component values.
![]()
![]()