The Physiologist's Friend Simulation API

ch.unizh.ini.friend.stimulus
Interface ColorStimulus

All Superinterfaces:
Stimulus, Updateable
All Known Implementing Classes:
ColorStimulusImpl

public interface ColorStimulus
extends Stimulus

A color stimulus has a foreground and background color.

Version:
$Revision: 1.2 $
Author:
Johann Gyger

Field Summary
 
Fields inherited from interface ch.unizh.ini.friend.stimulus.Stimulus
BACKGROUND_BRIGHTNESS, BRIGHTEN_BACKGROUND, BRIGHTEN_FOREGROUND, DARKEN_BACKGROUND, DARKEN_FOREGROUND, FOREGROUND_BRIGHTNESS, RESIZE_RATIO, ROTATE_BY
 
Method Summary
 Color getBackground()
          Returns the background excitation color of the stimulus.
 Color getForeground()
          Returns the foreground excitation color of the stimulus.
 LMSColor getLMSBackground()
          Returns the background excitation color of the stimulus.
 LMSColor getLMSForeground()
          Returns the foreground excitation color of the stimulus.
 void setBackground(Color color)
          Sets the background excitation color of the stimulus.
 void setForeground(Color color)
          Sets the foreground excitation color of the stimulus.
 
Methods inherited from interface ch.unizh.ini.friend.stimulus.Stimulus
addShape, brightenBackground, brightenForeground, clearShapes, darkenBackground, darkenForeground, expand, fatten, flipContrast, getBackgroundExcitationDensity, getForegroundExcitationDensity, getShapes, getTransformedShapes, getTransforms, isVisible, lengthen, removeShape, rotate, rotateCCW, rotateCW, setBackgroundExcitationDensity, setForegroundExcitationDensity, setShapes, setTransforms, setVisible, shorten, shrink, thin
 
Methods inherited from interface ch.unizh.ini.friend.simulation.Updateable
compute, update
 

Method Detail

setForeground

void setForeground(Color color)
Sets the foreground excitation color of the stimulus.

Parameters:
color - the new color

getForeground

Color getForeground()
Returns the foreground excitation color of the stimulus.

Returns:
the color

getLMSForeground

LMSColor getLMSForeground()
Returns the foreground excitation color of the stimulus.

Returns:
the color in LMS color space

setBackground

void setBackground(Color color)
Sets the background excitation color of the stimulus.

Parameters:
color - the new color

getBackground

Color getBackground()
Returns the background excitation color of the stimulus.

Returns:
the color

getLMSBackground

LMSColor getLMSBackground()
Returns the background excitation color of the stimulus.

Returns:
the color in LMS color space

http://www.ini.unizh.ch/~tobi/friend