databionics.esom.tool.data
Class HighlightRenderer

java.lang.Object
  extended by databionics.esom.renderer.foreground.ForegroundRenderer
      extended by databionics.esom.renderer.foreground.BestmatchRenderer
          extended by databionics.esom.tool.data.HighlightRenderer

public class HighlightRenderer
extends BestmatchRenderer

Author:
stammi

Field Summary
protected  cern.colt.list.IntArrayList highlightedBms
           
 
Fields inherited from class databionics.esom.renderer.foreground.BestmatchRenderer
bmSize, circle, g, log
 
Fields inherited from class databionics.esom.renderer.foreground.ForegroundRenderer
favoriteColor, foregroundTool, RENDER_MASK, RENDER_POSTTILE, RENDER_PRETILE, renderer
 
Constructor Summary
HighlightRenderer()
          Standard Constructor.
 
Method Summary
protected  void drawBestmatch(int x, int y, int sizex, int sizey, int index, Renderer renderer)
          draws the bestmatch.
protected  java.awt.Color getColor(int index, Renderer renderer)
          Get the color for this bestmatch.
 cern.colt.list.IntArrayList getHighlightedBms()
           
 int getRndLayer()
          Rank of this foreground
 int getRndPosition()
           
 void setHighlightedBms(cern.colt.list.IntArrayList highlightedBms)
           
 
Methods inherited from class databionics.esom.renderer.foreground.BestmatchRenderer
getBmSize, getColor, isBold, isCircle, render, 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

highlightedBms

protected cern.colt.list.IntArrayList highlightedBms
Constructor Detail

HighlightRenderer

public HighlightRenderer()
Standard Constructor. only sets the Color to Orange.

Method Detail

getColor

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

Parameters:
index - of bestmatch
Returns:
color white, to be overridden in subclasses

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

getRndLayer

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

Overrides:
getRndLayer in class BestmatchRenderer
Returns:
6 as it is the second bmRenderer to take action
See Also:
ForegroundRenderer.getRndLayer()

getRndPosition

public int getRndPosition()
Overrides:
getRndPosition in class BestmatchRenderer

getHighlightedBms

public cern.colt.list.IntArrayList getHighlightedBms()
Returns:
Returns the highlightedBms.

setHighlightedBms

public void setHighlightedBms(cern.colt.list.IntArrayList highlightedBms)
Parameters:
highlightedBms - The highlightedBms to set.


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