databionics.esom.renderer.foreground
Class NamesRenderer

java.lang.Object
  extended by databionics.esom.renderer.foreground.ForegroundRenderer
      extended by databionics.esom.renderer.foreground.NamesRenderer

public class NamesRenderer
extends ForegroundRenderer

Names foreground renderer.


Field Summary
protected  ClsFile classification
          Bestmatch classification
protected  int fontSize
          size of bestmatch
protected  java.awt.Graphics g
          graphic to draw on
protected static org.apache.log4j.Logger log
          interface to log4j system
 
Fields inherited from class databionics.esom.renderer.foreground.ForegroundRenderer
favoriteColor, foregroundTool, RENDER_MASK, RENDER_POSTTILE, RENDER_PRETILE, renderer
 
Constructor Summary
NamesRenderer()
          Standard constructor
 
Method Summary
 ClsFile getClassification()
           
protected  java.awt.Color getColor(int index)
          Get the color for this bestmatch.
 int getFontSize()
          Get the bestmatch size
 int getRndLayer()
          Rank of this foreground
 int getRndPosition()
           
 void render(Renderer renderer)
          Draw colored square for each best match
 void setClassification(ClsFile classification)
           
 void setFontSize(int fontSize)
          Set the bestmatch size.
 
Methods inherited from class databionics.esom.renderer.foreground.ForegroundRenderer
getFavoriteColor, getForegroundTool, getName, getRenderer, init, setFavoriteColor, setForegroundTool, setRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
interface to log4j system


g

protected java.awt.Graphics g
graphic to draw on


fontSize

protected int fontSize
size of bestmatch


classification

protected ClsFile classification
Bestmatch classification

Constructor Detail

NamesRenderer

public NamesRenderer()
Standard constructor

Method Detail

getColor

protected java.awt.Color getColor(int index)
Get the color for this bestmatch.

Parameters:
index - of bestmatch
Returns:
favorite color, can be overridden in subclasses

render

public void render(Renderer renderer)
Draw colored square for each best match

Specified by:
render in class ForegroundRenderer
Parameters:
renderer - The invoking Renderer

getRndLayer

public int getRndLayer()
Rank of this foreground

Specified by:
getRndLayer in class ForegroundRenderer
Returns:
15

getRndPosition

public int getRndPosition()
Specified by:
getRndPosition in class ForegroundRenderer

getFontSize

public int getFontSize()
Get the bestmatch size

Returns:
bm size

setFontSize

public void setFontSize(int fontSize)
Set the bestmatch size.

Parameters:
fontSize - The fontSize to set.

getClassification

public ClsFile getClassification()
Returns:
Returns the classification.

setClassification

public void setClassification(ClsFile classification)
Parameters:
classification - The classification to set.


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.