public class GUIStatsDisplay extends GUIelement
addSample
function, it waits in
so-called delayList first. After a user adjustable delay, it gets added to
the workingList. This delay is determined by the Delay
Property
. It then gets automatically deleted from the workingList
after another user-adjustable delay, determined by the WindowWidth
Property
. This happens during calls to the updateStats
function.
A statistic can then be calculated on all the samples in the workingList.
This is handled by making a call to the getCurrentStat
method. This
method then makes call to the {statGenerator#getStat} method of the correct
statGenerator
, that is, to the one located on index currentStatgenIndex
of statGenList
.CHECKBOX, READOUT, SELECTBOX, SLIDER
Constructor and Description |
---|
GUIStatsDisplay() |
GUIStatsDisplay(GUITab gut) |
Modifier and Type | Method and Description |
---|---|
void |
addProperthies() |
double |
getCurrentStat() |
java.lang.String |
getGUIelementName() |
java.lang.String |
getName() |
GUIelement |
makeCopy() |
void |
paint(javafx.scene.canvas.GraphicsContext gc,
double x,
double y)
Paint this
GUIelement on some place on the
GraphicsContext provided, on position, determined by the x and y
arguments. |
void |
setGUITab(GUITab gut)
Set the respective
GUITab this GUIelement is on to the
one provided. |
void |
setValue(int value) |
java.lang.String |
shortDesc() |
addElementTypeMapping, addFloatProperty, addGlobalElementMapping, addIntegerProperty, addMapping, addProperty, addStringProperty, addTags, copyPropertiesTo, getColor1, getColor2, getColor3, getColor4, getContextDependantName, getElementTypeMappingManager, getGlobalElementMappingManager, getGUIPanel, getHeight, getId2NameMap, getId2PropertyMap, getLastPositionDrawnTo, getMax, getMenu, getMin, getModuleGUIID, getName2IdMap, getProperty2idMap, getPropertyById, getPropertyByName, getRegister, getTags, getThisInstanceMappingManager, getUniqueName, getValue, getWidth, hasTag, isDeleted, isEnabled, isFocused, isSelected, isVisible, isWithinBounds, notifyAboutKeyPress, recalculateUniqueName, recompileEvents, removeAllTags, removeTags, requestRepaint, setDeleted, setEnabled, setFloatProperty, setFocused, setGUIPanel, setId2NameMap, setId2PropertyMap, setIntegerProperty, setMenu, setModuleGUIID, setName, setName2IdMap, setProperty2idMap, setRegister, setSelected, setStringProperty, setValue, setVisible, update
public GUIStatsDisplay()
public GUIStatsDisplay(GUITab gut)
public final void addProperthies()
public void setValue(int value)
public java.lang.String shortDesc()
shortDesc
in class GUIelement
public void setGUITab(GUITab gut)
GUIelement
GUITab
this GUIelement
is on to the
one provided.setGUITab
in class GUIelement
public java.lang.String getName()
getName
in class GUIelement
GUIelement.getUniqueName()
public java.lang.String getGUIelementName()
getGUIelementName
in class GUIelement
GUIelement
.public void paint(javafx.scene.canvas.GraphicsContext gc, double x, double y)
GUIelement
GUIelement
on some place on the
GraphicsContext
provided, on position, determined by the x and y
arguments.paint
in class GUIelement
gc
- the GraphicsContext
to draw tox
- the x position to draw toy
- the y position to draw topublic GUIelement makeCopy()
makeCopy
in class GUIelement
GUIelement
. All Property
objects are also duplicated. The callbacks are not preserved.GUIelement.copyPropertiesTo(InstrumentationPlatformGUI.Elements.GUIelement)
public double getCurrentStat()