|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.esom.renderer.foreground.ForegroundRenderer
databionics.esom.renderer.foreground.BestmatchRenderer
public class BestmatchRenderer
Best match foreground renderer.
Field Summary | |
---|---|
protected int |
bmSize
size of bestmatch |
protected boolean |
circle
draw circles instead of rectangles |
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 | |
---|---|
BestmatchRenderer()
Standard constructor |
Method Summary | |
---|---|
protected void |
drawBestmatch(int x,
int y,
int sizex,
int sizey,
int index,
Renderer renderer)
Draws the bestmatch |
int |
getBmSize()
Get the bestmatch size |
protected java.awt.Color |
getColor(int index)
Get the color for this bestmatch. |
int |
getRndLayer()
Rank of this foreground |
int |
getRndPosition()
|
protected boolean |
isBold(int index)
Get the bold flag for this bestmatch. |
boolean |
isCircle()
|
void |
render(Renderer renderer)
Draw colored square for each best match |
void |
setBmSize(int bmSize)
Set the bestmatch size. |
void |
setCircle(boolean circle)
|
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 |
---|
protected static final org.apache.log4j.Logger log
protected java.awt.Graphics g
protected int bmSize
protected boolean circle
Constructor Detail |
---|
public BestmatchRenderer()
Method Detail |
---|
protected java.awt.Color getColor(int index)
index
- of bestmatch
protected boolean isBold(int index)
index
- of bestmatch
protected void drawBestmatch(int x, int y, int sizex, int sizey, int index, Renderer renderer)
x
- x-coordinatey
- y-coordinatesizex
- size in x directionsizey
- size in y-directionindex
- index of Bestmatchrenderer
- the Rendererpublic void render(Renderer renderer)
render
in class ForegroundRenderer
renderer
- The invoking Rendererpublic int getRndLayer()
getRndLayer
in class ForegroundRenderer
public int getRndPosition()
getRndPosition
in class ForegroundRenderer
public int getBmSize()
public void setBmSize(int bmSize)
bmSize
- The bmSize to set.public boolean isCircle()
public void setCircle(boolean circle)
circle
- The circle to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |