|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.stimulus.AbstractStimulus
ch.unizh.ini.friend.stimulus.ConcreteStimulus
ch.unizh.ini.friend.stimulus.ColorStimulusImpl
public class ColorStimulusImpl
Default implementation of the ColorStimulus interface.
Field Summary | |
---|---|
protected LMSColor |
background
The background color. |
protected LMSColor |
foreground
The foreground color. |
protected LMSColor |
lastForeground
|
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 | |
---|---|
ColorStimulusImpl()
Creates a new color stimulus. |
Method Summary | |
---|---|
void |
brightenBackground()
make background brighter |
void |
brightenForeground()
make foreground brighter |
Object |
clone()
clones the foreground color, background color, and the tranformed ShapeList |
void |
darkenBackground()
make background darker |
void |
darkenForeground()
make foreground darker |
void |
flipContrast()
swap brightness of foreground and background |
Color |
getBackground()
Returns the background excitation color of the stimulus. |
float |
getBackgroundExcitationDensity()
Returns the background excitation density of the stimulus. |
Color |
getForeground()
Returns the foreground excitation color of the stimulus. |
float |
getForegroundExcitationDensity()
Returns the foreground excitation density of the stimulus. |
LMSColor |
getLMSBackground()
Returns the background excitation color of the stimulus. |
LMSColor |
getLMSForeground()
Returns the foreground excitation color of the stimulus. |
boolean |
isVisible()
is stimulus hidden by its foreground brightness being set to the background? |
void |
setBackground(Color color)
Sets the background excitation color of the stimulus. |
void |
setForeground(Color color)
Sets the foreground excitation color of the stimulus. |
void |
setVisible(boolean visible)
set state of stimulus to be hidden or shown. |
Methods inherited from class ch.unizh.ini.friend.stimulus.ConcreteStimulus |
---|
update |
Methods inherited from class ch.unizh.ini.friend.stimulus.AbstractStimulus |
---|
addShape, clearShapes, compute, expand, fatten, getShapes, getTransformedShapes, getTransforms, lengthen, removeShape, rotate, rotateCCW, rotateCW, setBackgroundExcitationDensity, setForegroundExcitationDensity, setShapes, setTransforms, shorten, shrink, thin, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ch.unizh.ini.friend.stimulus.Stimulus |
---|
addShape, clearShapes, expand, fatten, getShapes, getTransformedShapes, getTransforms, lengthen, removeShape, rotate, rotateCCW, rotateCW, setBackgroundExcitationDensity, setForegroundExcitationDensity, setShapes, setTransforms, shorten, shrink, thin |
Methods inherited from interface ch.unizh.ini.friend.simulation.Updateable |
---|
compute, update |
Field Detail |
---|
protected LMSColor foreground
protected LMSColor background
protected LMSColor lastForeground
Constructor Detail |
---|
public ColorStimulusImpl()
Method Detail |
---|
public Color getForeground()
ColorStimulus
getForeground
in interface ColorStimulus
ColorStimulus.getForeground()
public Color getBackground()
ColorStimulus
getBackground
in interface ColorStimulus
ColorStimulus.getBackground()
public void setForeground(Color color)
ColorStimulus
setForeground
in interface ColorStimulus
color
- the new colorColorStimulus.setForeground(java.awt.Color)
public void setBackground(Color color)
ColorStimulus
setBackground
in interface ColorStimulus
color
- the new colorColorStimulus.setBackground(java.awt.Color)
public void brightenBackground()
AbstractStimulus
brightenBackground
in interface Stimulus
brightenBackground
in class AbstractStimulus
Stimulus.brightenBackground()
public void brightenForeground()
AbstractStimulus
brightenForeground
in interface Stimulus
brightenForeground
in class AbstractStimulus
Stimulus.brightenForeground()
public void darkenBackground()
AbstractStimulus
darkenBackground
in interface Stimulus
darkenBackground
in class AbstractStimulus
Stimulus.darkenBackground()
public void darkenForeground()
AbstractStimulus
darkenForeground
in interface Stimulus
darkenForeground
in class AbstractStimulus
Stimulus.darkenForeground()
public float getBackgroundExcitationDensity()
AbstractStimulus
getBackgroundExcitationDensity
in interface Stimulus
getBackgroundExcitationDensity
in class AbstractStimulus
Stimulus.getBackgroundExcitationDensity()
public float getForegroundExcitationDensity()
AbstractStimulus
getForegroundExcitationDensity
in interface Stimulus
getForegroundExcitationDensity
in class AbstractStimulus
Stimulus.getForegroundExcitationDensity()
public void flipContrast()
AbstractStimulus
flipContrast
in interface Stimulus
flipContrast
in class AbstractStimulus
Stimulus.flipContrast()
public boolean isVisible()
AbstractStimulus
isVisible
in interface Stimulus
isVisible
in class AbstractStimulus
Stimulus.isVisible()
public void setVisible(boolean visible)
AbstractStimulus
setVisible
in interface Stimulus
setVisible
in class AbstractStimulus
Stimulus.setVisible(boolean)
public LMSColor getLMSBackground()
ColorStimulus
getLMSBackground
in interface ColorStimulus
ColorStimulus.getLMSBackground()
public LMSColor getLMSForeground()
ColorStimulus
getLMSForeground
in interface ColorStimulus
ColorStimulus.getLMSForeground()
public Object clone()
clone
in class ConcreteStimulus
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |