BioLegato 0.7.3 GDE plugin

org.biolegato.gdesupport.canvas.colourmap
Class MonochromeColourMap

java.lang.Object
  extended by org.biolegato.gdesupport.canvas.colourmap.ColourMap
      extended by org.biolegato.gdesupport.canvas.colourmap.MonochromeColourMap

public class MonochromeColourMap
extends ColourMap

A standard monochrome colour map.

Author:
Graham Alvare, Brian Fristensky

Field Summary
 
Fields inherited from class org.biolegato.gdesupport.canvas.colourmap.ColourMap
background, foreground, SELECTBG, SELECTFG
 
Constructor Summary
MonochromeColourMap()
          Creates a new instance of MonochromeColourMap
MonochromeColourMap(java.awt.Color foreground, java.awt.Color background)
          Creates a new instance of MonochromeColourMap
 
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 org.biolegato.gdesupport.canvas.colourmap.ColourMap
drawChars, getName, safesubstring, selectDrawString, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonochromeColourMap

public MonochromeColourMap()
Creates a new instance of MonochromeColourMap


MonochromeColourMap

public MonochromeColourMap(java.awt.Color foreground,
                           java.awt.Color background)
Creates a new instance of MonochromeColourMap

Parameters:
foreground - the colour to use as the 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.
Method Detail

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.

BioLegato 0.7.3 GDE plugin

Copyright © 2008-2010 University of Manitoba.