The Physiologist's Friend Simulation API

ch.unizh.ini.friend.stimulus
Class BarStimulus

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.BarStimulus
All Implemented Interfaces:
Updateable, Stimulus, Cloneable
Direct Known Subclasses:
EdgeStimulus

public class BarStimulus
extends ConcreteStimulus

A stimulus consisting of a single bar.

Since:
$Revision: 1.5 $
Author:
tobi

Field Summary
static float HEIGHT
          default height of bar: 0.5f
static float WIDTH
          default wdith of bar: 6.0f
 
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
BarStimulus()
          Creates a new instance of BarStimulus with default size.
BarStimulus(float width, float height)
          Creates a new instance of BarStimulus with a width and height of the bar.
BarStimulus(float width, float height, float centerX, float centerY)
          Creates a new instance of BarStimulus with a width and height and center of the bar.
 
Method Summary
static void main(String[] args)
           
 
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

WIDTH

public static final float WIDTH
default wdith of bar: 6.0f

See Also:
Constant Field Values

HEIGHT

public static final float HEIGHT
default height of bar: 0.5f

See Also:
Constant Field Values
Constructor Detail

BarStimulus

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


BarStimulus

public BarStimulus(float width,
                   float height)
Creates a new instance of BarStimulus with a width and height of the bar.

Parameters:
width - width of bar
height - height of bar
See Also:
TangentScreen.SCREEN_DIMENSION

BarStimulus

public BarStimulus(float width,
                   float height,
                   float centerX,
                   float centerY)
Creates a new instance of BarStimulus with a width and height and center of the bar.

Parameters:
width - width of bar
height - height of bar
centerX - horizontal center of bar
centerY - vertical center of bar
See Also:
TangentScreen.SCREEN_DIMENSION
Method Detail

main

public static void main(String[] args)

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