databionics.esom.tool.dataclass
Class ClassBestmatchRenderer

java.lang.Object
  extended by databionics.esom.renderer.foreground.ForegroundRenderer
      extended by databionics.esom.renderer.foreground.BestmatchRenderer
          extended by databionics.esom.tool.dataclass.ClassBestmatchRenderer

public class ClassBestmatchRenderer
extends BestmatchRenderer

Best match foreground renderer.


Field Summary
protected  ClsFile classification
           
protected  boolean isDrawingLetters
           
protected static org.apache.log4j.Logger log
          interface to log4j system
 
Fields inherited from class databionics.esom.renderer.foreground.BestmatchRenderer
bmSize, circle, g
 
Fields inherited from class databionics.esom.renderer.foreground.ForegroundRenderer
favoriteColor, foregroundTool, RENDER_MASK, RENDER_POSTTILE, RENDER_PRETILE, renderer
 
Constructor Summary
ClassBestmatchRenderer()
          Standard constructor
ClassBestmatchRenderer(ClsFile cls)
           
 
Method Summary
protected  void drawBestmatch(int x, int y, int sizex, int sizey, int index, Renderer renderer)
          Draws the bestmatch
 ClsFile getClassification()
           
protected  java.awt.Color getColor(int index)
          Get the color for this bestmatch by it's classification
 int getRndLayer()
          Rank of this foreground
 int getRndPosition()
           
protected  boolean isBold(int index)
          Get the bold flag for this bestmatch
 boolean isDrawingLetters()
           
 void render(Renderer renderer)
          renders bestmatches in different color per class
 void setClassification(ClsFile classification)
           
 void setDrawingLetters(boolean isDrawingLetters)
           
 
Methods inherited from class databionics.esom.renderer.foreground.BestmatchRenderer
getBmSize, isCircle, setBmSize, setCircle
 
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


classification

protected ClsFile classification

isDrawingLetters

protected boolean isDrawingLetters
Constructor Detail

ClassBestmatchRenderer

public ClassBestmatchRenderer()
Standard constructor


ClassBestmatchRenderer

public ClassBestmatchRenderer(ClsFile cls)
Method Detail

drawBestmatch

protected void drawBestmatch(int x,
                             int y,
                             int sizex,
                             int sizey,
                             int index,
                             Renderer renderer)
Draws the bestmatch

Overrides:
drawBestmatch in class BestmatchRenderer
Parameters:
x - x-coordinate
y - y-coordinate
sizex - size in x direction
sizey - size in y-direction
index - index of Bestmatch
renderer - the Renderer

getColor

protected java.awt.Color getColor(int index)
Get the color for this bestmatch by it's classification

Overrides:
getColor in class BestmatchRenderer
Parameters:
index -
Returns:
color

isBold

protected boolean isBold(int index)
Get the bold flag for this bestmatch

Overrides:
isBold in class BestmatchRenderer
Parameters:
index - of bestmatch
Returns:
false, to be overridden in subclasses

render

public void render(Renderer renderer)
renders bestmatches in different color per class

Overrides:
render in class BestmatchRenderer
Parameters:
renderer - invoking renderer

getClassification

public ClsFile getClassification()
Returns:
Returns the classification.

setClassification

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

getRndLayer

public int getRndLayer()
Description copied from class: BestmatchRenderer
Rank of this foreground

Overrides:
getRndLayer in class BestmatchRenderer
Returns:
9
See Also:
ForegroundRenderer.getRndLayer()

getRndPosition

public int getRndPosition()
Overrides:
getRndPosition in class BestmatchRenderer

isDrawingLetters

public boolean isDrawingLetters()
Returns:
Returns the isDrawingLetters.

setDrawingLetters

public void setDrawingLetters(boolean isDrawingLetters)
Parameters:
isDrawingLetters - The isDrawingLetters to set.


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