The Physiologist's Friend Simulation API

ch.unizh.ini.friend.stimulus
Class SpotStimulus

java.lang.Object
  extended by ch.unizh.ini.friend.stimulus.AbstractStimulus
      extended by ch.unizh.ini.friend.stimulus.ConcreteStimulus
          extended by ch.unizh.ini.friend.stimulus.SpotStimulus
All Implemented Interfaces:
Updateable, Stimulus, Cloneable

public class SpotStimulus
extends ConcreteStimulus

A stimulus consisting of a single bar.

Since:
$Revision: 1.2 $
Author:
tobi

Field Summary
static float DIAMETER
          default diameter of bar: 1.0f
static int NSIDES
          number of side of the polygon making up the stimulus: 6
 
Fields inherited from class ch.unizh.ini.friend.stimulus.AbstractStimulus
backgroundExcitationDensity, BRIGHTNESS_CHANGE_RATIO, foregroundExcitationDensity, newBackgroundExcitationDensity, newForegroundExcitationDensity, newShape, shapes, transforms
 
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
 
Constructor Summary
SpotStimulus()
          Creates a new instance of BarStimulus with default size.
SpotStimulus(float diameter)
          Creates a new instance of SpotStimulus with the given diameter.
 
Method Summary
 
Methods inherited from class ch.unizh.ini.friend.stimulus.ConcreteStimulus
clone, update
 
Methods inherited from class ch.unizh.ini.friend.stimulus.AbstractStimulus
addShape, brightenBackground, brightenForeground, clearShapes, compute, darkenBackground, darkenForeground, expand, fatten, flipContrast, getBackgroundExcitationDensity, getForegroundExcitationDensity, getShapes, getTransformedShapes, getTransforms, isVisible, lengthen, removeShape, rotate, rotateCCW, rotateCW, setBackgroundExcitationDensity, setForegroundExcitationDensity, setShapes, setTransforms, setVisible, shorten, shrink, thin, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIAMETER

public static final float DIAMETER
default diameter of bar: 1.0f

See Also:
Constant Field Values

NSIDES

public static final int NSIDES
number of side of the polygon making up the stimulus: 6

See Also:
Constant Field Values
Constructor Detail

SpotStimulus

public SpotStimulus()
Creates a new instance of BarStimulus with default size.


SpotStimulus

public SpotStimulus(float diameter)
Creates a new instance of SpotStimulus with the given diameter.

Parameters:
diameter - diameter of spot in screen coordinate units
See Also:
TangentScreen.SCREEN_DIMENSION

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