|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.pxlab.pxl.DisplaySupport
de.pxlab.pxl.Display
public abstract class Display
A stimulus in an experiment is composed of a sequence of Display objects. Every Display object contains a list of DisplayElement objects which constitute the basic geometric objects, like bars or disks of a complex stimulus. The Display also has a list of experimental parameters which are associated with it, like sizes or color values. The class Display is an abstract class and does not have a constructor. Instances are created by calling the constructor of a concrete subclass. The constructor of these subclasses, however, do nothing but create the title and the parameters of the Display. In order to create a concrete Display object the method createInstance() is called which creates the DisplayElement list of the Display and sets its color and timing properties. The display needs to know the target component where it will be shown in order to adapt its size parameters to the target panel size.
Here is a overview of how a Display object comes into existence. This involves three steps:
The recomputeGeometry(int width, int height) method
sets the width and height parameters, sets the Display objects
background field and then delegates further computations to the
recomputeGeometry() method. The
recomputeGeometry() method delegates its work to the
method computeGeometry() which must be defined in any
subclass of the class Display since it is defined abstract in class
Display.
The method recomputeColors() delegates its work to the
method computeColors() which also must be defined in a
subclass of the class Display if the subclass object has dependent
colors. These are colors which are computed from other colors. An
example for this are color mixtures which depend on the mixture
components.
The method recomputeTiming() computes the Display
object's timing properties from the display element groups and the
timing parameters defined in the create() method.
The Display can be shown in several different modes:
| Field Summary | |
|---|---|
protected long |
activeTimingGroup
Contains the currently active timing group pattern. |
protected int |
activeTimingGroupIndex
|
protected double[] |
axisDeltas
|
protected int |
backgroundFieldIndex
Index of this display's background field in the list of display elements. |
protected java.awt.Rectangle |
boundingBox
This is the bounding box of this Display object AFTER it has been drawn! |
protected int |
changedPolledButtonIndex
|
protected java.awt.Component |
displayComponent
This is the Component we are drawing on. |
protected DisplayDevice |
displayDevice
The DisplayDevice object which is used to show this Display object. |
protected java.util.ArrayList |
displayElementList
The display element list is the list of display elements contained in this display. |
ExPar |
Duration
This is the intended duration of this display. |
ExPar |
Execute
Controls whether this display is executed within a display list or not. |
protected int |
frameIncrement
Increment for counting animation frames. |
protected int |
framesPerCycle
Number of animation frames per single display cycle. |
protected java.awt.Graphics |
graphics
This is the graphics context we will use to paint the display list of this display. |
protected java.awt.Graphics2D |
graphics2D
|
protected int |
height
This is the height of the component where this display will be shown. |
ExPar |
JustInTime
Controls the point in time when this display object's properties are computed. |
protected Display |
next
A link to the next Display in a list which should be drawn simultanously because it is a JOIN overlay of this Display object. |
ExPar |
Overlay
Controls whether this display object's background is drawn or not. |
protected int |
pointerActivationButton
|
protected int |
pointerActivationX
|
protected int |
pointerActivationY
|
protected boolean |
pointerActive
|
protected int |
pointerCurrentButton
|
protected int |
pointerCurrentX
|
protected int |
pointerCurrentY
|
protected long |
pointerEventTime
|
protected int |
pointerReleaseButton
|
protected int |
pointerReleaseX
|
protected int |
pointerReleaseY
|
protected ResponseEvent |
pointerResponseEvent
|
protected boolean[] |
polledButtonStates
|
protected PresentationManager |
presentationManager
The PresentationManager object which controls the presentation of this Display. |
ExPar |
ResponseChar
Character code for the response key which stopped the display time interval on keyboard responses. |
ExPar |
ResponseCode
This is a code generated by the event which stopped the display time interval. |
ExPar |
ResponsePosition
Contains the position of the mouse pointer when a mouse response has been detected. |
ExPar |
ResponseSet
The initial value of this parameter can be an array of key codes. |
ExPar |
ResponseTime
This parameter stores the actual display duration. |
ExPar |
Screen
Screen selection code for the screen where this display object should be shown in multiple screen systems. |
protected java.awt.Rectangle |
screenButton
A rectangle on the screen which can be used as a stop button for mouse tracking responses. |
protected boolean |
startAdjustable
This is true if this Display is the first of a possible sequence of Display objects which are overlays and which contain an adjustable Display object. |
protected static int |
STEREO_LEFT
|
protected static int |
STEREO_NONE
|
protected static int |
STEREO_RIGHT
|
ExPar |
TimeControl
Contains the actual time when this display's timing groups have been shown. |
ExPar |
TimeError
Contains the timing error for every timing group of this Display object which has a CLOCK_TIMER. |
ExPar |
Timer
This defines the timer which will be used to control the duration of this display. |
protected boolean |
transparentOverlayFollows
True if this Display object is followed by a TRANSPARENT overlay in a Display list. |
protected int |
width
This is the width of the component where this display will be shown. |
| Fields inherited from class de.pxlab.pxl.DisplaySupport |
|---|
exParFields, group, instanceName, node, timingGroupLimit |
| Fields inherited from interface de.pxlab.pxl.ExParTypeCodes |
|---|
ANGLE, COLOR, COLOR_EDITOR, DEPCOLOR, DOUBLE, DURATION, editor, EXPARNAME, EXPFACTOR, FLAG, FONTNAME, GEOMETRY_EDITOR, HORSCREENPOS, HORSCREENSIZE, INT_8_BIT, INTEGER, KEYCODE, PROPORT, PROPORTION, RTDATA, SCREENPOS, SCREENSIZE, SIGNED_PROPORTION, SMALL_DOUBLE, SMALL_INT, SMALL_SCREENSIZE, SMALL_VISUAL_ANGLE, SPECTRUM, STRING, TIMING_EDITOR, UNKNOWN, VERSCREENPOS, VERSCREENSIZE, VISUAL_ANGLE |
| Constructor Summary | |
|---|---|
Display()
|
|
| Method Summary | |
|---|---|
protected boolean |
axisDeltasChanged()
This should be overridden by subclasses if they want to intercept polled device axis responses. |
protected boolean |
buttonsPolled()
This should be overridden by subclasses if they want to intercept polled button responses. |
boolean |
canShowSpectralDistributions()
Check whether this display can tell us its illuminant name and the name of the reflectance functions of its display elements. |
boolean |
canStep()
Allows the display manager to figure out whether this instance of a display has timing groups. |
protected void |
check4MediaTimer()
Make sure that this object uses a MEDIA_TIMER. |
protected void |
clearBoundingBox()
Clear this Display object's bounding box. |
void |
clearCurrentTimingGroup()
Removes the objects which belong to the current timing group of the currently active activeDisplay. |
void |
clearNextTimingGroupImagePreload()
Tell the timing group whose image had been preloaded by this Display object that the background buffer had become invalid and thus it should behave as if it never had been preloaded. |
void |
clearTimingGroup()
Reset the active timing group pattern. |
void |
computeAnimationFrame(int frame)
This method is called by RealTimeDisplayPanel objects from within the AnimationPlayer's run() method whenever a new animation frame should be computed. |
protected void |
computeBackgroundField()
|
protected void |
computeColors()
A display's computeColors() method is called at display creation and whenever a color has been changed. |
protected abstract void |
computeGeometry()
A Display's computeGeometry() method is called whenever the size of the receiving display panel is initialized or has been changed, or a geometry parameter of the display has been adjusted. |
protected void |
computeStereographicGeometry(int s)
Compute the left/right eye stereographic modifications of the geometry of this display. |
protected void |
computeTiming()
A display's computeTiming() method is called at display creation and whenever a timing element has been changed. |
protected abstract int |
create()
Create the display element list and the timing element list for this display. |
void |
createInstance()
Create the display's list of display elements and timing groups. |
int |
defaultTiming()
|
int |
defaultTiming(int refIndex)
|
protected void |
destroy()
Give the display instance a chance to do some cleaning up of resources. |
void |
destroyInstance()
Destroy this instance of the display because the user has selected another one to view. |
protected int |
displayElementCount()
Return the number of display elements in this display. |
boolean |
displayListControlState(ResponseController rc)
Compute the display list control state and send it to the display timer if necessary. |
protected void |
disposeGraphicsContext()
|
protected int |
enterBackgroundField()
Enter the default background field into the display element list. |
protected int |
enterDisplayElement(DisplayElement p)
Enter the given DisplayElement object into the display's list of DisplayElements. |
protected int |
enterDisplayElement(DisplayElement p,
long s)
Enter the given DisplayElement object into the display's list of DisplayElements and also define this element's stepping pattern. |
int |
enterTiming(ExPar timing,
ExPar duration,
ExPar responseSet,
int refIndex,
ExPar rtime,
ExPar rcode)
|
int |
enterTiming(ExPar timing,
ExPar duration,
ExPar responseSet,
int refIndex,
ExPar rtime,
ExPar rcode,
ExPar rpos)
|
int |
enterTiming(ExPar timing,
ExPar duration,
int refIndex)
Enter the given experimental parameter name into the timing list for this display. |
int |
enterTiming(ExPar timing,
ExPar duration,
int refIndex,
ExPar rtime,
ExPar rcode)
|
int |
enterTiming(ExPar timing,
ExPar duration,
int refIndex,
ExPar rtime,
ExPar rcode,
ExPar rpos)
|
protected void |
finished()
Called when the complete display presentation has been finished including adjustment methods. |
TimingElement |
getActiveTimingElement()
Get the timing list entry for the given step. |
boolean |
getAdjustable()
Returns true if this display contains an adjustable element while a trial is run. |
boolean |
getAllowTimerStop(int rc)
Get the flag which allows a timer to stop this display. |
java.awt.Rectangle |
getBoundingBox()
Return this Display object's bounding box which is only valid after the object has been shown on the screen. |
boolean |
getCanPreload()
Get this Display object's preload flag. |
protected ExPar |
getColorParOfDisplayElement(int i)
Return the color index of the i-th DisplayElement of this display. |
DisplayElement |
getDisplayElement(int i)
Get the DisplayElement at the given index in the displayElementList. |
DisplayElement |
getDisplayElementAt(int x,
int y)
Find the display element whose bounding rectangle contains the specified point in the display panel. |
java.util.ArrayList |
getDisplayElementList()
Returns the display's list of display elements. |
boolean |
getDisplayListControl()
Get the display list control indicator flag. |
TimingElement |
getDisplayTiming()
Get a valid timing element which is made up from the timing parameters Timer, Duration, ResponseSet, ResponseTime, ResponseCode of this class. |
ExPar |
getDynExPar()
Get the adaptive/adjustable experimental parameter. |
int |
getFrameIncrement()
Get the number of frames which should be computed and displayed for a single motion cycle. |
int |
getFramesPerCycle()
Return the number of animation frames per display cycle. |
protected boolean |
getFullRecompute()
|
int |
getIndexOf(DisplayElement d)
Get the index of the given DisplayElement in the displayElementList. |
DisplayElement |
getInitialDisplayElement()
|
long |
getLastTimingGroup()
Return the timing group pattern of the last timing group of this display. |
int |
getLastTimingGroupIndex()
Return the index of the last timing group of this display. |
protected java.awt.Rectangle |
getScreenButton()
|
TimingElement |
getTiming(int i)
Get the timing list entry for the given step. |
TimingElement |
getTimingElement(int i)
Get the TimingElement at the given index in the timingList. |
int |
getTimingGroupCount()
Return the number of timing groups of this display. |
protected long |
getTimingGroupPattern(int i)
Return the timing group pattern of the i-th display element of this display. |
boolean |
getTransparentOverlayFollows()
|
boolean |
getVisible()
Get the visible flag. |
boolean |
hasSpectralDistributions()
Check whether this Display object has a spectral color distribution to show in a spectral color distribution panel. |
boolean |
isAnimated()
Allows the display panel to figure out whether this instance of a display has an animated version. |
boolean |
isClearListOverlay()
|
boolean |
isGraphic()
Return true if this display object requires graphic screen resources for being shown. |
boolean |
isJoinOverlay()
|
boolean |
isListOverlay()
|
boolean |
isNoOverlay()
|
boolean |
isStereo()
Allows the display panel to figure out whether this instance of a display has two stereographic versions. |
boolean |
isTransparentOverlay()
|
protected boolean |
keyResponse(java.awt.event.KeyEvent keyEvent)
This method is here to be overridden by display objects which want to respond to single key strokes which do NOT stop the display timer. |
protected int |
nextDisplayElementIndex()
Return the index of the next display element entered into the display list. |
protected int |
nextTimingElementIndex()
Return the index of the next timing element entered into the timing list. |
boolean |
nextTimingGroup()
Move the timing group display state to the next group of display elements. |
protected boolean |
pointerActivated()
This should be overridden by subclasses if they want to intercept pointer activation responses. |
protected boolean |
pointerDragged()
This should be overridden by subclasses if they want to intercept pointer dragging responses. |
protected boolean |
pointerMoved()
This should be overridden by subclasses if they want to intercept pointer motion responses. |
protected boolean |
pointerReleased()
This should be overridden by subclasses if they want to intercept pointer release responses. |
void |
preloadTimingGroupImage(TimingElement te)
Load the given timing group's image into the display device's back buffer. |
void |
printTiming()
Show this display's current timing parameters. |
void |
recompute(java.awt.Component displayComponent)
This computes all display properties which have associated experimental parameters from the current values in the experimental parameter table. |
void |
recompute(PresentationManager presentationManager)
Compute all display properties for the DisplayDevice of the given PresentationManager. |
void |
recomputeColors()
Recompute the dependent colors because one of the independent colors has been changed. |
void |
recomputeGeometry()
Recompute this display's display elements from the current experimental parameter values. |
void |
recomputeGeometry(int w,
int h)
Recompute the current display's display elements from their current experimental parameter values for a display panel of the given size. |
void |
recomputeTiming()
Recompute the timing parameters from the experimental parameter values. |
protected void |
removeDisplayElements(int first)
Remove all display elements starting from the given index first from the display's list of DisplayElements. |
protected void |
removeDisplayElements(int first,
int last)
Remove all display with index values from first to last (inclusive) from the display's list of DisplayElements. |
protected void |
removeTimingElements(int first)
Remove all timing elements with index values starting from first from the display's list of TimingElements. |
protected void |
removeTimingElements(int first,
int last)
Remove all timing elements with index values from first to last (inclusive) from the display's list of TimingElements. |
protected void |
screenButtonPressed()
Signal the Display object that the mouse pointer has been pressed inside the screen button area. |
protected void |
screenButtonReleased()
Signal the Display object that the mouse pointer has been released inside the screen button area. |
void |
setAdjustable(boolean a)
Set the adjustable flag to indicate whether this display contains an adjustable element while a trial is run. |
boolean |
setAxisDeltas(double[] d)
|
void |
setBackgroundColorPar(ExPar p)
Display objects which want to use their private background color parameter should use this method to set the background display element's color parameter. |
void |
setCanPreload(boolean s)
Set this Display object's preload flag. |
protected void |
setDisplayListControl()
Make this a display list control display. |
void |
setDynExPar(ExPar x)
Set the adaptive/adjustable experimental parameter. |
void |
setFrameIncrement(int f)
Set the number of frames which should be computed and displayed for a single motion cycle. |
void |
setFramesPerCycle(int fpc)
Set the number of frames which should be computed and displayed for a single animation cycle. |
protected void |
setFullRecompute(boolean s)
|
protected void |
setGraphicsContext(java.awt.Graphics g)
Set the display context for showing display elements. |
boolean |
setKeyResponse(java.awt.event.KeyEvent keyEvent)
Signals the display object that a response key has been pressed which was not identical to the StopKey. |
void |
setListOverlay(Display ovrlay)
Set a permanent transparent overlay display for this Display object. |
boolean |
setPointerActivationState(ResponseEvent e,
long t)
This defines the state of the pointer when it was last activated. |
boolean |
setPointerDraggedState(ResponseEvent e)
This defines the current state of the pointer device if it has bee changed by dragging the pointer with button down. |
boolean |
setPointerMovedState(ResponseEvent e)
This defines the current state of the pointer device if it has bee changed by moving the pointer with button up. |
boolean |
setPointerReleaseState(ResponseEvent e,
long t)
|
boolean |
setPolledButtonStates(int cbi,
boolean[] b)
|
protected void |
setScreenButton(java.awt.Rectangle b)
Defines a rectangle on the screen which can be used as a stop button for mouse tracking responses. |
void |
setTimeControl()
Set this display's time control parameter from the timing element data. |
void |
setTimingGroup(int i)
Set the currently active timing group pattern to the i-th timing group of this Display. |
void |
setTransparentOverlayFollows(boolean s)
|
void |
setVisible(boolean v)
Set the flag to indicate that this is a visible display. |
void |
show()
Draws all objects in the list of DisplayElements but the background. |
void |
show(java.awt.Graphics g)
Draws the background if it has been defined and then draws all objects in the list of DisplayElements. |
void |
showAnimationFrame(java.awt.Graphics g,
int frame)
This method is called by the DisplayPanel class's AnimationPlayer object to show the given animation frame of this display in the given graphics context. |
void |
showAnimationFrame(int n)
Animated displays have to override this in order to run frame depenendent animations. |
protected void |
showBackgroundElement()
Show only the background element assuming that a proper graphics context is set. |
long |
showCurrentTimingGroup()
Show the current timing group of display elements. |
void |
showGroup()
Shows the currently active timing group as it is defined by the current value of activeTimingGroup. |
void |
showGroup(java.awt.Graphics g)
First shows the background element if necessary and then shows all objects belonging to the current timing group. |
protected void |
showGroupStereo()
|
protected void |
showStereo()
|
protected void |
timingGroupFinished(int group)
This method is called when the display of the currently active timing group has been finished. |
java.lang.String |
toString()
|
protected void |
updateBoundingBox(java.awt.Rectangle b)
Add the given rectangle to this Display's current bounding box. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int STEREO_NONE
protected static final int STEREO_LEFT
protected static final int STEREO_RIGHT
public ExPar Timer
public ExPar TimeControl
public ExPar Duration
public ExPar TimeError
public ExPar ResponseTime
public ExPar ResponseCode
public ExPar ResponseChar
KeyEventpublic ExPar ResponsePosition
KeyEventpublic ExPar ResponseSet
Note that setting the parameter ResponseSet not only restricts the set of possible response keys but also enables a translation mechanism. This translates the response key codes to response code values which correspond to the position within the array ResponseSet. This means that if the response set is defined to be [37, 39] and the actual response key has the code 39 then the parameter ResponseCode is set to 1 which is the index of the code 39 in the array ResponseSet. The translation mechanism is not used if ResponseSet is not set.
public ExPar Screen
public ExPar Overlay
public ExPar JustInTime
public ExPar Execute
protected PresentationManager presentationManager
protected DisplayDevice displayDevice
protected java.awt.Component displayComponent
protected int width
protected int height
protected int backgroundFieldIndex
protected java.awt.Graphics graphics
protected java.awt.Graphics2D graphics2D
protected java.util.ArrayList displayElementList
protected java.awt.Rectangle boundingBox
protected java.awt.Rectangle screenButton
protected boolean startAdjustable
protected boolean transparentOverlayFollows
protected Display next
protected long activeTimingGroup
protected int activeTimingGroupIndex
protected int framesPerCycle
protected int frameIncrement
protected int pointerActivationButton
protected int pointerActivationX
protected int pointerActivationY
protected int pointerReleaseButton
protected int pointerReleaseX
protected int pointerReleaseY
protected int pointerCurrentButton
protected int pointerCurrentX
protected int pointerCurrentY
protected ResponseEvent pointerResponseEvent
protected boolean pointerActive
protected long pointerEventTime
protected double[] axisDeltas
protected boolean[] polledButtonStates
protected int changedPolledButtonIndex
| Constructor Detail |
|---|
public Display()
| Method Detail |
|---|
protected void setScreenButton(java.awt.Rectangle b)
protected java.awt.Rectangle getScreenButton()
public void setAdjustable(boolean a)
public boolean getAdjustable()
public void setDynExPar(ExPar x)
x - the experimental parameter which is to be set as the
adaptive/adjustable parameter of this display.public ExPar getDynExPar()
public void setVisible(boolean v)
v - if true then this display will be recomputed and
shown, if false then the display will be recomputed but will
not be shown.public boolean getVisible()
protected void setDisplayListControl()
public boolean getDisplayListControl()
public void setListOverlay(Display ovrlay)
public boolean isNoOverlay()
public boolean isJoinOverlay()
public boolean isListOverlay()
public boolean isClearListOverlay()
public boolean isTransparentOverlay()
public void setTransparentOverlayFollows(boolean s)
public boolean getTransparentOverlayFollows()
public boolean isGraphic()
public void setCanPreload(boolean s)
s - if true then this Display object can have an image
which is preloaded at runtime. If false then this Display
must be computed at runtime immediately before it is
shown.public boolean getCanPreload()
protected void setFullRecompute(boolean s)
protected boolean getFullRecompute()
public boolean getAllowTimerStop(int rc)
public void createInstance()
createInstance in class DisplaySupportprotected abstract int create()
public DisplayElement getInitialDisplayElement()
public void recompute(PresentationManager presentationManager)
presentationManager - the PresentationManager which runs
this Display object. It is needed here in order to get the
drawing surface of its DisplayDevice and for some Display
objects which need to access the PresentationManager directly
like the DeviceControl class.public void recompute(java.awt.Component displayComponent)
displayComponent - is the Component we will be drawing
on. It is needed since some Display objects need to adjust their
size according to the Component size.
public void recomputeGeometry(int w,
int h)
public void recomputeGeometry()
protected abstract void computeGeometry()
protected void computeBackgroundField()
public void recomputeColors()
protected void computeColors()
public void setBackgroundColorPar(ExPar p)
public TimingElement getTimingElement(int i)
public void recomputeTiming()
protected void computeTiming()
public void setTimeControl()
public void printTiming()
protected void check4MediaTimer()
public boolean displayListControlState(ResponseController rc)
rc - the ResponseController object which controls
response timing.
public void destroyInstance()
destroyInstance in class DisplaySupportprotected void destroy()
protected void clearBoundingBox()
protected void updateBoundingBox(java.awt.Rectangle b)
b - a rectangle which should be added to the current
bounding box.public java.awt.Rectangle getBoundingBox()
protected void setGraphicsContext(java.awt.Graphics g)
protected void disposeGraphicsContext()
public void show(java.awt.Graphics g)
g - a currently valid Graphics context for painting.public void show()
protected void showStereo()
public DisplayElement getDisplayElementAt(int x,
int y)
x - horizontal pixel position.y - vertical pixel position.
public boolean canStep()
public boolean nextTimingGroup()
public void setTimingGroup(int i)
public void clearTimingGroup()
public long getLastTimingGroup()
public int getLastTimingGroupIndex()
public int getTimingGroupCount()
protected long getTimingGroupPattern(int i)
public TimingElement getActiveTimingElement()
public long showCurrentTimingGroup()
To be done: Implement TRANSPARENT overlays for JustInTime Display objects. This means that a JustInTime object has to store its image if it is followed by a TRANSPARENT Display. This display may then use the image to initialize its background before painting.
public void clearNextTimingGroupImagePreload()
public void preloadTimingGroupImage(TimingElement te)
te - the timing element whose image should be loaded. The
timing element is marked as having its image preloaded.public void clearCurrentTimingGroup()
public void showGroup(java.awt.Graphics g)
g - the Graphics context for painting.public void showGroup()
protected void showGroupStereo()
protected void showBackgroundElement()
protected void timingGroupFinished(int group)
group - the index of the timing group which has been
run.protected void finished()
public boolean canShowSpectralDistributions()
public boolean hasSpectralDistributions()
public boolean isStereo()
protected void computeStereographicGeometry(int s)
Should be overriden by display objects which can show stereographic versions.
s - indicates which stereographic channel to compute. O
means that left and right eye get the same information while 1
creates the left and 2 creates the right eye view.public boolean isAnimated()
Note that animated Display objects must not use the parameters Timer, Duration, ResponseSet, ResponseTime, ResponseCode for its internal timing groups since these are used to describe the timing properties of the whole Display object. The RealTimeDisplayPanel's AnimationPlayer retrieves these parameter values from the Display class directly.
public void computeAnimationFrame(int frame)
public void showAnimationFrame(java.awt.Graphics g,
int frame)
Note that this method is obsolete and should no longer be used.
public void showAnimationFrame(int n)
Note that this method is obsolete and should no longer be used. It should be replaced by using computeAnimationFrame().
public void setFramesPerCycle(int fpc)
public int getFramesPerCycle()
public void setFrameIncrement(int f)
public int getFrameIncrement()
protected int nextDisplayElementIndex()
protected int displayElementCount()
public java.util.ArrayList getDisplayElementList()
protected int enterBackgroundField()
protected int enterDisplayElement(DisplayElement p)
protected int enterDisplayElement(DisplayElement p,
long s)
public DisplayElement getDisplayElement(int i)
public int getIndexOf(DisplayElement d)
protected ExPar getColorParOfDisplayElement(int i)
protected void removeDisplayElements(int first)
first - index of first element to remove.
protected void removeDisplayElements(int first,
int last)
first - index of first element to remove.last - index of last element to remove.
public int enterTiming(ExPar timing,
ExPar duration,
int refIndex)
Every display element of a display list belongs at least to one timing group. A timing group is a group of display elements which always are shown simultanously. The stepping display method shows the timing groups in sequence. A timing controlled display method also shows the display list by its timing groups. Each timing group has associated timing parameters which controll when this group is switched on. The timing parameter of a display element group defines the onset time difference between this group and another group, usually the group immediately shown before.
timing - the experimental parameter which defines
the given timing group's timing type.duration - the duration of the given timing group's timing interval.refIndex - the index in the timing list of that timing
group to which the given timing parameter refers to as its
starting time point for time measurement.
public int enterTiming(ExPar timing,
ExPar duration,
int refIndex,
ExPar rtime,
ExPar rcode)
public int enterTiming(ExPar timing,
ExPar duration,
ExPar responseSet,
int refIndex,
ExPar rtime,
ExPar rcode)
public int enterTiming(ExPar timing,
ExPar duration,
int refIndex,
ExPar rtime,
ExPar rcode,
ExPar rpos)
public int enterTiming(ExPar timing,
ExPar duration,
ExPar responseSet,
int refIndex,
ExPar rtime,
ExPar rcode,
ExPar rpos)
public int defaultTiming(int refIndex)
public int defaultTiming()
protected int nextTimingElementIndex()
public TimingElement getTiming(int i)
protected void removeTimingElements(int first)
first - index of first element to remove.
protected void removeTimingElements(int first,
int last)
first - index of first element to remove.last - index of last element to remove.public TimingElement getDisplayTiming()
public boolean setPointerActivationState(ResponseEvent e,
long t)
public boolean setPointerReleaseState(ResponseEvent e,
long t)
public boolean setPointerDraggedState(ResponseEvent e)
public boolean setPointerMovedState(ResponseEvent e)
protected boolean pointerActivated()
protected boolean pointerDragged()
protected boolean pointerMoved()
protected boolean pointerReleased()
protected void screenButtonPressed()
protected void screenButtonReleased()
public boolean setKeyResponse(java.awt.event.KeyEvent keyEvent)
protected boolean keyResponse(java.awt.event.KeyEvent keyEvent)
public boolean setAxisDeltas(double[] d)
public boolean setPolledButtonStates(int cbi,
boolean[] b)
protected boolean axisDeltasChanged()
protected boolean buttonsPolled()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||