org.biolegato.gdesupport.canvas.colourmap
Class PositionColourMap
java.lang.Object
org.biolegato.gdesupport.canvas.colourmap.ColourMap
org.biolegato.gdesupport.canvas.colourmap.PositionColourMap
public class PositionColourMap
- extends ColourMap
A colour map class that will give support for GDE colour masks
- Author:
- Graham Alvare, Brian Fristensky
|
Constructor Summary |
PositionColourMap(java.lang.String name,
java.awt.Color[] colourArray,
boolean skipdash)
Creates a new instance of GDEColourMaskMap. |
|
Method Summary |
void |
regularDrawString(BLTextArea ta,
java.awt.Graphics gfx,
int xstart,
int ystart,
Cell seq,
char[] array,
int pstart,
int pend)
Draws a sequence mapping the appropriate colours to each character rendered |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PositionColourMap
public PositionColourMap(java.lang.String name,
java.awt.Color[] colourArray,
boolean skipdash)
- Creates a new instance of GDEColourMaskMap.
- Parameters:
name - the name of the colour mask.colourArray - the array of colour selections to use for the mask.skipdash - whether or not to skip over dashes when applying the colour mask.
regularDrawString
public void regularDrawString(BLTextArea ta,
java.awt.Graphics gfx,
int xstart,
int ystart,
Cell seq,
char[] array,
int pstart,
int pend)
- Draws a sequence mapping the appropriate colours to each character rendered
- Specified by:
regularDrawString in class ColourMap
- Parameters:
ta - the textarea to use for obtaining metrics from.gfx - the graphics object to draw the string to.xstart - the x co-ordinate to start drawing from.ystart - the y co-ordinate to start drawing from.seq - the sequence to draw.
Copyright © 2008-2010 University of Manitoba.