|
||||||||||
| 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.LineRenderer
public class LineRenderer
Line connecting bestmatches.
| Field Summary | |
|---|---|
protected java.awt.Graphics |
g
graphic to draw on |
protected int |
lineSize
size of bestmatch |
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 | |
|---|---|
LineRenderer()
Standard constructor |
|
| Method Summary | |
|---|---|
protected void |
drawBestmatch(int x1,
int y1,
int x2,
int y2,
int index,
Renderer renderer)
Draws the bestmatch |
protected java.awt.Color |
getColor(int index)
Get the color for this bestmatch. |
int |
getLineSize()
Get the bestmatch size |
int |
getRndLayer()
Rank of this foreground |
int |
getRndPosition()
|
void |
render(Renderer renderer)
Draw colored square for each best match |
void |
setLineSize(int lineSize)
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 |
|---|
protected static final org.apache.log4j.Logger log
protected java.awt.Graphics g
protected int lineSize
| Constructor Detail |
|---|
public LineRenderer()
| Method Detail |
|---|
protected java.awt.Color getColor(int index)
index - of bestmatch
protected void drawBestmatch(int x1,
int y1,
int x2,
int y2,
int index,
Renderer renderer)
x1 - x-coordinatey1 - y-coordinatex2 - x-coordinatey2 - y-coordinateindex - index of Bestmatchrenderer - the Rendererpublic void render(Renderer renderer)
render in class ForegroundRendererrenderer - The invoking Rendererpublic int getRndLayer()
getRndLayer in class ForegroundRendererpublic int getRndPosition()
getRndPosition in class ForegroundRendererpublic int getLineSize()
public void setLineSize(int lineSize)
lineSize - The lineSize to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||