Here are shown Java applets used by the
knowledge base. They have been written at INRIA Rhône-Alpes in the
Sherpa project by Sylvain
The expression pattern of a gene groups all the localisations of its expression
in the individual. This applet is developed in the aim to visualise the pattern
of all gene expressed in an individual, at a particular developement stage,
or in order to compare the expression of different allele of a same gene.
The applet is made of four classes, which are in the file
ExpPatternApplet extends Applet
It enables displaying the pattern directly into the HTML page loaded. It
creates an object from class ScalePanel and another one from class
PatPanel. A tokenizer analyses the applet parameter `data' and
allows creating, in the `PatPanel', objects from class
ScalePanel extends Canvas
For the displaying of a scale witch represent the individual.
PatPanel extends Panel
it builds a panel witch contains :
a canvas where the pattern is displayed,
the horizontal and vertical scrollbars for moving in the canvas.
it also builts a Vector (class Java.lang.Vector) of objects from class
GenePattern, and display it in the canvas. The paint()
method contains a tokenizer wich analyse the attribute `pattern' of each
object from class GenePattern.
GenePattern extends Object
Each object from this class contains three attributes, parsed by the
the name of the gene.
the pattern of the gene
the color wanted for the display.
For instance, the HTML code:
generates the following pattern display:
Please report any problem here
The source code can be found here (all the classes are in the same file):