|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rubecula.darwin.visualization.Painter_
public abstract class Painter_
Base methods and operations for implementers of Painter
.
Sub-classes of this type have life-span: permanent.
Field Summary |
---|
Fields inherited from interface com.rubecula.darwin.visualization.Painter |
---|
BACKGROUND_COLOR |
Constructor Summary | |
---|---|
protected |
Painter_()
Protected base constructor for implementers of Painter |
Method Summary | |
---|---|
boolean |
isIdentify()
|
void |
paintBase(java.awt.Graphics g,
int width,
int height)
Base method: simply clears the rectangle defined by {0, 0, width, height} to the (previously defined) background color. |
protected void |
paintIdentification(java.awt.Graphics g,
Avatar avatar,
java.awt.Point location)
|
void |
paintVisualization(VisualizationModel visualizationModel,
java.awt.Graphics g,
int width,
int height)
Method to paint visualization model which . |
void |
setIdentify(boolean identify)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.rubecula.darwin.visualization.Painter |
---|
paintIndividual |
Constructor Detail |
---|
protected Painter_()
Painter
Method Detail |
---|
public boolean isIdentify()
isIdentify
in interface Painter
public void paintBase(java.awt.Graphics g, int width, int height)
paintBase
in interface Painter
g
- a graphics context, typically a buffered image.width
- the width of the area in which we may draw (0..width are legal
for x coordinates).height
- the height of the area in which we may draw (0..height are
legal for y coordinates).Painter.paintBase(java.awt.Graphics,
int, int)
public void paintVisualization(VisualizationModel visualizationModel, java.awt.Graphics g, int width, int height)
Painter
which
. This method is
called (indirectly) by Visualizer_.paintComponent(Graphics)
method, once for each model.
paintVisualization
in interface Painter
Painter.paintVisualization(com.rubecula.darwin.visualization.VisualizationModel,
java.awt.Graphics, int, int)
public void setIdentify(boolean identify)
setIdentify
in interface Painter
identify
- the identify to setprotected void paintIdentification(java.awt.Graphics g, Avatar avatar, java.awt.Point location)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |