com.rubecula.darwin.visualization
Interface VisualizationFactory

All Known Implementing Classes:
VisualizationFactory_PepperedMoth, VisualizationFactory_TS

public interface VisualizationFactory

Defines the methods required to construct objects necessary for visualization of a particular application.

Author:
Robin Hillyard

Method Summary
 int getHeight()
           
 int getWidth()
           
 Avatar makeAvatar(Individual individual, java.util.Map<java.lang.String,java.lang.Object> properties)
          Method to create a new Avatar, based on an organism.
 java.awt.Color makeColor(Individual individual)
          Method to determine a suitable color for visualizing the organism
 java.awt.Point makeLocation(Individual individual)
          Method to determine a suitable location for visualizing the organism
 void setHeight(int height)
          set the height of the space available for visualization.
 void setWidth(int width)
          the width of the space available for visualization.
 

Method Detail

getHeight

int getHeight()
Returns:
the height of the space available for visualization. XXX not strictly necessary.

getWidth

int getWidth()
Returns:
the width of the space available for visualization. XXX not strictly necessary.

makeAvatar

Avatar makeAvatar(Individual individual,
                  java.util.Map<java.lang.String,java.lang.Object> properties)
Method to create a new Avatar, based on an organism.

Parameters:
individual - the individual to be represented by the Avatar.
properties - the properties of the visualization model
Returns:
a newly constructed Avatar.

makeColor

java.awt.Color makeColor(Individual individual)
Method to determine a suitable color for visualizing the organism

Parameters:
individual -
Returns:
the appropriate color

makeLocation

java.awt.Point makeLocation(Individual individual)
Method to determine a suitable location for visualizing the organism

Parameters:
individual -
Returns:
the appropriate location

setHeight

void setHeight(int height)
set the height of the space available for visualization.

Parameters:
height -

setWidth

void setWidth(int width)
the width of the space available for visualization.

Parameters:
width -


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.