|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Painter
This interface defines the methods which allow painting of specific
visualization model items. These methods are called the Visualizer_
wants to visualize the model(s).
| Field Summary | |
|---|---|
static java.lang.String |
BACKGROUND_COLOR
backgroundColor |
| Method Summary | |
|---|---|
boolean |
isIdentify()
|
void |
paintBase(java.awt.Graphics g,
int width,
int height)
Method to paint a representation of the organisms described by the VisualizationModel instance. |
void |
paintIndividual(java.awt.Graphics g,
Avatar avatar)
Method to paint a representation of an organism. |
void |
paintVisualization(VisualizationModel visualizationModel,
java.awt.Graphics g,
int width,
int height)
Method to paint visualization model which. |
void |
setIdentify(boolean identify)
|
| Field Detail |
|---|
static final java.lang.String BACKGROUND_COLOR
| Method Detail |
|---|
boolean isIdentify()
void paintBase(java.awt.Graphics g,
int width,
int height)
VisualizationModel instance. This method is called by
Visualizer_.paintComponent(Graphics) method, before any other
painting is done.
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).
void paintIndividual(java.awt.Graphics g,
Avatar avatar)
Visualizer_.paintComponent(Graphics) method, once
for each individual.
g - a graphics context, typically a buffered image.avatar - the individual from the population model to be painted.
void paintVisualization(VisualizationModel visualizationModel,
java.awt.Graphics g,
int width,
int height)
which. This method is
called (indirectly) by Visualizer_.paintComponent(Graphics)
method, once for each model.
visualizationModel - g - width - height - void setIdentify(boolean identify)
identify - the identify to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||