ch.unizh.ini.friend.stimulus
Class BarStimulus
java.lang.Object
ch.unizh.ini.friend.stimulus.AbstractStimulus
ch.unizh.ini.friend.stimulus.ConcreteStimulus
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 |
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. |
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 |
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
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 barheight
- 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 barheight
- height of barcenterX
- horizontal center of barcenterY
- vertical center of bar- See Also:
TangentScreen.SCREEN_DIMENSION
main
public static void main(String[] args)