|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VisualizationModel
Defines a model to which population delegates its graphical rendering.
Method Summary | |
---|---|
void |
addAvatar(Avatar avatar)
Mutator method to add an individual to this population (the index for this new individual will be the current value of Countable.getCount() . |
int |
clean()
Clean the model of dead wood, so to speak. |
void |
clear()
Method to remove all individuals from the model. |
Avatar |
findAvatar(Individual individual)
|
void |
fireModelChange()
Method to notify all of the listeners that the population has changed. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
|
java.util.Collection<Avatar> |
getIndividuals()
|
java.lang.String |
getTitle()
|
boolean |
isVisible()
|
void |
putAttribute(java.lang.String attrName,
java.lang.Object attrValue)
Method to set (or reset) an attribute. |
boolean |
removeIndividual(Avatar avatar)
Mutator method to remove an individual from this population (NOTE: the indices for some of the other individual members of the population will be affected). |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Method to initialize several attributes at once. |
void |
setComponent(java.awt.Component component)
|
void |
setVisible(boolean visible)
|
void |
visualize(Visualizable visualizable,
VisualizationFactory visualizationFactory)
|
Methods inherited from interface com.rubecula.darwin.foundation.Countable |
---|
getCount |
Method Detail |
---|
void addAvatar(Avatar avatar)
Countable.getCount()
.
avatar
- an individual which is to be added to the population.int clean()
void clear()
Avatar findAvatar(Individual individual)
individual
-
void fireModelChange()
addAvatar(Avatar)
or removeIndividual(Avatar)
.
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
java.util.Collection<Avatar> getIndividuals()
java.lang.String getTitle()
boolean isVisible()
void putAttribute(java.lang.String attrName, java.lang.Object attrValue)
attrName
- attrValue
- boolean removeIndividual(Avatar avatar)
avatar
- an individual which is to be removed from the population.
void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
- void setComponent(java.awt.Component component)
component
- the component to setvoid setVisible(boolean visible)
visible
- the visible to setvoid visualize(Visualizable visualizable, VisualizationFactory visualizationFactory)
visualizable
- visualizationFactory
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |