org.biolegato.gdesupport.canvas.colourmap
Class GDECharColourMap
java.lang.Object
org.biolegato.gdesupport.canvas.colourmap.ColourMap
org.biolegato.gdesupport.canvas.colourmap.MonochromeColourMap
org.biolegato.gdesupport.canvas.colourmap.GDECharColourMap
public class GDECharColourMap
- extends MonochromeColourMap
A colour map class that will give support for GDE style colour schemes
- Author:
- Graham Alvare, Brian Fristensky
|
Field Summary |
static java.awt.Color |
neutralColour
Standard neutral colour |
|
Constructor Summary |
GDECharColourMap()
Creates a new instance of GDECharColourMap |
GDECharColourMap(java.awt.Color foreground,
java.awt.Color background,
java.awt.Color foregroundSelect,
java.awt.Color backgroundSelect)
Creates a new instance of GDECharColourMap |
|
Method Summary |
void |
regularDrawString(BLTextArea ta,
java.awt.Graphics gfx,
int xstart,
int ystart,
org.biolegato.core.data.sequence.Sequence seq,
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 |
neutralColour
public static final java.awt.Color neutralColour
- Standard neutral colour
GDECharColourMap
public GDECharColourMap()
- Creates a new instance of GDECharColourMap
GDECharColourMap
public GDECharColourMap(java.awt.Color foreground,
java.awt.Color background,
java.awt.Color foregroundSelect,
java.awt.Color backgroundSelect)
- Creates a new instance of GDECharColourMap
- Parameters:
foreground - the colour to use as the regular foreground for unselected text.background - the colour to use as the background for unselected text.foregroundSelect - the colour to use as the foreground for selected text.backgroundSelect - the colour to use as the background for selected text.
regularDrawString
public void regularDrawString(BLTextArea ta,
java.awt.Graphics gfx,
int xstart,
int ystart,
org.biolegato.core.data.sequence.Sequence seq,
int pstart,
int pend)
- Draws a sequence mapping the appropriate colours to each character rendered
- Overrides:
regularDrawString in class MonochromeColourMap
- 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.